3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); ini_set('display_startup_errors', 1); ini_set('display_errors', 1); ini_set('memory_limit', '2024M'); date_default_timezone_set('America/New_York'); define('TEST_MODE', true); define('ROOT_PATH', isset(getenv('WORKSPACE')) ? getenv('WORKSPACE') : dirname ( __FILE__ ) .'./../../'); define('APPLICATION_PATH', ROOT_PATH.'/src/main/php/webapp/application'); define('PUBLIC_PATH', ROOT_PATH.'/src/main/php/webapp/public'); define('EXCEPTION_PATH', ROOT_PATH.'/src/main/php/webapp/application/exceptions'); define('APPLICATION_ENV', 'development'); define('LIBRARY_PATH', ROOT_PATH.'/src/main/php/webapp/library'); define('TESTS_PATH', ROOT_PATH.'/src/test'); define('MEDIA_DIR', 'test/dir'); define('DEPENDENCY_LIBRARY_PATH', ROOT_PATH.'/target/dependencies/library'); define('APPLICATION_WEBAPP', false); define('ZEND_LIB_PATH', isset(getenv('ZEND_LIB_PATH')) ? getenv('ZEND_LIB_PATH') : 'C:/Program Files (x86)/ZendServer/share/ZendFramework/library'); define('HELPERS_PATH', ROOT_PATH.'/src/main/php/webapp/application/views/helpers'); $_SERVER['SERVER_NAME'] = 'http://localhost'; $includePaths = array(LIBRARY_PATH,EXCEPTION_PATH, HELPERS_PATH, ZEND_LIB_PATH, DEPENDENCY_LIBRARY_PATH, get_include_path()); set_include_path(implode(PATH_SEPARATOR, $includePaths)); require_once 'Zend/Application.php'; require_once 'Zend/Loader/Autoloader.php'; $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->registerNamespace('Passport_'); $autoloader->registerNamespace('GBTS_'); $autoloader->registerNamespace('WDPRO_'); $arr = array('namespace' => 'Passport', 'basePath' => APPLICATION_PATH); $autoloader = new Zend_Application_Module_Autoloader($arr); $autoloader->addResourceType('exceptions', 'exceptions/', 'Exception'); Zend_Session::$_unitTestEnabled = true; Zend_Session::start();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.00.0030.04020.32
5.6.160.0100.05020.61
5.6.150.0170.07018.18
5.6.140.0130.07318.16
5.6.130.0030.07718.18
5.6.120.0000.09021.10
5.6.110.0100.05721.04
5.6.100.0130.03020.99
5.6.90.0030.04320.98
5.6.80.0130.04020.28
5.5.300.0100.08017.92
5.5.290.0070.06017.91
5.5.280.0070.08320.76
5.5.270.0070.03720.95
5.5.260.0100.08720.77
5.5.250.0100.05720.75
5.5.240.0130.04020.04

preferences:
140.46 ms | 1394 KiB | 7 Q