3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public static function bar($i = parent::DEF) { return $i; } } class Ex extends Foo{ const DEF = __CLASS__; } var_dump(Ex::bar());
based on s2BE3

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.0040.00716.63
7.2.00.0030.01319.18
7.1.200.0040.00415.62
7.1.100.0000.01117.76
7.1.70.0040.00417.02
7.1.60.0140.01019.40
7.1.50.0140.01116.54
7.1.00.0030.07722.36
7.0.200.0000.01016.71
7.0.140.0070.06721.92
7.0.60.0030.08719.95
7.0.50.0170.03017.94
7.0.40.0070.04320.11
7.0.30.0330.07320.26
7.0.20.0130.04320.07
7.0.10.0070.05720.21
7.0.00.0070.07020.03
5.6.280.0000.07721.04
5.6.210.0070.08020.66
5.6.200.0100.06018.28
5.6.190.0100.04720.46
5.6.180.0170.04720.77
5.6.170.0200.03720.71
5.6.160.0130.08320.61
5.6.150.0000.04718.25
5.6.140.0100.07018.18
5.6.130.0000.08318.14
5.6.120.0200.06320.98
5.6.110.0130.07721.01
5.6.100.0100.08021.10
5.6.90.0030.05721.13
5.6.80.0100.07720.48
5.5.350.4330.04020.41
5.5.340.0030.08017.95
5.5.330.0130.07720.43
5.5.320.0200.06320.38
5.5.310.0400.06320.27
5.5.300.0100.03717.99
5.5.290.0100.07017.95
5.5.280.0100.05720.78
5.5.270.0170.07720.84
5.5.260.0000.07720.73
5.5.250.0100.06320.77
5.5.240.0070.08020.24
5.4.450.0830.05319.20
5.4.440.0030.06719.54
5.4.430.0170.05319.61
5.4.420.0100.06019.31
5.4.410.0130.05719.35
5.4.400.0100.05719.30
5.4.390.0070.06019.20
5.4.380.0130.05718.73
5.4.370.0030.04018.48
5.4.360.0100.04718.75
5.4.350.0160.07112.02
5.4.340.0150.07612.02
5.4.320.0050.03712.50
5.4.310.0060.04112.50
5.4.300.0090.04312.50
5.4.290.0090.03512.50
5.4.280.0060.03912.39
5.4.270.0060.04812.39
5.4.260.0080.04412.40
5.4.250.0060.03912.40
5.4.240.0050.04512.39
5.4.230.0130.03912.39
5.4.220.0070.03612.39
5.4.210.0060.03812.38
5.4.200.0090.04412.38
5.4.190.0090.03712.38
5.4.180.0110.03812.38
5.4.170.0090.03912.39
5.4.160.0100.03612.39
5.4.150.0060.04612.39
5.4.140.0080.04112.07
5.4.130.0080.03612.06
5.4.120.0040.03812.02
5.4.110.0080.04012.01
5.4.100.0100.03612.02
5.4.90.0070.04512.01
5.4.80.0030.04612.02
5.4.70.0070.03612.01
5.4.60.0060.04512.01
5.4.50.0060.04112.01
5.4.40.0070.04712.00
5.4.30.0060.04111.99
5.4.20.0080.04911.99
5.4.10.0050.04411.99
5.4.00.0060.03411.49
5.3.290.0060.04412.80
5.3.280.0060.04012.71
5.3.270.0060.03812.73
5.3.260.0060.04112.72
5.3.250.0050.04512.72
5.3.240.0100.03412.72
5.3.230.0070.03612.71
5.3.220.0080.04112.68
5.3.210.0080.04112.68
5.3.200.0040.03812.68
5.3.190.0070.03912.68
5.3.180.0080.04212.67
5.3.170.0060.04212.67
5.3.160.0050.04012.68
5.3.150.0080.03812.68
5.3.140.0060.03512.66
5.3.130.0110.03812.66
5.3.120.0080.04512.66
5.3.110.0070.04812.65
5.3.100.0080.03912.12
5.3.90.0080.03712.10
5.3.80.0090.03612.09
5.3.70.0130.03812.09
5.3.60.0060.04512.07
5.3.50.0090.04212.02
5.3.40.0100.03812.02
5.3.30.0040.04011.98
5.3.20.0060.04511.77
5.3.10.0070.03911.73
5.3.00.0140.03211.72
5.2.170.0090.0369.22
5.2.160.0050.0389.22
5.2.150.0040.0349.23
5.2.140.0030.0399.22
5.2.130.0060.0309.18
5.2.120.0100.0309.18
5.2.110.0040.0329.18
5.2.100.0050.0359.18
5.2.90.0020.0319.18
5.2.80.0070.0279.18
5.2.70.0060.0319.18
5.2.60.0040.0319.13
5.2.50.0060.0289.10
5.2.40.0060.0319.08
5.2.30.0040.0399.05
5.2.20.0070.0299.04
5.2.10.0050.0288.94
5.2.00.0040.0368.80
5.1.60.0050.0268.09
5.1.50.0060.0238.09
5.1.40.0050.0368.06
5.1.30.0030.0288.42
5.1.20.0040.0298.44
5.1.10.0070.0268.17
5.1.00.0040.0258.16
5.0.50.0050.0226.64
5.0.40.0040.0196.50
5.0.30.0040.0326.31
5.0.20.0030.0206.28
5.0.10.0040.0196.25
5.0.00.0020.0366.25
4.4.90.0030.0184.78
4.4.80.0030.0164.75
4.4.70.0040.0184.75
4.4.60.0030.0244.75
4.4.50.0010.0224.77
4.4.40.0010.0264.71
4.4.30.0030.0184.76
4.4.20.0030.0224.84
4.4.10.0040.0214.85
4.4.00.0050.0314.76
4.3.110.0030.0154.67
4.3.100.0030.0184.66
4.3.90.0030.0244.64
4.3.80.0060.0224.58
4.3.70.0020.0154.63
4.3.60.0030.0154.63
4.3.50.0070.0174.63
4.3.40.0050.0254.54
4.3.30.0060.0243.30
4.3.20.0020.0233.28
4.3.10.0040.0263.23
4.3.00.0030.0207.34