3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpfor ( $i = 0; $i < 1000000; $i++ ) { if ( @$_GET['var'] != '' ) echo 'foo'; }

Here you find the average performance (time & memory) of each version. A greyed 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.0.60.0030.07319.90
7.0.50.0170.05317.88
7.0.40.0100.07020.14
7.0.30.0300.07720.06
7.0.20.0200.04320.25
7.0.10.0070.04020.15
7.0.00.0030.09020.16
hhvm-3.12.00.0400.12795.20
hhvm-3.11.00.0400.13086.55
hhvm-3.10.00.0200.10083.46
hhvm-3.9.10.0200.09382.39
5.6.210.0070.06020.47
5.6.200.0130.08018.19
5.6.190.0070.07020.46
5.6.180.0170.04020.41
5.6.170.0170.05020.71
5.6.160.0070.03720.46
5.6.150.0070.08018.12
5.6.140.0130.03018.21
5.6.130.0000.04318.15
5.6.120.0130.07721.09
5.6.110.0000.04320.96
5.6.100.0030.08020.99
5.6.90.0070.05321.09
5.6.80.0100.07720.28
5.5.350.0030.05720.32
5.5.340.0100.06018.05
5.5.330.0000.07020.47
5.5.320.0330.05320.19
5.5.310.0300.05320.50
5.5.300.0030.07018.00
5.5.290.0100.08018.08
5.5.280.0070.05320.85
5.5.270.0030.04320.81
5.5.260.0070.04020.72
5.5.250.0070.08320.79
5.5.240.0230.06320.18
5.4.450.1470.03319.30
5.4.440.0930.03719.48
5.4.430.1000.04019.54
5.4.420.0770.04019.47
5.4.410.0500.02719.37
5.4.400.1170.05019.23
5.4.390.0870.06019.14
5.4.380.0200.04718.68
5.4.370.0130.05718.73
5.4.360.0100.06018.56
5.4.350.0200.05318.74
5.4.340.0130.05318.44
5.4.320.0070.04312.45
5.4.310.0080.03712.45
5.4.300.0050.04012.45
5.4.290.0080.04312.45
5.4.280.0080.03612.35
5.4.270.0060.04012.35
5.4.260.0080.04112.34
5.4.250.0060.03812.34
5.4.240.0060.03512.35
5.4.230.0050.03912.34
5.4.220.0060.03812.34
5.4.210.0050.03712.34
5.4.200.0060.03912.34
5.4.190.0040.03812.33
5.4.180.0050.03812.33
5.4.170.0050.03712.35
5.4.160.0060.03612.34
5.4.150.0040.04012.34
5.4.140.0050.03812.02
5.4.130.0080.03512.01
5.4.120.0060.03911.97
5.4.110.0070.04311.96
5.4.100.0070.03511.96
5.4.90.0060.03711.96
5.4.80.0060.04211.96
5.4.70.0060.04011.96
5.4.60.0030.03911.96
5.4.50.0060.03711.96
5.4.40.0070.03911.95
5.4.30.0090.04011.95
5.4.20.0070.04211.95
5.4.10.0090.03611.95
5.4.00.0070.03611.44
5.3.290.0050.04112.80
5.3.280.0080.04112.71
5.3.270.0050.04112.72
5.3.260.0060.04012.72
5.3.250.0080.03912.72
5.3.240.0080.04212.72
5.3.230.0080.04012.71
5.3.220.0050.04012.68
5.3.210.0050.04012.68
5.3.200.0090.03412.68
5.3.190.0060.03812.68
5.3.180.0050.03812.67
5.3.170.0080.03712.67
5.3.160.0070.03812.67
5.3.150.0050.04012.67
5.3.140.0050.04012.66
5.3.130.0090.03912.66
5.3.120.0080.04212.66
5.3.110.0070.04212.66
5.3.100.0060.03912.12
5.3.90.0060.03812.08
5.3.80.0060.04112.07
5.3.70.0080.04012.08
5.3.60.0060.03712.06
5.3.50.0080.03512.00
5.3.40.0070.03612.00
5.3.30.0050.03711.94
5.3.20.0040.03711.72
5.3.10.0050.03511.68
5.3.00.0050.03711.67