3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $heading = '0xFF'; echo ++$heading;

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.0130.00698.97
7.3.0rc30.0530.00016.58
7.3.0beta10.0050.00312.38
7.3.0alpha10.0140.00312.52
7.2.60.0090.00616.49
7.2.00.0070.00719.06
7.1.200.0060.00615.67
7.1.100.0060.00617.86
7.1.70.0030.00516.82
7.1.60.0090.01519.70
7.1.50.0030.01916.88
7.1.00.0070.07322.36
7.0.200.0160.01014.73
7.0.140.0030.06721.95
7.0.60.0070.08319.90
7.0.50.0030.08717.80
7.0.40.0130.04320.19
7.0.30.0300.07320.00
7.0.20.0270.08020.13
7.0.10.0100.04720.21
7.0.00.0030.09320.13
5.6.210.0070.07720.46
5.6.200.0000.06718.15
5.6.190.0430.06020.34
5.6.180.0000.04320.44
5.6.170.0300.05720.38
5.6.160.0070.05720.43
5.6.150.0030.05018.22
5.6.140.0100.03718.21
5.6.130.0100.05018.20
5.6.120.0030.07020.97
5.6.110.0130.08020.96
5.6.100.0130.08021.03
5.6.90.0070.09021.09
5.6.80.0030.08720.54
5.6.70.4370.03320.42
5.5.350.0100.03720.43
5.5.340.0000.04017.98
5.5.330.0100.07020.09
5.5.320.0330.07720.32
5.5.310.0330.04720.28
5.5.300.0070.05017.94
5.5.290.0000.04317.95
5.5.280.0000.06320.88
5.5.270.0170.06320.96
5.5.260.0070.07320.63
5.5.250.0100.07720.54
5.5.240.0070.05020.27
5.4.450.0500.05019.41
5.4.440.0870.03719.60
5.4.430.0570.04019.54
5.4.420.1100.03019.13
5.4.410.0600.03719.13
5.4.400.0470.03319.09
5.4.390.1630.03018.85
5.4.380.0370.03718.66
5.4.370.0300.04018.68
5.4.360.0230.05018.59
5.4.350.0230.06018.73
5.4.340.0030.06018.69
5.4.320.0080.03312.45
5.4.310.0070.03512.45
5.4.300.0100.03212.45
5.4.290.0060.03912.45
5.4.280.0070.03512.34
5.4.270.0060.03712.34
5.4.260.0100.03312.34
5.4.250.0090.04012.34
5.4.240.0100.03312.35
5.4.230.0070.03712.34
5.4.220.0080.03412.34
5.4.210.0050.03812.34
5.4.200.0050.03812.34
5.4.190.0050.03612.34
5.4.180.0030.03912.33
5.4.170.0060.04612.34
5.4.160.0090.04212.34
5.4.150.0080.03512.34
5.4.140.0040.03912.02
5.4.130.0080.03312.01
5.4.120.0050.03611.97
5.4.110.0060.03611.96
5.4.100.0060.03511.96
5.4.90.0080.04711.96
5.4.80.0050.03811.96
5.4.70.0070.03511.96
5.4.60.0050.03811.96
5.4.50.0090.03111.96
5.4.40.0040.03911.95
5.4.30.0060.03611.94
5.4.20.0080.03311.95
5.4.10.0050.03411.95
5.4.00.0020.04011.43
5.3.290.0060.04412.80
5.3.280.0070.03712.70
5.3.270.0070.03812.73
5.3.260.0060.04012.72
5.3.250.0080.03612.72
5.3.240.0040.04012.72
5.3.230.0070.04212.71
5.3.220.0070.04112.68
5.3.210.0060.03812.68
5.3.200.0040.04212.68
5.3.190.0080.04012.68
5.3.180.0090.03712.68
5.3.170.0060.03712.67
5.3.160.0080.03512.67
5.3.150.0100.03512.67
5.3.140.0040.03912.66
5.3.130.0040.04712.66
5.3.120.0090.03812.66
5.3.110.0080.03612.66
5.3.100.0050.03712.12
5.3.90.0090.03812.08
5.3.80.0060.03512.07
5.3.70.0070.03512.08
5.3.60.0040.03812.06
5.3.50.0040.03712.00
5.3.40.0040.03812.00
5.3.30.0100.03111.94
5.3.20.0070.03411.72
5.3.10.0070.03411.69
5.3.00.0050.03711.67
5.2.170.0070.0289.18
5.2.160.0080.0299.18
5.2.150.0070.0339.17
5.2.140.0080.0269.17
5.2.130.0040.0329.13
5.2.120.0020.0339.13
5.2.110.0070.0279.13
5.2.100.0080.0259.13
5.2.90.0090.0289.13
5.2.80.0040.0359.13
5.2.70.0040.0339.13
5.2.60.0060.0299.08
5.2.50.0050.0299.05
5.2.40.0050.0289.02
5.2.30.0040.0309.01
5.2.20.0060.0289.00
5.2.10.0030.0298.93
5.2.00.0070.0268.79
5.1.60.0040.0238.07
5.1.50.0020.0268.07
5.1.40.0020.0268.05
5.1.30.0020.0278.41
5.1.20.0060.0308.42
5.1.10.0040.0258.14
5.1.00.0050.0328.15
5.0.50.0020.0226.63
5.0.40.0020.0236.48
5.0.30.0020.0316.30
5.0.20.0020.0296.27
5.0.10.0020.0216.25
5.0.00.0020.0326.23
4.4.90.0040.0164.78
4.4.80.0050.0164.75
4.4.70.0020.0164.75
4.4.60.0010.0174.75
4.4.50.0030.0234.77
4.4.40.0020.0264.71
4.4.30.0050.0144.76
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0040.0264.76
4.3.110.0050.0134.67
4.3.100.0050.0124.66
4.3.90.0010.0164.64
4.3.80.0070.0204.58
4.3.70.0030.0144.63
4.3.60.0010.0164.63
4.3.50.0040.0204.63
4.3.40.0070.0214.54
4.3.30.0010.0173.29
4.3.20.0010.0173.26
4.3.10.0030.0143.23
4.3.00.0000.02045.29