3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class asd { function __construct() { echo 'error_reporting on called function: ' . ini_get('error_reporting') . PHP_EOL; } function run() { asd1(); } } function asd1() { asd2(); } function asd2() { asd3(); } function asd3() { echo 'error_reporting on leaf: ' . ini_get('error_reporting') . PHP_EOL; @error_log('I'm an error); } $asd = new asd(); echo 'error_reporting before @: ' . ini_get('error_reporting') . PHP_EOL; @$asd->run();

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.0070.08320.14
5.6.160.0070.06020.39
5.6.150.0030.08318.12
5.6.140.0130.07318.18
5.6.130.0070.04318.18
5.6.120.0130.07721.06
5.6.110.0070.03721.04
5.6.100.0030.04321.02
5.6.90.0030.08720.98
5.6.80.0070.07320.52
5.5.300.0070.04717.98
5.5.290.0030.04717.99
5.5.280.0000.09320.98
5.5.270.0030.06320.65
5.5.260.0130.03020.77
5.5.250.0170.07320.60
5.5.240.0170.08020.16

preferences:
145.51 ms | 1394 KiB | 7 Q