3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public static function foo() { echo "foo" . PHP_EOL; } } $t = new test(); $t->foo();
based on BsK0f

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.0120.00016.81
7.1.200.0090.00315.42
7.1.70.0050.00317.01
7.1.60.0060.01819.32
7.1.50.0040.00816.66
7.1.00.0000.07322.46
7.0.200.0030.00716.72
7.0.140.0070.07022.21
7.0.60.0130.08319.91
7.0.50.0070.05317.83
7.0.40.0170.06720.09
7.0.30.0270.04320.28
7.0.20.0430.06720.13
7.0.10.0130.07720.23
7.0.00.0070.04020.20
5.6.280.0030.07321.08
5.6.210.0100.06320.71
5.6.200.0100.08018.32
5.6.190.0030.08320.59
5.6.180.3400.05020.33
5.6.170.0270.07320.54
5.6.160.0100.06720.44
5.6.150.0030.06318.12
5.6.140.0070.04018.17
5.6.130.0100.07018.18
5.6.120.0070.05321.09
5.6.110.0030.09021.11
5.6.100.0070.08721.04
5.6.90.0100.06021.11
5.6.80.0170.07020.51
5.6.70.4270.03720.48
5.5.350.0170.07720.49
5.5.340.0070.04018.07
5.5.330.0100.08020.14
5.5.320.3970.04320.27
5.5.310.0230.03720.24
5.5.300.0100.07717.98
5.5.290.0100.07718.02
5.5.280.0030.05020.98
5.5.270.0030.04320.77
5.5.260.0130.06720.76
5.5.250.0000.09020.69
5.5.240.0300.06720.19
5.4.450.0800.06319.48
5.4.440.0800.05319.61
5.4.430.0800.05319.23
5.4.420.0000.06319.41
5.4.410.0000.06319.43
5.4.400.0570.06318.88
5.4.390.0400.05018.80
5.4.380.0400.06018.72
5.4.370.0370.06018.78
5.4.360.0730.06018.46
5.4.350.0020.03812.02
5.4.340.0060.04012.02
5.4.320.0040.04112.50
5.4.310.0030.04212.50
5.4.300.0080.04312.50
5.4.290.0090.03512.50
5.4.280.0050.04012.39
5.4.270.0080.04912.39
5.4.260.0070.04112.39
5.4.250.0070.03612.39
5.4.240.0090.03612.39
5.4.230.0050.04212.38
5.4.220.0090.04012.39
5.4.210.0070.04012.38
5.4.200.0110.04212.39
5.4.190.0050.04412.38
5.4.180.0090.06612.38
5.4.170.0090.04912.39
5.4.160.0080.04112.39
5.4.150.0070.04012.39
5.4.140.0060.05312.07
5.4.130.0070.03812.06
5.4.120.0080.04012.02
5.4.110.0050.04012.01
5.4.100.0080.03412.01
5.4.90.0080.04112.01
5.4.80.0060.03612.01
5.4.70.0070.03512.01
5.4.60.0060.03712.00
5.4.50.0100.03612.00
5.4.40.0050.03812.00
5.4.30.0060.03712.00
5.4.20.0040.03912.00
5.4.10.0100.03011.99
5.4.00.0040.03911.48
5.3.290.0060.04012.80
5.3.280.0110.03312.71
5.3.270.0100.03812.72
5.3.260.0090.04012.71
5.3.250.0120.04812.71
5.3.240.0090.03712.72
5.3.230.0050.04012.71
5.3.220.0080.03812.68
5.3.210.0090.04012.68
5.3.200.0110.03712.68
5.3.190.0080.04212.68
5.3.180.0050.03712.67
5.3.170.0060.03612.67
5.3.160.0060.03712.67
5.3.150.0090.03612.67
5.3.140.0080.03512.66
5.3.130.0040.04112.65
5.3.120.0060.04212.66
5.3.110.0070.03912.66
5.3.100.0100.04412.11
5.3.90.0080.03712.09
5.3.80.0060.05312.09
5.3.70.0060.04012.09
5.3.60.0050.03712.07
5.3.50.0080.04012.02
5.3.40.0090.03912.02
5.3.30.0070.04011.97
5.3.20.0100.03711.75
5.3.10.0040.04211.73
5.3.00.0030.03911.71
5.2.170.0070.0329.22
5.2.160.0060.0299.22
5.2.150.0040.0319.21
5.2.140.0020.0339.21
5.2.130.0040.0359.17
5.2.120.0060.0399.17
5.2.110.0070.0309.18
5.2.100.0050.0309.17
5.2.90.0060.0359.18
5.2.80.0050.0329.17
5.2.70.0060.0359.17
5.2.60.0050.0409.13
5.2.50.0020.0379.10
5.2.40.0140.0489.07
5.2.30.0100.0399.04
5.2.20.0110.0349.03
5.2.10.0090.0358.93
5.2.00.0040.0348.80
5.1.60.0040.0248.09
5.1.50.0040.0278.09
5.1.40.0080.0228.06
5.1.30.0070.0288.41
5.1.20.0050.0338.43
5.1.10.0070.0258.16
5.1.00.0040.0268.16
5.0.50.0030.0206.63
5.0.40.0040.0196.49
5.0.30.0050.0326.30
5.0.20.0030.0206.27
5.0.10.0040.0196.25
5.0.00.0070.0286.25
4.4.90.0040.0164.78
4.4.80.0010.0174.76
4.4.70.0060.0144.75
4.4.60.0010.0174.75
4.4.50.0050.0144.77
4.4.40.0020.0274.71
4.4.30.0030.0154.76
4.4.20.0040.0144.84
4.4.10.0050.0134.85
4.4.00.0010.0264.76
4.3.110.0040.0144.67
4.3.100.0020.0164.66
4.3.90.0050.0144.64
4.3.80.0030.0244.58
4.3.70.0020.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0164.63
4.3.40.0030.0264.54
4.3.30.0030.0163.30
4.3.20.0020.0173.28
4.3.10.0020.0163.24
4.3.00.0100.0206.75