3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $agent = "Mozilla/5.0 (iPad; CPU OS 10_3_2 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) CriOS/59.0.3071.102 Mobile/14F89 Safari/602.1"; echo 'v3.6.5 '; preg_match('|CriOS[/ ]([0-9.]+)|', $agent, $version); var_dump($version); list ($majorVersion, $minorVersion) = explode('.', $version[1]); echo 'v3.7.3 '; preg_match('/Chrome[\/ ]([0-9.]+)|CrMo[\/ ]([0-9.]+)|CriOS[\/ ]([0-9.]+)/i', $agent, $version); var_dump($version); list ($majorVersion, $minorVersion) = explode('.', $version[1]);

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.80.0060.01116.50
7.2.60.0030.01317.30
7.2.00.0100.00319.29
7.1.200.0100.00716.06
7.1.100.0080.00318.21
7.1.70.0030.00917.07
7.1.60.0070.02035.19
7.1.50.0210.00934.92
7.1.40.0170.01734.63
7.1.30.0180.00934.78
7.1.20.0180.01135.00
7.1.10.0060.00916.85
7.1.00.0000.01416.89
7.0.200.0090.00616.62
7.0.190.0090.00616.95
7.0.180.0090.00616.31
7.0.170.0110.00316.55
7.0.160.0040.01116.26
7.0.150.0060.00916.30
7.0.140.0070.00716.41
7.0.130.0040.00816.59
7.0.120.0070.00716.71
7.0.110.0040.00816.39
7.0.100.0030.00916.40
7.0.90.0060.00916.44
7.0.80.0070.00716.39
7.0.70.0060.00616.18
7.0.60.0000.01316.18
7.0.50.0030.01016.54
7.0.40.0030.01016.53
7.0.30.0060.00616.54
7.0.20.0030.01216.45
7.0.10.0030.01316.77
7.0.00.0070.00716.64
hhvm-3.15.40.0700.12487.31
5.6.300.0140.05220.77
5.6.290.0100.05420.66
5.6.280.0030.05920.98
5.6.270.0100.05520.92
5.6.260.0130.05020.92
5.6.250.0070.05720.79
5.6.240.0100.06020.82
5.6.230.0070.06020.92
5.6.220.0070.05820.71
5.6.210.0100.05420.84
5.6.200.0000.06520.88
5.6.190.0100.07220.75
5.6.180.0100.05620.72
5.6.170.0060.06220.87
5.6.160.0030.06520.90
5.6.150.0100.05820.75
5.6.140.0100.06120.86
5.6.130.0070.06020.87
5.6.120.0000.06720.97
5.6.110.0060.06220.96
5.6.100.0170.05120.96
5.6.90.0130.05020.89
5.6.80.0200.04020.29
5.6.70.0130.05020.09
5.6.60.0100.05420.06
5.6.50.0100.05120.36
5.6.40.0060.05420.18
5.6.30.0160.04920.23
5.6.20.0100.05320.33
5.6.10.0100.05020.27
5.6.00.0100.05120.25