3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { const bar = 't'; const baz = 'k'; } $n = 'bar'; eval("\$m = foo::bar"); echo $m;
based on r9Mn7

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.3.0rc60.0000.00816.59
7.3.0rc40.0450.01398.97
7.3.0rc30.0170.00316.63
7.3.0beta10.0000.00512.69
7.3.0alpha10.0000.00912.63
7.2.60.0070.01016.83
7.2.00.0030.01018.99
7.1.200.0030.01015.80
7.1.100.0140.00018.07
7.1.70.0000.01017.07
7.1.60.0070.01519.40
7.1.50.0060.01516.57
7.1.00.0030.07722.31
7.0.200.0280.00914.62
7.0.140.0030.07022.09
7.0.60.0030.04719.99
7.0.50.0070.04017.91
7.0.40.0030.07320.18
7.0.30.0270.06320.30
7.0.20.0170.04720.33
7.0.10.0070.09020.33
7.0.00.0100.08720.33
5.6.280.0030.07021.10
5.6.210.0100.07720.47
5.6.200.0130.07718.20
5.6.190.0170.07720.69
5.6.180.0330.03720.64
5.6.170.0130.04320.44
5.6.160.0030.08720.55
5.6.150.0130.05718.25
5.6.140.0070.07718.18
5.6.130.0170.03318.17
5.6.120.0200.06721.10
5.6.110.0100.08321.02
5.6.100.0170.07320.98
5.6.90.0000.04320.96
5.6.80.0030.04020.50
5.5.350.0000.08720.52
5.5.340.0030.08318.08
5.5.330.0000.06720.30
5.5.320.0130.07020.27
5.5.310.0300.08020.28
5.5.300.0070.08318.08
5.5.290.0130.03718.02
5.5.280.0100.07720.79
5.5.270.0070.08320.77
5.5.260.0170.07320.86
5.5.250.0070.06020.66
5.5.240.0270.08020.26
5.4.450.0370.04319.28
5.4.440.0900.03719.52
5.4.430.0230.03319.41
5.4.420.0630.04019.41
5.4.410.0930.03319.23
5.4.400.0630.04319.22
5.4.390.1130.03719.06
5.4.380.0500.05018.75
5.4.370.0300.05718.76
5.4.360.0300.06318.79
5.4.350.0400.08718.59
5.4.340.0470.04318.59
5.4.320.0140.04712.50
5.4.310.0110.05012.50
5.4.300.0080.04312.50
5.4.290.0090.03812.50
5.4.280.0050.04512.39
5.4.270.0070.04712.39
5.4.260.0070.03812.39
5.4.250.0090.04012.39
5.4.240.0090.03612.39
5.4.230.0060.04712.38
5.4.220.0070.04112.38
5.4.210.0070.04512.38
5.4.200.0060.04112.38
5.4.190.0080.03512.38
5.4.180.0050.03812.38
5.4.170.0080.03512.39
5.4.160.0090.03312.38
5.4.150.0080.03612.38
5.4.140.0070.04812.07
5.4.130.0080.03712.05
5.4.120.0070.03612.01
5.4.110.0080.04712.01
5.4.100.0080.03812.01
5.4.90.0050.04012.01
5.4.80.0040.03912.02
5.4.70.0070.03412.00
5.4.60.0040.03712.01
5.4.50.0060.03612.00
5.4.40.0060.03512.00
5.4.30.0090.03311.99
5.4.20.0060.04611.99
5.4.10.0120.04011.99
5.4.00.0080.04211.48
5.3.290.0080.04712.80
5.3.280.0080.04112.71
5.3.270.0080.03812.72
5.3.260.0100.04212.72
5.3.250.0060.03912.72
5.3.240.0060.04312.72
5.3.230.0070.03712.71
5.3.220.0080.03612.68
5.3.210.0080.03912.68
5.3.200.0060.04512.68
5.3.190.0050.04112.68
5.3.180.0070.03512.67
5.3.170.0050.04412.67
5.3.160.0060.03912.68
5.3.150.0080.04112.68
5.3.140.0070.03612.66
5.3.130.0060.03912.66
5.3.120.0080.03912.66
5.3.110.0070.03912.65
5.3.100.0070.03712.12
5.3.90.0070.03612.10
5.3.80.0100.04012.09
5.3.70.0030.04312.09
5.3.60.0110.04012.07
5.3.50.0100.03512.02
5.3.40.0130.04812.02
5.3.30.0080.03611.98
5.3.20.0060.04311.76
5.3.10.0110.04011.73
5.3.00.0070.04111.71
5.2.170.0080.0279.21
5.2.160.0070.0289.21
5.2.150.0040.0369.21
5.2.140.0070.0349.21
5.2.130.0080.0359.18
5.2.120.0090.0329.17
5.2.110.0060.0369.18
5.2.100.0070.0329.17
5.2.90.0060.0369.17
5.2.80.0100.0329.17
5.2.70.0090.0329.17
5.2.60.0040.0389.12
5.2.50.0080.0339.09
5.2.40.0070.0329.07
5.2.30.0030.0339.04
5.2.20.0060.0299.04
5.2.10.0050.0368.95
5.2.00.0040.0348.80
5.1.60.0040.0258.09
5.1.50.0050.0248.09
5.1.40.0070.0238.06
5.1.30.0030.0288.42
5.1.20.0050.0288.44
5.1.10.0040.0298.16
5.1.00.0060.0318.16
5.0.50.0050.0246.64
5.0.40.0030.0256.50
5.0.30.0030.0326.31
5.0.20.0040.0206.28
5.0.10.0040.0206.25
5.0.00.0080.0276.25
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0060.0134.75
4.4.60.0040.0194.76
4.4.50.0030.0204.77
4.4.40.0030.0294.71
4.4.30.0030.0164.76
4.4.20.0040.0154.85
4.4.10.0030.0204.85
4.4.00.0030.0254.76
4.3.110.0050.0154.67
4.3.100.0040.0144.66
4.3.90.0030.0154.63
4.3.80.0010.0264.58
4.3.70.0020.0164.63
4.3.60.0060.0134.63
4.3.50.0010.0184.63
4.3.40.0050.0284.54
4.3.30.0030.0163.30
4.3.20.0010.0203.28
4.3.10.0050.0173.23
4.3.00.0100.01316.02