3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($a) { $a=5; echo func_get_arg(0); } foo(2); echo "\n"; ?>
based on 03UWo

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.2.60.0070.00717.00
7.2.00.0030.01019.10
7.1.200.0060.00615.78
7.1.100.0000.01118.10
7.1.70.0000.00717.09
7.1.60.0030.02219.40
7.1.50.0060.00616.92
7.1.00.0030.07322.41
7.0.200.0030.00316.72
7.0.140.0100.06722.04
7.0.60.0070.08020.00
7.0.50.0100.04717.85
7.0.40.0100.04020.41
7.0.30.0330.07320.21
7.0.20.0200.04320.33
7.0.10.0100.08320.19
7.0.00.0070.06020.06
5.6.280.0030.07720.78
5.6.210.0030.04020.57
5.6.200.0100.07718.19
5.6.190.0030.08720.45
5.6.180.0570.05320.48
5.6.170.0270.06020.45
5.6.160.0030.08020.57
5.6.150.0070.04718.18
5.6.140.0030.04018.19
5.6.130.0070.04318.18
5.6.120.0070.05320.99
5.6.110.0000.05321.09
5.6.100.0100.07321.02
5.6.90.0100.06021.00
5.6.80.0100.07720.38
5.5.350.4230.03320.30
5.5.340.0000.09318.08
5.5.330.0070.05020.32
5.5.320.0170.04020.37
5.5.310.0330.08020.20
5.5.300.0100.06718.04
5.5.290.0000.08718.00
5.5.280.0130.08320.89
5.5.270.0200.07020.68
5.5.260.0100.06720.76
5.5.250.0030.08320.61
5.5.240.0000.08720.36
5.4.450.0600.06319.46
5.4.440.0530.06319.23
5.4.430.0100.05719.48
5.4.420.0930.05719.27
5.4.410.0070.05719.19
5.4.400.0530.05718.96
5.4.390.0830.04319.22
5.4.380.0270.04318.77
5.4.370.0170.04718.39
5.4.360.0270.03318.68
5.4.350.0230.08012.02
5.4.340.0040.03812.01
5.4.320.0080.03912.50
5.4.310.0050.03812.50
5.4.300.0050.03712.51
5.4.290.0030.04012.50
5.4.280.0040.03712.40
5.4.270.0050.03612.40
5.4.260.0030.03912.40
5.4.250.0050.03912.40
5.4.240.0090.03412.40
5.4.230.0060.03812.39
5.4.220.0060.03612.39
5.4.210.0080.03412.39
5.4.200.0040.03912.39
5.4.190.0070.03512.39
5.4.180.0060.03612.39
5.4.170.0060.03712.39
5.4.160.0110.03112.39
5.4.150.0080.03312.39
5.4.140.0020.04012.07
5.4.130.0060.03612.05
5.4.120.0050.03612.02
5.4.110.0060.03512.02
5.4.100.0060.03512.01
5.4.90.0060.03812.01
5.4.80.0040.04112.01
5.4.70.0060.03512.01
5.4.60.0090.03412.01
5.4.50.0050.03812.01
5.4.40.0100.04112.00
5.4.30.0080.03512.00
5.4.20.0080.03312.00
5.4.10.0090.03211.99
5.4.00.0040.04011.48
5.3.290.0070.03912.80
5.3.280.0060.04312.70
5.3.270.0040.04612.72
5.3.260.0070.03912.72
5.3.250.0030.04312.72
5.3.240.0060.05212.72
5.3.230.0080.04512.71
5.3.220.0040.04112.68
5.3.210.0040.04212.68
5.3.200.0040.04012.68
5.3.190.0040.03912.68
5.3.180.0060.03612.67
5.3.170.0020.04012.67
5.3.160.0040.03812.67
5.3.150.0040.04112.67
5.3.140.0050.03912.66
5.3.130.0090.03512.65
5.3.120.0120.03312.66
5.3.110.0150.02912.66
5.3.100.0050.03812.12
5.3.90.0050.04512.10
5.3.80.0060.03612.09
5.3.70.0080.03412.09
5.3.60.0040.03812.07
5.3.50.0070.03412.02
5.3.40.0060.03612.02
5.3.30.0070.03311.98
5.3.20.0090.03311.76
5.3.10.0060.04011.73
5.3.00.0110.03111.71
5.2.170.0010.0339.21
5.2.160.0030.0309.21
5.2.150.0030.0319.21
5.2.140.0010.0339.21
5.2.130.0020.0319.17
5.2.120.0040.0299.17
5.2.110.0060.0319.17
5.2.100.0040.0309.17
5.2.90.0030.0339.16
5.2.80.0050.0339.17
5.2.70.0070.0289.17
5.2.60.0040.0309.12
5.2.50.0070.0279.09
5.2.40.0040.0299.07
5.2.30.0050.0299.04
5.2.20.0060.0289.03
5.2.10.0050.0348.94
5.2.00.0050.0298.79
5.1.60.0050.0238.07
5.1.50.0040.0248.07
5.1.40.0040.0248.06
5.1.30.0040.0268.41
5.1.20.0050.0308.43
5.1.10.0040.0268.15
5.1.00.0060.0238.15
5.0.50.0050.0236.63
5.0.40.0030.0216.50
5.0.30.0020.0326.30
5.0.20.0050.0176.27
5.0.10.0020.0216.25
5.0.00.0030.0306.24
4.4.90.0020.0164.78
4.4.80.0010.0174.75
4.4.70.0030.0164.76
4.4.60.0020.0164.76
4.4.50.0050.0124.77
4.4.40.0010.0264.71
4.4.30.0030.0154.76
4.4.20.0030.0154.85
4.4.10.0010.0174.85
4.4.00.0030.0244.76
4.3.110.0040.0144.67
4.3.100.0040.0134.66
4.3.90.0020.0154.63
4.3.80.0020.0244.59
4.3.70.0060.0134.63
4.3.60.0050.0124.63
4.3.50.0030.0164.63
4.3.40.0030.0264.54
4.3.30.0020.0163.29
4.3.20.0010.0163.27
4.3.10.0010.0173.23
4.3.00.0130.0238.41