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.11.00.0300.08786.38
hhvm-3.10.00.0430.13083.64
hhvm-3.9.10.0330.13782.52
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.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
5.2.170.0160.0359.18
5.2.160.0220.0599.17
5.2.150.0200.0319.17
5.2.140.0180.0349.17
5.2.130.0190.0459.14
5.2.120.0140.0369.13
5.2.110.0140.0359.14
5.2.100.0160.0469.13
5.2.90.0210.0589.13
5.2.80.0110.0389.12
5.2.70.0160.0389.13
5.2.60.0120.0399.08
5.2.50.0230.0579.05
5.2.40.0140.0379.03
5.2.30.0140.0379.00
5.2.20.0160.0338.99
5.2.10.0130.0358.92
5.2.00.0140.0378.78
5.1.60.0130.0308.06
5.1.50.0320.0718.06
5.1.40.0130.0328.04
5.1.30.0120.0308.39
5.1.20.0130.0328.42
5.1.10.0090.0338.14
5.1.00.0120.0318.14
5.0.50.0080.0266.62
5.0.40.0080.0256.47
5.0.30.0080.0396.29
5.0.20.0090.0236.26
5.0.10.0130.0336.24
5.0.00.0070.0366.23
4.4.90.0050.0214.78
4.4.80.0160.0544.75
4.4.70.0070.0194.76
4.4.60.0050.0204.76
4.4.50.0080.0164.77
4.4.40.0080.0264.71
4.4.30.0070.0184.76
4.4.20.0090.0174.84
4.4.10.0080.0184.85
4.4.00.0170.0494.76
4.3.110.0070.0184.67
4.3.100.0060.0184.67
4.3.90.0060.0194.63
4.3.80.0080.0284.59
4.3.70.0050.0194.63
4.3.60.0070.0174.63
4.3.50.0090.0174.62
4.3.40.0070.0574.54
4.3.30.0050.0193.30
4.3.20.0060.0183.28
4.3.10.0070.0163.24
4.3.00.0030.0276.95