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)
hhvm-3.11.01.5100.10085.82
hhvm-3.10.00.0930.08783.37
hhvm-3.9.11.0230.08781.98
hhvm-3.8.10.3830.07382.85
hhvm-3.6.10.4300.09780.80
7.0.30.0200.08020.17
7.0.20.4130.05020.25
7.0.10.3830.03720.22
7.0.00.4930.04020.11
5.6.170.4130.03720.55
5.6.160.0200.04720.50
5.6.150.3330.04020.34
5.6.140.0300.05020.36
5.6.130.0300.03720.27
5.6.120.0200.03320.50
5.6.110.0730.06020.38
5.6.100.1070.03320.38
5.6.90.1000.03320.14
5.6.80.1100.05019.79
5.6.70.1000.04019.73
5.6.60.0130.06019.21
5.6.50.0100.06719.41
5.6.40.0130.06019.23
5.6.30.0070.06019.25
5.6.20.0170.05319.29
5.6.10.0200.05319.43
5.6.00.0080.03713.00
5.5.310.3600.04320.29
5.5.300.0400.07720.05
5.5.290.0670.04320.20
5.5.280.0800.05320.07
5.5.270.1200.04320.20
5.5.260.0170.03720.11
5.5.250.1070.04320.09
5.5.240.0800.04019.58
5.5.230.1130.04019.56
5.5.220.0030.06319.24
5.5.210.0200.05319.29
5.5.200.0200.05319.27
5.5.190.0130.08019.21
5.5.180.0100.06319.10
5.5.160.0020.04412.82
5.5.150.0080.03812.82
5.5.140.0070.03812.82
5.5.130.0060.04212.81
5.5.120.0080.03812.73
5.5.110.0060.03712.72
5.5.100.0090.04112.63
5.5.90.0060.03612.63
5.5.80.0070.04212.63
5.5.70.0050.04412.63
5.5.60.0060.04512.63
5.5.50.0070.04112.63
5.5.40.0060.04212.63
5.5.30.0070.04212.63
5.5.20.0060.04012.63
5.5.10.0060.04012.64
5.5.00.0090.03812.63
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
5.2.170.0040.0339.17
5.2.160.0060.0309.17
5.2.150.0060.0299.17
5.2.140.0050.0319.17
5.2.130.0050.0299.13
5.2.120.0040.0319.13
5.2.110.0040.0329.14
5.2.100.0070.0299.14
5.2.90.0050.0319.13
5.2.80.0050.0339.13
5.2.70.0040.0339.13
5.2.60.0050.0329.08
5.2.50.0060.0319.05
5.2.40.0050.0309.03
5.2.30.0040.0349.01
5.2.20.0040.0318.99
5.2.10.0050.0308.92
5.2.00.0040.0328.77
5.1.60.0040.0258.06
5.1.50.0030.0268.05
5.1.40.0040.0258.04
5.1.30.0060.0278.39
5.1.20.0050.0298.41
5.1.10.0040.0298.13
5.1.00.0060.0278.13
5.0.50.0030.0246.61
5.0.40.0030.0236.47
5.0.30.0030.0356.28
5.0.20.0040.0216.26
5.0.10.0040.0226.23
5.0.00.0040.0336.22
4.4.90.0030.0174.78
4.4.80.0030.0184.76
4.4.70.0040.0164.76
4.4.60.0040.0164.75
4.4.50.0040.0184.77
4.4.40.0040.0264.71
4.4.30.0030.0174.76
4.4.20.0030.0174.85
4.4.10.0040.0164.85
4.4.00.0040.0274.76
4.3.110.0030.0174.67
4.3.100.0030.0174.66
4.3.90.0030.0174.63
4.3.80.0040.0254.58
4.3.70.0020.0174.63
4.3.60.0030.0164.63
4.3.50.0020.0184.63
4.3.40.0040.0254.54
4.3.30.0020.0183.28
4.3.20.0010.0193.25
4.3.10.0020.0173.21
4.3.00.0100.03314.23