3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class stuff { public static function test2() { echo 'hi'; } public function test() { self::test2(); } } class stuff2 extends stuff { public static function test2() { echo 'hello'; } } $a = new stuff2(); $a->test();

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.00.0000.01419.43
7.1.100.0000.01118.00
7.1.70.0080.00016.99
7.1.60.0150.00919.46
7.1.50.0090.01216.86
7.1.00.0030.07722.56
7.0.200.0040.00416.58
7.0.140.0100.06722.21
7.0.60.0130.03719.88
7.0.50.0070.08717.95
7.0.40.0100.07720.02
7.0.30.0230.06720.21
7.0.20.0330.06320.11
7.0.10.0130.08320.25
7.0.00.0130.07720.23
5.6.280.0000.07721.13
5.6.210.0130.06020.73
5.6.200.0070.08718.12
5.6.190.0100.08320.50
5.6.180.0130.06020.50
5.6.170.0370.05320.43
5.6.160.0030.09320.52
5.6.150.0030.04318.29
5.6.140.0100.06018.26
5.6.130.0230.06318.21
5.6.120.0100.04021.11
5.6.110.0000.09021.04
5.6.100.0030.08021.08
5.6.90.0070.08720.88
5.6.80.0100.06320.53
5.5.350.0200.07720.50
5.5.340.0000.04318.07
5.5.330.0200.07320.28
5.5.320.0330.04320.36
5.5.310.0370.05320.36
5.5.300.0030.04717.95
5.5.290.0030.04018.07
5.5.280.0100.08320.90
5.5.270.0030.09020.79
5.5.260.0000.08320.96
5.5.250.0100.08320.60
5.5.240.0300.08020.16
5.4.450.0770.05719.47
5.4.440.0900.04719.48
5.4.430.0730.05319.53
5.4.420.0930.07319.29
5.4.410.0700.05019.50
5.4.400.0800.05319.27
5.4.390.0670.06019.23
5.4.380.0300.06018.81
5.4.370.0300.05318.79
5.4.360.0230.05718.80
5.4.350.0370.05318.56
5.4.340.0400.05318.70
5.4.320.0140.06012.50
5.4.310.0090.04212.50
5.4.300.0060.03612.50
5.4.290.0100.03312.48
5.4.280.0040.03712.38
5.4.270.0070.03712.38
5.4.260.0060.03812.38
5.4.250.0040.04012.38
5.4.240.0070.03512.38
5.4.230.0090.03912.37
5.4.220.0080.04012.38
5.4.210.0030.04412.37
5.4.200.0050.03912.37
5.4.190.0040.03812.36
5.4.180.0040.03712.37
5.4.170.0060.04012.38
5.4.160.0070.03512.38
5.4.150.0110.05612.37
5.4.140.0110.03412.06
5.4.130.0070.03812.05
5.4.120.0090.03612.00
5.4.110.0110.03612.00
5.4.100.0070.05111.99
5.4.90.0050.04312.00
5.4.80.0100.03412.00
5.4.70.0080.03411.99
5.4.60.0080.03312.00
5.4.50.0040.03611.99
5.4.40.0060.03611.98
5.4.30.0060.04211.98
5.4.20.0070.04911.98
5.4.10.0070.03711.98
5.4.00.0070.03811.46
5.3.290.0070.04012.80
5.3.280.0070.04512.71
5.3.270.0050.05112.73
5.3.260.0080.05112.72
5.3.250.0040.04812.72
5.3.240.0040.04312.72
5.3.230.0050.04712.71
5.3.220.0090.04212.68
5.3.210.0060.04012.68
5.3.200.0070.03912.68
5.3.190.0040.04112.68
5.3.180.0090.04512.68
5.3.170.0090.05612.66
5.3.160.0050.05712.67
5.3.150.0040.04212.67
5.3.140.0070.04212.66
5.3.130.0110.03612.66
5.3.120.0070.04512.66
5.3.110.0030.04112.66
5.3.100.0060.04012.12
5.3.90.0070.03612.10
5.3.80.0060.03812.10
5.3.70.0060.03712.09
5.3.60.0060.03612.08
5.3.50.0080.03412.03
5.3.40.0050.03712.03
5.3.30.0080.03311.98
5.3.20.0040.03711.77
5.3.10.0080.03311.73
5.3.00.0050.03711.73
5.2.170.0040.0329.22
5.2.160.0080.0349.23
5.2.150.0050.0299.23
5.2.140.0050.0309.22
5.2.130.0040.0309.18
5.2.120.0070.0269.18
5.2.110.0060.0329.19
5.2.100.0070.0379.18
5.2.90.0100.0359.18
5.2.80.0080.0379.18
5.2.70.0070.0399.18
5.2.60.0120.0329.13
5.2.50.0040.0439.10
5.2.40.0030.0349.07
5.2.30.0040.0309.05
5.2.20.0040.0329.04
5.2.10.0070.0268.95
5.2.00.0040.0338.81
5.1.60.0030.0268.09
5.1.50.0070.0248.09
5.1.40.0030.0278.07
5.1.30.0030.0298.41
5.1.20.0030.0298.44
5.1.10.0030.0278.17
5.1.00.0000.0308.17
5.0.50.0050.0196.64
5.0.40.0050.0186.50
5.0.30.0030.0436.32
5.0.20.0030.0206.28
5.0.10.0010.0246.26
5.0.00.0030.0416.25
4.4.90.0050.0144.78
4.4.80.0030.0154.76
4.4.70.0060.0124.75
4.4.60.0020.0174.76
4.4.50.0040.0154.77
4.4.40.0020.0274.71
4.4.30.0030.0184.76
4.4.20.0040.0154.84
4.4.10.0040.0144.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0020.0164.67
4.3.90.0040.0134.63
4.3.80.0040.0244.58
4.3.70.0040.0144.63
4.3.60.0020.0184.63
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0010.0173.30
4.3.20.0030.0163.28
4.3.10.0020.0163.24
4.3.00.0170.01310.54