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');

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.0100.08020.04
5.6.160.0170.07720.52
5.6.150.0130.05318.08
5.6.140.0100.08018.21
5.6.130.0130.03318.18
5.6.120.0070.04321.10
5.6.110.0100.03720.99
5.6.100.0000.04320.99
5.6.90.0000.05021.00
5.6.80.0000.06720.42
5.5.300.0030.06717.98
5.5.290.0100.06017.98
5.5.280.0070.05720.80
5.5.270.0000.04720.86
5.5.260.0200.07320.79
5.5.250.0070.09020.77
5.5.240.0230.05320.27

preferences:
140.76 ms | 1394 KiB | 7 Q