3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num = 5; $location = 'tree'; $format = 'The %2$s contains %1$d monkeys. That\'s a nice %2$s full of %1$d monkeys.'; echo sprintf($format, $num, $location); ?>
based on N6bfH

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.10.0100.01016.23
7.3.00.0170.01016.25
7.2.130.0090.00916.54
7.2.120.0200.00416.57
7.2.110.0040.00916.61
7.2.100.0190.00916.25
7.2.90.0140.01416.68
7.2.80.0110.00916.32
7.2.70.0140.00316.32
7.2.60.0170.00616.46
7.2.50.0040.01416.71
7.2.40.0080.00716.63
7.2.30.0070.01316.56
7.2.20.0100.00016.49
7.2.10.0070.01116.70
7.2.00.0150.00217.88
7.1.250.0070.00715.35
7.1.200.0040.00715.81
7.1.100.0040.01118.06
7.1.70.0100.00317.22
7.1.60.0140.01119.22
7.1.50.0100.01016.82
7.1.00.0000.07722.48
7.0.200.0080.00416.63
7.0.140.0000.06721.92
7.0.60.0030.09019.82
7.0.50.0030.04317.85
7.0.40.0130.04720.27
7.0.30.0200.03720.13
7.0.20.0200.06020.10
7.0.10.0030.09720.30
7.0.00.0000.05720.13
5.6.210.0100.03720.70
5.6.200.0100.07718.09
5.6.190.0030.04320.77
5.6.180.0300.07320.39
5.6.170.0300.07020.36
5.6.160.0100.05020.48
5.6.150.0170.07318.09
5.6.140.0070.07318.12
5.6.130.0030.07718.15
5.6.120.0030.06020.91
5.6.110.0230.07020.97
5.6.100.0170.06721.10
5.6.90.0070.08320.94
5.6.80.0130.03020.43
5.5.350.0200.06720.41
5.5.340.0100.07717.96
5.5.330.0130.05020.07
5.5.320.0500.06020.13
5.5.310.0200.05320.20
5.5.300.0200.05317.98
5.5.290.0070.08318.01
5.5.280.0070.08720.77
5.5.270.0000.04320.68
5.5.260.0100.07720.86
5.5.250.0130.07020.68
5.5.240.0030.03020.34
5.4.450.0230.05319.10
5.4.440.0200.05719.52
5.4.430.0200.06319.50
5.4.420.0230.07719.35
5.4.410.0200.06719.45
5.4.400.0070.07718.85
5.4.390.0300.05018.61
5.4.380.0200.05318.68
5.4.370.0170.05718.50
5.4.360.0270.07018.59
5.4.350.0200.06318.75
5.4.340.0300.05018.49
5.4.320.0330.04718.48
5.4.310.0330.04018.59
5.4.300.0230.04718.48
5.4.290.0270.04318.55
5.4.280.0270.05018.46
5.4.270.0300.04718.58
5.4.260.0200.05318.70
5.4.250.0270.05718.48
5.4.240.0270.07018.70
5.4.230.0200.05318.67
5.4.220.0170.06018.69
5.4.210.0200.06018.69
5.4.200.0170.05016.51
5.4.190.0270.04318.70
5.4.180.0170.05318.48
5.4.170.0270.05018.63
5.4.160.0300.04318.56
5.4.150.0200.07718.50
5.4.140.0170.07716.17
5.4.130.0200.05316.25
5.4.120.0170.05316.35
5.4.110.0170.05716.21
5.4.100.0170.05716.29
5.4.90.0230.05316.11
5.4.80.0230.04716.20
5.4.70.0270.05016.23
5.4.60.0230.05016.01
5.4.50.0230.06716.09
5.4.40.0330.06016.16
5.4.30.0270.05316.13
5.4.20.0300.06016.12
5.4.10.0230.05316.22
5.4.00.0070.06315.50
5.3.290.0230.06014.63
5.3.280.0500.05014.48
5.3.270.0170.05714.53
5.3.260.0230.05714.51
5.3.250.0270.06314.59
5.3.240.0230.07014.69
5.3.230.0230.06714.58
5.3.220.0430.05314.55
5.3.210.0130.08314.59
5.3.200.0330.04014.47
5.3.190.0270.04714.49
5.3.180.0200.07014.54
5.3.170.0370.06014.65
5.3.160.0130.08014.63
5.3.150.0370.06014.46
5.3.140.0270.06714.46
5.3.130.0170.08014.42
5.3.120.0230.07014.62
5.3.110.0300.06714.45
5.3.100.0300.05713.98
5.3.90.0200.06714.00
5.3.80.0200.07014.12
5.3.70.0270.06314.09
5.3.60.0200.06714.03
5.3.50.0170.05013.92
5.3.40.0230.04713.88
5.3.30.0200.05013.85
5.3.20.0200.06313.63
5.3.10.0100.07713.56
5.3.00.0170.05713.64
5.2.170.0100.04711.11
5.2.160.0170.04011.20
5.2.150.0230.03311.10
5.2.140.0130.04311.13
5.2.130.0170.04311.13
5.2.120.0170.04011.25
5.2.110.0230.03011.13
5.2.100.0070.04311.13
5.2.90.0170.03711.01
5.2.80.0170.03711.07
5.2.70.0130.04011.14
5.2.60.0100.04711.08
5.2.50.0270.04011.05
5.2.40.0100.04311.03
5.2.30.0170.04010.90
5.2.20.0200.03310.95
5.2.10.0070.04310.91
5.2.00.0170.03710.75
5.1.60.0100.03310.01
5.1.50.0030.0409.99
5.1.40.0130.03310.02
5.1.30.0130.04710.48
5.1.20.0100.04010.37
5.1.10.0200.03010.10
5.1.00.0200.03010.09
5.0.50.0100.0308.58
5.0.40.0100.0278.54
5.0.30.0030.0508.19
5.0.20.0100.0278.18
5.0.10.0000.0338.26
5.0.00.0070.0438.27
4.4.90.0070.0205.90
4.4.80.0070.0205.89
4.4.70.0070.0275.80
4.4.60.0030.0335.84
4.4.50.0030.0335.82
4.4.40.0070.0475.88
4.4.30.0070.0275.91
4.4.20.0070.0305.91
4.4.10.0070.0305.95
4.4.00.0070.0435.89
4.3.110.0100.0275.80
4.3.100.0130.0205.82
4.3.90.0030.0305.79
4.3.80.0030.0405.89
4.3.70.0100.0175.78
4.3.60.0070.0235.79
4.3.50.0200.0175.87
4.3.40.0070.0335.78
4.3.30.0030.0234.59
4.3.20.0030.0234.60
4.3.10.0000.0274.59
4.3.00.0100.0177.23