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.0100.06019.79
7.0.50.0030.05317.82
7.0.40.0070.04320.28
7.0.30.0300.07320.20
7.0.20.0200.05020.09
7.0.10.0270.07320.09
7.0.00.0070.08720.16
hhvm-3.12.00.1100.17395.77
hhvm-3.10.00.0430.13083.64
5.6.210.0100.07320.76
5.6.200.0000.04718.24
5.6.190.0070.09720.57
5.6.180.0030.05020.42
5.6.170.0370.07320.54
5.6.160.0130.07720.51
5.6.150.0130.07318.23
5.6.140.0070.04018.22
5.6.130.0100.05318.29
5.6.120.0070.04020.89
5.6.110.0070.07721.00
5.6.100.0130.04321.00
5.6.90.0100.07320.96
5.6.80.0070.05320.53
5.6.70.0330.07320.39
5.5.350.0030.07320.52
5.5.340.0030.04018.03
5.5.330.0070.04020.27
5.5.320.0170.04320.41
5.5.310.0100.04720.29
5.5.300.0030.09018.04
5.5.290.0170.07318.08
5.5.280.0070.04020.83
5.5.270.0030.04020.64
5.5.260.0030.04320.75
5.5.250.0030.04020.66
5.5.240.0070.07720.28
5.4.450.0130.08719.46
5.4.440.0430.05719.16
5.4.430.0200.04319.38
5.4.420.0100.05319.32
5.4.410.0070.06019.06
5.4.400.0500.05018.82
5.4.390.1070.05318.77
5.4.380.0200.05318.70
5.4.370.0070.03718.78
5.4.360.0100.03318.63
5.4.350.0090.04212.02
5.4.340.0030.03812.01
5.4.320.0050.03812.45
5.4.310.0050.05212.45
5.4.300.0130.05312.45
5.4.290.0070.03812.45
5.4.280.0080.03512.35
5.4.270.0050.03712.35
5.4.260.0050.03712.34
5.4.250.0100.04912.34
5.4.240.0100.04312.34
5.4.230.0050.03912.34
5.4.220.0070.05112.34
5.4.210.0130.05312.34
5.4.200.0020.04112.34
5.4.190.0080.03412.33
5.4.180.0070.03612.33
5.4.170.0160.04212.33
5.4.160.0180.04412.32
5.4.150.0190.04312.32
5.4.140.0150.04512.00
5.4.130.0380.09811.99
5.4.120.0180.04011.95
5.4.110.0160.04411.95
5.4.100.0170.04211.95
5.4.90.0170.04511.95
5.4.80.0220.03911.94
5.4.70.0240.08011.94
5.4.60.0340.07511.94
5.4.50.0330.07011.94
5.4.40.0250.06711.93
5.4.30.0170.04611.93
5.4.20.0190.05911.93
5.4.10.0140.04611.93
5.4.00.0120.05011.42
5.3.290.0070.04012.80
5.3.280.0080.03612.71
5.3.270.0170.04412.73
5.3.260.0110.05312.72
5.3.250.0200.04312.71
5.3.240.0190.04812.72
5.3.230.0330.09412.71
5.3.220.0240.05312.68
5.3.210.0190.04512.68
5.3.200.0180.04612.68
5.3.190.0180.07912.68
5.3.180.0180.04712.67
5.3.170.0240.05812.67
5.3.160.0300.07212.67
5.3.150.0170.04612.68
5.3.140.0270.07012.66
5.3.130.0220.04512.66
5.3.120.0180.04712.66
5.3.110.0220.07212.66
5.3.100.0220.04512.12
5.3.90.0250.06612.08
5.3.80.0220.05812.08
5.3.70.0160.04712.08
5.3.60.0160.04712.06
5.3.50.0370.08812.00
5.3.40.0140.04812.00
5.3.30.0150.04911.94
5.3.20.0180.05711.72
5.3.10.0260.06811.69
5.3.00.0150.04511.67