3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { const BAR = 0 + self::FOO; const FOO = 0 + self::BAR; } var_dump(test::BAR);

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.0rc40.0110.00898.97
7.3.0rc30.0070.01016.37
7.3.0beta10.0030.00512.84
7.3.0alpha10.0120.00212.16
7.2.60.0060.00616.88
7.2.00.0030.00919.39
7.1.200.0000.01415.61
7.1.100.0120.00417.95
7.1.70.0000.00817.07
7.1.60.0080.00819.70
7.1.50.0090.00916.41
7.1.00.0030.07322.46
7.0.200.0030.00916.57
7.0.140.0030.07322.05
7.0.60.0330.06020.02
7.0.50.0030.04317.84
7.0.40.0070.09020.11
7.0.30.0300.04720.38
7.0.20.0270.08320.12
7.0.10.0070.08720.16
7.0.00.0070.08320.23
5.6.280.0070.07021.15
5.6.210.0070.07320.50
5.6.200.0200.03318.19
5.6.190.0070.04020.63
5.6.180.0200.08720.77
5.6.170.0300.05720.51
5.6.160.0030.05720.39
5.6.150.0030.04718.27
5.6.140.0070.04718.12
5.6.130.0030.09018.18
5.6.120.0070.08021.14
5.6.110.0000.04721.01
5.6.100.0100.08021.10
5.6.90.0170.07721.12
5.6.80.0100.07720.42
5.5.350.0070.08020.31
5.5.340.0070.03318.07
5.5.330.0070.07720.35
5.5.320.0270.03720.25
5.5.310.0270.07320.36
5.5.300.0000.09018.05
5.5.290.0100.05717.99
5.5.280.0000.08020.79
5.5.270.0070.07320.83
5.5.260.0070.05020.64
5.5.250.0100.03320.54
5.5.240.0000.04020.25
5.4.450.0670.06019.63
5.4.440.0800.05319.47
5.4.430.0870.05319.45
5.4.420.0700.00019.51
5.4.410.0200.05018.86
5.4.400.0270.07718.75
5.4.390.0200.05718.77
5.4.380.0200.05718.55
5.4.370.0030.06018.46
5.4.360.0130.05318.73
5.4.350.0080.03912.02
5.4.340.0060.04112.02
5.4.320.0080.03512.51
5.4.310.0070.04712.51
5.4.300.0100.03612.50
5.4.290.0050.03912.50
5.4.280.0060.03512.40
5.4.270.0080.03312.40
5.4.260.0060.04212.40
5.4.250.0060.03812.40
5.4.240.0040.03712.40
5.4.230.0050.04312.39
5.4.220.0070.04612.39
5.4.210.0090.03612.39
5.4.200.0090.03512.39
5.4.190.0050.03712.39
5.4.180.0080.03312.39
5.4.170.0060.03612.40
5.4.160.0050.03612.39
5.4.150.0080.03412.39
5.4.140.0060.03612.08
5.4.130.0050.03612.06
5.4.120.0070.03612.03
5.4.110.0070.04412.02
5.4.100.0070.03612.02
5.4.90.0070.03712.02
5.4.80.0040.03912.02
5.4.70.0080.03312.02
5.4.60.0060.04112.02
5.4.50.0060.03412.02
5.4.40.0040.03612.01
5.4.30.0080.03712.00
5.4.20.0070.03612.00
5.4.10.0040.03612.00
5.4.00.0040.03711.49
5.3.290.0100.05412.80
5.3.280.0060.04312.71
5.3.270.0060.04312.72
5.3.260.0060.03812.72
5.3.250.0070.03912.72
5.3.240.0100.03312.72
5.3.230.0050.03912.71
5.3.220.0020.04112.68
5.3.210.0050.04112.68
5.3.200.0060.03612.68
5.3.190.0080.03612.68
5.3.180.0090.03712.68
5.3.170.0080.03812.67
5.3.160.0090.03312.67
5.3.150.0110.03812.67
5.3.140.0050.03712.66
5.3.130.0080.04012.66
5.3.120.0040.04312.66
5.3.110.0060.04012.66
5.3.100.0090.03912.12
5.3.90.0070.03712.10
5.3.80.0070.03612.09
5.3.70.0100.03512.09
5.3.60.0030.03912.08
5.3.50.0080.03412.02
5.3.40.0050.03712.02
5.3.30.0030.03711.98
5.3.20.0070.03511.76
5.3.10.0070.03311.73
5.3.00.0090.03811.71
5.2.170.0060.0339.21
5.2.160.0050.0359.21
5.2.150.0110.0279.21
5.2.140.0100.0329.21
5.2.130.0050.0299.17
5.2.120.0030.0309.17
5.2.110.0040.0319.18
5.2.100.0080.0279.17
5.2.90.0080.0309.18
5.2.80.0030.0349.17
5.2.70.0040.0389.17
5.2.60.0070.0309.13
5.2.50.0060.0289.09
5.2.40.0050.0289.06
5.2.30.0060.0289.04
5.2.20.0020.0329.03
5.2.10.0070.0278.94
5.2.00.0100.0248.80
5.1.60.0060.0228.09
5.1.50.0050.0288.09
5.1.40.0040.0258.06
5.1.30.0070.0248.41
5.1.20.0040.0318.43
5.1.10.0050.0318.16
5.1.00.0070.0238.16
5.0.50.0050.0206.63
5.0.40.0020.0216.50
5.0.30.0070.0286.31
5.0.20.0060.0176.27
5.0.10.0060.0186.26
5.0.00.0030.0316.25
4.4.90.0040.0144.78
4.4.80.0040.0144.75
4.4.70.0030.0154.75
4.4.60.0050.0144.76
4.4.50.0030.0154.77
4.4.40.0030.0254.70
4.4.30.0030.0154.75
4.4.20.0030.0164.84
4.4.10.0040.0144.85
4.4.00.0040.0274.76
4.3.110.0030.0164.67
4.3.100.0010.0164.66
4.3.90.0020.0154.63
4.3.80.0050.0224.58
4.3.70.0060.0114.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0040.0254.53
4.3.30.0030.0203.30
4.3.20.0050.0163.28
4.3.10.0010.0203.23
4.3.00.0170.0176.56