3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ /** * Environment initialization */ error_reporting(E_ALL); #ini_set('display_errors', 1); /* PHP version validation */ if (!defined('PHP_VERSION_ID') || !(PHP_VERSION_ID >= 50600 && PHP_VERSION_ID < 50700 || PHP_VERSION_ID === 70002 || PHP_VERSION_ID >= 70006)) { if (PHP_SAPI == 'cli') { echo 'Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. ' . 'Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html'; } else { echo <<<HTML <div style="font:12px/1.35em arial, helvetica, sans-serif;"> <p>Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read <a target="_blank" href="http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html"> Magento System Requirements</a>. </div> HTML; } exit(1); } require_once __DIR__ . '/autoload.php'; require_once BP . '/app/functions.php'; /* Custom umask value may be provided in optional mage_umask file in root */ $umaskFile = BP . '/magento_umask'; $mask = file_exists($umaskFile) ? octdec(file_get_contents($umaskFile)) : 002; umask($mask); if (!empty($_SERVER['MAGE_PROFILER']) && isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/html') !== false ) { \Magento\Framework\Profiler::applyConfig( $_SERVER['MAGE_PROFILER'], BP, !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ); } date_default_timezone_set('UTC');
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: require_once(/in/autoload.php): Failed to open stream: No such file or directory in /in/3cql2 on line 30 Fatal error: Uncaught Error: Failed opening required '/in/autoload.php' (include_path='.:') in /in/3cql2:30 Stack trace: #0 {main} thrown in /in/3cql2 on line 30
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: require_once(/in/autoload.php): Failed to open stream: No such file or directory in /in/3cql2 on line 30 Fatal error: Uncaught Error: Failed opening required '/in/autoload.php' (include_path='.:') in /in/3cql2:30 Stack trace: #0 {main} thrown in /in/3cql2 on line 30
Process exited with code 255.
Output for 5.6.0 - 5.6.40, 7.0.2, 7.0.6 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: require_once(/in/autoload.php): failed to open stream: No such file or directory in /in/3cql2 on line 30 Fatal error: require_once(): Failed opening required '/in/autoload.php' (include_path='.:') in /in/3cql2 on line 30
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 7.0.0 - 7.0.1, 7.0.3 - 7.0.5
Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html
Process exited with code 1.

preferences:
229.73 ms | 402 KiB | 330 Q