How to check PHP loaders ability of the server?

Our product can now be run only on ionCube PHP loader version 11 and higher.
 
Important note: Always use binary mode when uploading files to your server using FTP.
 
IonCube loader
Here you can download latest version for your server (feel free to use their installation wizzard for smoother installation):
 
Test script
You can use this script to check if supported PHP version and encoder is installed on your server. Just Create new file test.php on your server and paste this code in it:
 
<?php
echo "PHP version: <b>" . PHP_VERSION . "</b><br><br>";

if (!is_int(PHP_MAJOR_VERSION) || !is_int(PHP_MINOR_VERSION)) {
    die('Error: unable to decode php version');
}

if (PHP_MAJOR_VERSION == 4) {
    die('Not supported PHP version');
}

if (PHP_MAJOR_VERSION <= 5) {
    die('PHP 5.x.x is Not supported anymore, due to security issues.');
}

if (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION <= 3 ) {
    die('PHP 7.0.X, 7.1.X, 7.2.X, 7.3.X versions are not supported anymore, due to security issues.');
}

if (PHP_MAJOR_VERSION == 8 && PHP_MINOR_VERSION <= 0 ) {
    die('<b>Not supported PHP version 8.0</b> (Please update PHP to version 8.1)');
}

$extensions = get_loaded_extensions();
echo "<i>Supported loaders:</i><br><br>";
if (in_array('ionCube Loader', $extensions)) {
    $isCorrectVersion = true;
    $ioncubeVersion = '';
    if (function_exists('ioncube_loader_version')) {
        $ioncubeVersion = ioncube_loader_version();
        $ioncubeMajorVersion = (int) substr($ioncubeVersion, 0, strpos($ioncubeVersion, '.'));
        $ioncubeMinorVersion = (int) substr($ioncubeVersion, strpos($ioncubeVersion, '.') + 1);
        if ($ioncubeMajorVersion < 11) {
            $isCorrectVersion = false;
            echo 'ionCube Loader ' . $ioncubeVersion . ' - old, required is a minimum of ionCube Loader version 11.0<br>';
        }
    }
    if ($isCorrectVersion) {
        if (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 4) {
            echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - use product (ZIP file) ending with '<b>_ionEncoded74.zip</b>' (PHP 7.4.x)<br>";
        } else if (PHP_MAJOR_VERSION == 8 && PHP_MINOR_VERSION == 1) {
            echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - use product (ZIP file) ending with '<b>_ionEncoded81.zip</b>' (PHP 8.1.x)<br>";
        } else {
            echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - '<b>Not supported PHP version</b>' (All PHP 5.X.X, 7.0.X, 7.1.X, 7.2.X, 7.3.X versions)<br>";
        }
    }
}

//version 6

//Note: Always use binary mode when uploading files to your server using FTP

//PLEASE DELETE THIS SCRIPT AFTER INSTALLATION!
?>
 
This script will print out supported loaders. For more info check your phpinfo. Create script info.php and paste this code in it:
 
<?php
phpinfo();
?>
 
Try to find some traces about IonCube loader there...
 
Old versions of Post Affiliate Pro notes:
 
  • Since version 5.11.5.8 we support only PHP 7.4. with ionCube PHP Loader v11 and newer (May, 2022)
  • Since version 5.10.0.2 we support only PHP 7.2, 7.3, 7.4 (March 25, 2021)
  • versions below 5.10.0.2:
    • Zip file "_ionEncoded54.zip" works for PHP 5.4. and 5.5.
    • For PHP 5.6 use the "_ionEncoded70.zip" file which works for both versions PHP 5.6 and PHP 7.0.
    • For PHP 7.1 and higher use the "_ionEncoded71.zip".
  • ZendGuard Loader (previously called as ZendOptimizer) is not supported since version 5.8.1.12 (August 05, 2019)