3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = 9; $str = "Beijing"; $txt = sprintf("There are %u million bicycles in %s.",$number,$str); echo $txt; echo "here";

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.0260.00798.97
7.3.0rc30.0180.00716.50
7.3.0beta10.0030.00612.52
7.3.0alpha10.0050.00012.79
7.2.60.0110.00416.71
7.2.00.0070.00319.30
7.1.200.0000.01115.69
7.1.100.0050.00817.91
7.1.70.0080.00417.13
7.1.60.0060.01919.82
7.1.50.0030.01017.05
7.1.00.0070.07322.43
7.0.200.0030.00716.81
7.0.140.0030.07022.00
7.0.60.0030.04320.04
7.0.50.0100.05017.82
7.0.40.0000.05019.98
7.0.30.0330.07020.13
7.0.20.0300.06720.15
7.0.10.0030.07020.21
7.0.00.0030.08720.00
5.6.280.0100.06720.91
5.6.210.0130.06020.75
5.6.200.0130.03018.13
5.6.190.0070.08020.32
5.6.180.3170.04020.60
5.6.170.0300.04720.38
5.6.160.0030.09020.62
5.6.150.0030.05018.22
5.6.140.0100.07718.12
5.6.130.0100.07718.16
5.6.120.0100.08320.99
5.6.110.0100.04720.98
5.6.100.0100.06720.96
5.6.90.0070.07320.99
5.6.80.0100.03320.40
5.6.70.3770.04320.39
5.5.350.0270.07320.35
5.5.340.0070.04718.01
5.5.330.0070.06020.14
5.5.320.3400.05320.30
5.5.310.0270.07720.42
5.5.300.0070.03717.90
5.5.290.0030.04317.96
5.5.280.0130.08020.77
5.5.270.0000.04320.86
5.5.260.0030.04320.62
5.5.250.0030.06720.75
5.5.240.0200.04720.25
5.4.450.0200.05719.15
5.4.440.0170.06019.13
5.4.430.0000.06319.25
5.4.420.0100.05719.32
5.4.410.0030.06019.31
5.4.400.0770.00018.82
5.4.390.0970.00018.78
5.4.380.0330.04718.74
5.4.370.1030.04318.67
5.4.360.1130.04718.72
5.4.350.0800.05718.49
5.4.340.1070.05018.50
5.4.320.0030.03912.45
5.4.310.0060.03912.45
5.4.300.0060.03812.45
5.4.290.0100.03912.45
5.4.280.0060.03512.35
5.4.270.0040.03812.32
5.4.260.0070.05012.32
5.4.250.0040.04012.31
5.4.240.0030.04012.32
5.4.230.0080.03712.30
5.4.220.0060.03912.30
5.4.210.0070.03512.31
5.4.200.0070.03912.31
5.4.190.0040.03712.30
5.4.180.0070.04012.30
5.4.170.0110.04812.31
5.4.160.0070.03612.30
5.4.150.0050.03612.30
5.4.140.0090.04711.98
5.4.130.0070.04211.97
5.4.120.0040.03811.93
5.4.110.0070.03511.93
5.4.100.0110.03011.93
5.4.90.0050.03811.93
5.4.80.0100.03211.93
5.4.70.0050.03411.93
5.4.60.0050.03511.93
5.4.50.0070.03311.92
5.4.40.0030.03711.91
5.4.30.0060.03611.91
5.4.20.0060.03511.91
5.4.10.0050.03511.91
5.4.00.0040.04311.40
5.3.290.0040.04412.80
5.3.280.0050.03912.71
5.3.270.0080.03912.72
5.3.260.0050.04012.72
5.3.250.0080.04512.72
5.3.240.0070.03712.72
5.3.230.0060.05012.71
5.3.220.0060.04912.68
5.3.210.0060.04312.68
5.3.200.0030.03912.68
5.3.190.0070.03612.68
5.3.180.0080.03512.67
5.3.170.0090.03612.67
5.3.160.0080.03512.67
5.3.150.0090.03512.67
5.3.140.0070.03712.66
5.3.130.0060.03812.66
5.3.120.0100.03612.66
5.3.110.0050.04012.66
5.3.100.0080.03512.12
5.3.90.0070.04412.08
5.3.80.0080.03512.08
5.3.70.0080.03412.07
5.3.60.0040.04212.07
5.3.50.0080.04012.00
5.3.40.0090.03512.00
5.3.30.0050.03611.94
5.3.20.0050.04811.69
5.3.10.0060.03611.65
5.3.00.0040.03811.63
5.2.170.0060.0309.13
5.2.160.0080.0279.14
5.2.150.0060.0299.14
5.2.140.0060.0309.13
5.2.130.0070.0279.10
5.2.120.0050.0299.09
5.2.110.0060.0289.11
5.2.100.0070.0279.10
5.2.90.0040.0309.10
5.2.80.0030.0339.09
5.2.70.0050.0319.08
5.2.60.0030.0339.04
5.2.50.0060.0419.02
5.2.40.0080.0278.99
5.2.30.0070.0348.97
5.2.20.0070.0338.95
5.2.10.0120.0368.88
5.2.00.0070.0388.74
5.1.60.0040.0248.02
5.1.50.0080.0278.02
5.1.40.0030.0308.02
5.1.30.0030.0268.36
5.1.20.0070.0338.39
5.1.10.0020.0288.11
5.1.00.0040.0258.10
5.0.50.0030.0216.58
5.0.40.0040.0196.44
5.0.30.0040.0316.26
5.0.20.0050.0186.23
5.0.10.0020.0226.21
5.0.00.0050.0376.20
4.4.90.0010.0194.78
4.4.80.0030.0154.76
4.4.70.0040.0144.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0010.0284.71
4.4.30.0020.0174.76
4.4.20.0020.0164.85
4.4.10.0020.0164.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0030.0154.67
4.3.90.0020.0154.64
4.3.80.0020.0244.58
4.3.70.0050.0124.63
4.3.60.0060.0174.63
4.3.50.0060.0184.63
4.3.40.0030.0314.54
4.3.30.0030.0203.27
4.3.20.0040.0183.25
4.3.10.0020.0183.21
4.3.00.0000.0237.06