3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((int)"0xa"); var_dump(+"0xa"); var_dump("0xa" * 1); var_dump("0xa" >> 0);

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.0070.00716.80
7.2.00.0060.01019.03
7.1.200.0120.00315.55
7.1.100.0000.01118.23
7.1.70.0070.00017.13
7.1.60.0030.01519.70
7.1.50.0140.01016.57
7.1.00.0000.08022.32
7.0.200.0070.00016.48
7.0.140.0000.07722.01
7.0.60.0070.08719.83
7.0.50.0030.04017.80
7.0.40.0100.05720.23
7.0.30.0370.04320.30
7.0.20.0300.07720.13
7.0.10.0230.05320.18
7.0.00.0070.05720.32
5.6.280.0000.09321.11
5.6.210.0070.08020.54
5.6.200.0070.08318.22
5.6.190.0030.04320.39
5.6.180.0130.07320.35
5.6.170.0300.05020.42
5.6.160.0070.04320.61
5.6.150.0030.05318.21
5.6.140.0070.06318.11
5.6.130.0030.06318.14
5.6.120.0100.08020.96
5.6.110.0070.04321.03
5.6.100.0200.06721.10
5.6.90.0030.05720.96
5.6.80.0070.07320.52
5.6.70.4570.04020.37
5.5.350.0070.06720.28
5.5.340.0070.06717.91
5.5.330.0070.06020.40
5.5.320.0300.07720.46
5.5.310.0270.05720.27
5.5.300.0070.08017.88
5.5.290.0030.08017.96
5.5.280.0100.05720.79
5.5.270.0000.04320.86
5.5.260.0100.07320.78
5.5.250.0070.03720.75
5.5.240.0070.08020.14
5.4.450.0130.04319.43
5.4.440.0170.05319.50
5.4.430.0400.04019.40
5.4.420.0230.04319.25
5.4.410.0500.04719.25
5.4.400.0700.04318.86
5.4.390.0470.04318.93
5.4.380.0170.05018.68
5.4.370.0130.05318.48
5.4.360.0270.04018.73
5.4.350.0130.05318.59
5.4.340.0230.04718.60
5.4.320.0040.03912.45
5.4.310.0050.03912.45
5.4.300.0100.03512.45
5.4.290.0030.04312.45
5.4.280.0100.03612.34
5.4.270.0050.04012.34
5.4.260.0030.04412.34
5.4.250.0050.03712.34
5.4.240.0070.04112.35
5.4.230.0060.04812.34
5.4.220.0080.03412.34
5.4.210.0080.04012.34
5.4.200.0110.04212.34
5.4.190.0050.03712.33
5.4.180.0040.03912.33
5.4.170.0080.05212.35
5.4.160.0070.04512.34
5.4.150.0090.04812.34
5.4.140.0110.04212.02
5.4.130.0080.04912.01
5.4.120.0060.03811.97
5.4.110.0110.04711.96
5.4.100.0080.04411.96
5.4.90.0070.03811.96
5.4.80.0070.05211.96
5.4.70.0060.03611.96
5.4.60.0060.03511.96
5.4.50.0050.03711.96
5.4.40.0080.03811.95
5.4.30.0070.03811.95
5.4.20.0060.03711.95
5.4.10.0070.03311.95
5.4.00.0050.03711.43
5.3.290.0030.04312.80
5.3.280.0070.04812.71
5.3.270.0070.03712.72
5.3.260.0060.03812.71
5.3.250.0020.04112.72
5.3.240.0070.03812.72
5.3.230.0090.03612.71
5.3.220.0060.04012.68
5.3.210.0090.03612.68
5.3.200.0120.03112.68
5.3.190.0060.03812.68
5.3.180.0050.03712.68
5.3.170.0100.03912.67
5.3.160.0070.04012.67
5.3.150.0050.03912.68
5.3.140.0100.03312.66
5.3.130.0050.04112.66
5.3.120.0080.03812.66
5.3.110.0050.04112.65
5.3.100.0040.03912.12
5.3.90.0040.03812.08
5.3.80.0090.04412.07
5.3.70.0050.05012.08
5.3.60.0070.03512.07
5.3.50.0050.03712.00
5.3.40.0030.03812.00
5.3.30.0080.03811.95
5.3.20.0060.03511.73
5.3.10.0060.03511.69
5.3.00.0060.03511.68
5.2.170.0050.0309.18
5.2.160.0030.0309.18
5.2.150.0050.0339.18
5.2.140.0030.0339.18
5.2.130.0050.0299.13
5.2.120.0040.0339.14
5.2.110.0070.0319.14
5.2.100.0050.0289.13
5.2.90.0040.0299.13
5.2.80.0030.0339.13
5.2.70.0080.0269.13
5.2.60.0040.0309.08
5.2.50.0060.0359.05
5.2.40.0050.0289.03
5.2.30.0030.0329.01
5.2.20.0040.0289.00
5.2.10.0080.0258.91
5.2.00.0020.0308.77
5.1.60.0040.0238.06
5.1.50.0050.0248.05
5.1.40.0070.0258.04
5.1.30.0080.0218.39
5.1.20.0070.0308.41
5.1.10.0060.0288.14
5.1.00.0040.0288.13
5.0.50.0030.0216.61
5.0.40.0020.0216.47
5.0.30.0030.0316.28
5.0.20.0020.0216.25
5.0.10.0050.0186.23
5.0.00.0030.0336.22
4.4.90.0030.0184.77
4.4.80.0040.0144.76
4.4.70.0040.0144.75
4.4.60.0000.0184.76
4.4.50.0010.0204.77
4.4.40.0020.0284.71
4.4.30.0050.0134.76
4.4.20.0050.0154.84
4.4.10.0020.0164.85
4.4.00.0020.0244.76
4.3.110.0030.0154.67
4.3.100.0020.0154.67
4.3.90.0000.0174.64
4.3.80.0050.0224.59
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0020.0244.54
4.3.30.0030.0153.28
4.3.20.0010.0173.26
4.3.10.0010.0203.21
4.3.00.0030.01714.43