What is the best PHP version to use on an IIS server with GD standard?

The best PHP version to use on an IIS server with GD standard is PHP 7.4. This version offers improved performance, security enhancements, and compatibility with the GD library for image manipulation. Upgrading to PHP 7.4 will ensure that your website runs smoothly and efficiently on an IIS server with GD standard.

<?php
// Check if GD extension is loaded
if (!extension_loaded('gd')) {
    die('GD extension is not loaded');
}

// Your PHP code using GD functions here