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 am 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.0130.07720.23
5.6.160.0030.07320.50
5.6.150.0030.07018.12
5.6.140.0170.07318.18
5.6.130.0030.04318.19
5.6.120.0100.05020.99
5.6.110.0070.03721.15
5.6.100.0030.04321.12
5.6.90.0030.04320.89
5.6.80.0100.06020.54
5.5.300.0130.07017.92
5.5.290.0070.08017.97
5.5.280.0170.07020.80
5.5.270.0070.04020.77
5.5.260.0070.03720.96
5.5.250.0130.07320.67
5.5.240.0130.08020.29

preferences:
134.03 ms | 1398 KiB | 7 Q