3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); class asd { function __construct() { echo $unexisting; 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();
based on HmkCc

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0000.01716.74
7.2.00.0040.01119.52
7.1.200.0040.00715.60
7.1.100.0050.00318.01
7.1.70.0060.00917.35
7.1.60.0070.01719.06
7.1.50.0130.01016.64
7.1.00.0070.06722.37
7.0.200.0030.00516.55
7.0.60.0100.05720.03
7.0.50.0030.06017.83
7.0.40.0030.04320.26
7.0.30.0270.07320.09
7.0.20.0170.06320.23
7.0.10.0030.08020.24
7.0.00.0070.05320.19
5.6.280.0030.07321.14
5.6.210.0130.04320.70
5.6.200.0130.07318.25
5.6.190.0000.06320.55
5.6.180.0100.08320.61
5.6.170.0470.07320.40
5.6.160.0070.07320.47
5.6.150.0070.08018.28
5.6.140.0070.08018.15
5.6.130.0200.07718.23
5.6.120.0170.07321.13
5.6.110.0030.04020.98
5.6.100.0100.04321.04
5.6.90.0030.04321.00
5.6.80.0200.07020.38
5.5.350.0270.08720.44
5.5.340.0030.07317.95
5.5.330.0100.07720.29
5.5.320.0770.05720.38
5.5.310.0330.07720.27
5.5.300.0030.04017.98
5.5.290.0070.08018.02
5.5.280.0070.08720.77
5.5.270.0030.04020.68
5.5.260.0070.03720.80
5.5.250.0030.08320.62
5.5.240.0100.08320.27
5.4.450.0770.05719.57
5.4.440.0170.05319.82
5.4.430.0200.05319.29
5.4.420.0270.05019.62
5.4.410.0130.05719.35
5.4.400.0570.06719.00
5.4.390.0630.06019.04
5.4.380.0970.04319.15
5.4.370.0830.05719.20
5.4.360.0870.05719.10
5.4.350.1000.06719.25
5.4.340.0830.05719.02
5.4.320.0930.04719.28
5.4.310.0830.05319.30
5.4.300.0170.05719.22
5.4.290.0130.05719.19
5.4.280.0170.05719.14
5.4.270.0170.08019.16
5.4.260.0300.04719.21
5.4.250.0270.05319.11
5.4.240.0270.05019.29
5.4.230.0170.05318.97
5.4.220.0270.04719.15
5.4.210.0170.06018.84
5.4.200.0200.06319.24
5.4.190.0200.05718.84
5.4.180.0100.05019.23
5.4.170.0470.05019.23
5.4.160.0100.06019.00
5.4.150.0100.06018.84
5.4.140.0130.05716.37
5.4.130.0200.04716.77
5.4.120.0130.04716.54
5.4.110.0170.05716.63
5.4.100.0130.04316.53
5.3.290.0800.05014.69
5.3.280.0200.05314.52
5.3.270.0100.05014.61
5.3.260.0130.05714.69
5.3.250.0170.04314.61
5.3.240.0070.06014.66
5.3.230.0030.05714.48
5.3.220.0170.05014.57
5.3.210.0170.05714.49
5.3.200.0100.05014.54