3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(2**62); var_dump((string) 2**63); var_dump(sprintf('%d', 2**63)); var_dump(sprintf('%ld', 2**63));
based on SRCvc

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.0190.00498.97
7.3.0rc30.0260.00316.76
7.3.0beta10.0030.00312.58
7.3.0alpha10.0100.00012.91
7.2.60.0030.00716.68
7.2.50.0140.01016.80
7.1.200.0060.00615.78
7.1.70.0000.00817.28
7.1.60.0040.01117.27
7.1.50.0030.01016.82
7.1.00.0030.07322.59
7.0.200.0030.01316.91
7.0.140.0070.07022.34
7.0.60.0000.08720.25
7.0.50.0070.08017.99
7.0.40.0000.09020.21
7.0.30.0030.07720.21
7.0.20.0300.05320.49
7.0.10.0070.04720.30
7.0.00.0030.08020.16
5.6.280.0000.07721.33
5.6.210.0200.06720.90
5.6.200.0000.05318.22
5.6.190.0030.07720.89
5.6.180.0370.03720.47
5.6.170.0170.05320.54
5.6.160.0070.04320.66
5.6.150.0030.08318.40
5.6.140.0030.04318.40
5.6.130.0000.06718.38
5.6.120.0100.08021.36
5.6.110.0130.08021.13
5.6.100.0200.05321.14
5.6.90.0330.06021.17
5.6.80.0030.07320.66
5.5.350.0270.05720.48
5.5.340.0030.07717.98
5.5.330.0030.04720.21
5.5.320.0270.03720.41
5.5.310.0230.08020.34
5.5.300.0030.07317.96
5.5.290.0000.05717.91
5.5.280.0070.05320.79
5.5.270.0030.04020.88
5.5.260.0030.09020.72
5.5.250.0100.05320.65
5.5.240.0070.05720.36
5.4.450.1030.08719.57
5.4.440.0770.05719.57
5.4.430.0730.04719.46
5.4.420.0630.00019.21
5.4.410.0630.00019.21
5.4.400.0630.00019.02
5.4.390.0670.00019.02
5.4.380.0670.00019.16
5.4.370.0600.00019.15
5.4.360.0670.00019.06
5.4.350.0630.00019.06
5.4.340.0070.03612.01
5.4.320.0080.03412.50
5.4.310.0050.03912.49
5.4.300.0090.03212.50
5.4.290.0010.04212.49
5.4.280.0060.03512.39
5.4.270.0040.03812.39
5.4.260.0050.03912.39
5.4.250.0060.04012.39
5.4.240.0070.04312.39
5.4.230.0070.03812.38
5.4.220.0090.03212.38
5.4.210.0090.03312.38
5.4.200.0060.04012.38
5.4.190.0060.03712.38
5.4.180.0040.03812.38
5.4.170.0040.03912.39
5.4.160.0080.03312.38
5.4.150.0040.04112.38
5.4.140.0080.03612.07
5.4.130.0090.03912.05
5.4.120.0080.03412.02
5.4.110.0080.03312.01
5.4.100.0070.03612.01
5.4.90.0040.03812.01
5.4.80.0050.03712.01
5.4.70.0040.03612.01
5.4.60.0050.03412.00
5.4.50.0080.03312.01
5.4.40.0070.03512.00
5.4.30.0060.03512.00
5.4.20.0080.04711.98
5.4.10.0090.03411.99
5.4.00.0060.03811.49
5.3.290.0100.03712.80
5.3.280.0120.03712.71
5.3.270.0030.04712.73
5.3.260.0030.04112.72
5.3.250.0090.03412.72
5.3.240.0080.03512.72
5.3.230.0070.03712.71
5.3.220.0060.03712.68
5.3.210.0070.03812.68
5.3.200.0080.04012.68
5.3.190.0060.03712.68
5.3.180.0030.04312.67
5.3.170.0060.03512.67
5.3.160.0040.03712.67
5.3.150.0030.04012.68
5.3.140.0080.03512.66
5.3.130.0030.04212.66
5.3.120.0080.03812.65
5.3.110.0060.04112.66
5.3.100.0060.03812.12
5.3.90.0080.03512.08
5.3.80.0070.03712.08
5.3.70.0050.03712.08
5.3.60.0070.03612.07
5.3.50.0050.03812.00
5.3.40.0040.03812.00
5.3.30.0060.03611.95
5.3.20.0050.03711.73
5.3.10.0080.03211.70
5.3.00.0040.03811.68
5.2.170.0050.0419.18
5.2.160.0030.0319.18
5.2.150.0090.0299.18
5.2.140.0050.0309.18
5.2.130.0040.0299.14
5.2.120.0030.0299.14
5.2.110.0050.0289.15
5.2.100.0070.0259.14
5.2.90.0040.0299.14
5.2.80.0030.0319.14
5.2.70.0060.0289.13
5.2.60.0040.0299.09
5.2.50.0040.0299.06
5.2.40.0030.0349.04
5.2.30.0020.0319.01
5.2.20.0060.0269.00
5.2.10.0050.0308.93
5.2.00.0060.0278.79
5.1.60.0040.0238.07
5.1.50.0030.0258.06
5.1.40.0030.0258.04
5.1.30.0050.0248.39
5.1.20.0060.0248.42
5.1.10.0070.0238.14
5.1.00.0040.0258.14
5.0.50.0040.0206.63
5.0.40.0030.0196.48
5.0.30.0080.0296.29
5.0.20.0030.0246.27
5.0.10.0020.0216.24
5.0.00.0050.0296.23
4.4.90.0020.0164.78
4.4.80.0040.0214.76
4.4.70.0010.0184.75
4.4.60.0010.0194.76
4.4.50.0050.0134.77
4.4.40.0040.0244.71
4.4.30.0030.0184.76
4.4.20.0060.0164.84
4.4.10.0020.0164.85
4.4.00.0010.0264.76
4.3.110.0020.0164.66
4.3.100.0020.0154.66
4.3.90.0050.0124.64
4.3.80.0030.0234.59
4.3.70.0040.0124.63
4.3.60.0020.0144.62
4.3.50.0010.0174.63
4.3.40.0020.0244.54
4.3.30.0030.0153.29
4.3.20.0010.0173.26
4.3.10.0030.0153.22
4.3.00.0070.0177.28