3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*E_ERROR E_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR E_COMPILE_WARNING*/ function exception_error_handler($errno, $errstr, $errfile, $errline) { var_dump($errstr); } set_error_handler("exception_error_handler", error_reporting()); function shutDownFunction() { $error = error_get_last(); if ($error['type'] == 1) { //do your stuff } } register_shutdown_function('shutdownFunction'); echo "\n"; echo "Hello World"; echo "\n\n"; //var_dump(error_get_last()); declare($foo='bar');

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)
5.4.240.0070.03712.39
5.4.230.0050.03912.39
5.4.220.0070.03712.39
5.4.210.0070.03812.39
5.4.200.0050.04112.39
5.4.190.0070.03812.39
5.4.180.0090.03712.38
5.4.170.0090.04012.39
5.4.160.0040.03812.39
5.4.150.0050.04112.38
5.4.140.0080.04312.07
5.4.130.0120.05812.05
5.4.120.0120.05712.02
5.4.110.0070.04512.02
5.4.100.0100.04712.02
5.4.90.0190.07812.01
5.4.80.0070.04012.02
5.4.70.0060.03912.02
5.4.60.0080.03712.01
5.4.50.0090.04012.01
5.4.40.0070.04212.00
5.4.30.0070.05012.00
5.4.20.0110.04811.99
5.4.10.0120.05311.99
5.4.00.0090.04911.48
5.3.280.0120.06012.71
5.3.270.0110.05212.72
5.3.260.0090.04912.72
5.3.250.0090.05112.72
5.3.240.0080.05012.72
5.3.230.0100.04612.71
5.3.220.0140.04312.68
5.3.210.0110.04812.68
5.3.200.0120.05112.68
5.3.190.0130.05612.68
5.3.180.0100.04912.67
5.3.170.0070.04912.67
5.3.160.0100.04912.67
5.3.150.0080.04612.67
5.3.140.0110.04912.66
5.3.130.0080.05312.66
5.3.120.0080.04612.66
5.3.110.0060.04712.65
5.3.100.0050.04112.12
5.3.90.0070.04312.10
5.3.80.0070.04112.09
5.3.70.0100.04612.09
5.3.60.0050.04312.08
5.3.50.0090.04012.02
5.3.40.0050.04512.02
5.3.30.0070.04111.97
5.3.20.0080.03911.75
5.3.10.0070.03811.71
5.3.00.0090.03611.70

preferences:
141.46 ms | 1394 KiB | 7 Q