3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 44; if(strlen($a)<13 && strlen($a)>8) { $a = sprintf("%013.00f", $a); } echo $a;

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.0030.01016.38
7.3.00.0070.00716.59
7.2.130.0040.01216.91
7.2.120.0070.00716.80
7.2.110.0050.00516.71
7.2.100.0080.00816.73
7.2.90.0000.01816.72
7.2.80.0040.01216.32
7.2.70.0000.01217.03
7.2.60.0050.00816.76
7.2.50.0040.00816.82
7.2.40.0150.00016.75
7.2.30.0100.00316.49
7.2.20.0090.00616.74
7.2.10.0060.00916.77
7.2.00.0070.00717.86
7.1.250.0090.00015.77
7.1.200.0130.00915.90
7.1.100.0140.00816.12
7.1.70.0030.00517.08
7.1.60.0110.01119.50
7.1.50.0040.01116.69
7.1.00.0000.09322.42
7.0.200.0030.00616.55
7.0.140.0030.08022.12
7.0.60.0000.08320.07
7.0.50.0070.06017.81
7.0.40.0070.05020.26
7.0.30.0300.08320.18
7.0.20.0170.04320.00
7.0.10.0130.04720.20
7.0.00.0070.08720.32
5.6.280.0030.07320.91
5.6.210.0030.08020.55
5.6.200.0100.08318.22
5.6.190.0100.08720.32
5.6.180.0300.04720.61
5.6.170.0300.06720.42
5.6.160.0070.07720.39
5.6.150.0030.04018.12
5.6.140.0030.06018.18
5.6.130.0130.06718.07
5.6.120.0070.08321.09
5.6.110.0070.08720.98
5.6.100.0200.06020.95
5.6.90.0130.07720.97
5.6.80.0100.07320.48
5.6.70.0200.04720.43
5.5.350.0230.07320.40
5.5.340.0070.08318.01
5.5.330.0070.06720.19
5.5.320.0230.03720.29
5.5.310.0200.04720.30
5.5.300.0130.03317.98
5.5.290.0100.04317.89
5.5.280.0100.04720.77
5.5.270.0100.07320.89
5.5.260.0130.07320.76
5.5.250.0070.06720.69
5.5.240.0130.07020.13
5.4.450.0270.05719.55
5.4.440.0130.05319.62
5.4.430.0200.05019.54
5.4.420.0500.06019.60
5.4.410.0970.05019.19
5.4.400.0170.05718.70
5.4.390.0270.04718.55
5.4.380.0130.06718.63
5.4.370.0300.04718.49
5.4.360.0200.05318.63
5.4.350.0200.06018.55
5.4.340.0300.04318.66
5.4.320.0200.05018.54
5.4.310.0100.06018.46
5.4.300.0270.07318.64
5.4.290.0330.05318.58
5.4.280.0170.05318.46
5.4.270.0230.04718.63
5.4.260.0200.05318.58
5.4.250.0200.05718.69
5.4.240.0100.06018.61
5.4.230.0230.05018.62
5.4.220.0200.05318.53
5.4.210.0130.06718.57
5.4.200.0130.06016.55
5.4.190.0170.05318.68
5.4.180.0230.05018.46
5.4.170.0230.05018.61
5.4.160.0130.05318.61
5.4.150.0130.06018.63
5.4.140.0300.04016.22
5.4.130.0170.05016.21
5.4.120.0200.04716.17
5.4.110.0200.04716.13
5.4.100.0170.05316.14
5.4.90.0230.04716.22
5.4.80.0070.06016.17
5.4.70.0330.03316.19
5.4.60.0130.05716.31
5.4.50.0230.04016.05
5.4.40.0130.05316.27
5.4.30.0100.05316.20
5.4.20.0200.04716.16
5.4.10.0230.05716.11
5.4.00.0170.05315.62
5.3.290.0200.05714.59
5.3.280.0230.05314.59
5.3.270.0230.05714.68
5.3.260.0270.06014.51
5.3.250.0300.05014.53
5.3.240.0200.05314.68
5.3.230.0270.04714.57
5.3.220.0100.06314.55
5.3.210.0170.05714.49
5.3.200.0200.05714.50
5.3.190.0100.06014.56
5.3.180.0170.05014.61
5.3.170.0230.04714.55
5.3.160.0300.04314.53
5.3.150.0130.05714.53
5.3.140.0100.05714.58
5.3.130.0230.05014.54
5.3.120.0230.05014.51
5.3.110.0230.05014.50
5.3.100.0130.06014.08
5.3.90.0200.05014.08
5.3.80.0130.06013.96
5.3.70.0330.03713.93
5.3.60.0170.05314.04
5.3.50.0170.05713.95
5.3.40.0200.05013.89
5.3.30.0200.04713.89
5.3.20.0170.05013.59
5.3.10.0170.05013.59
5.3.00.0170.05013.62
5.2.170.0130.04311.20
5.2.160.0200.03311.18
5.2.150.0100.04711.07
5.2.140.0170.04711.18
5.2.130.0130.04011.16
5.2.120.0130.04011.14
5.2.110.0100.04311.13
5.2.100.0130.04311.05
5.2.90.0170.04011.09
5.2.80.0070.05311.11
5.2.70.0030.05011.04
5.2.60.0100.04311.11
5.2.50.0230.03711.07
5.2.40.0170.03710.96
5.2.30.0270.02710.94
5.2.20.0100.04710.87
5.2.10.0130.04010.96
5.2.00.0070.05310.70
5.1.60.0170.02710.02
5.1.50.0130.0339.97
5.1.40.0170.03010.16
5.1.30.0130.04010.39
5.1.20.0230.03010.38
5.1.10.0100.03710.04
5.1.00.0100.03710.10
5.0.50.0100.0308.57
5.0.40.0030.0338.42
5.0.30.0070.0438.20
5.0.20.0100.0278.23
5.0.10.0100.0278.29
5.0.00.0070.0438.19
4.4.90.0030.0275.90
4.4.80.0100.0205.90
4.4.70.0070.0235.88
4.4.60.0000.0275.90
4.4.50.0030.0235.95
4.4.40.0030.0375.92
4.4.30.0030.0235.92
4.4.20.0070.0235.91
4.4.10.0100.0205.95
4.4.00.0070.0335.84
4.3.110.0000.0305.83
4.3.100.0070.0235.92
4.3.90.0100.0175.82
4.3.80.0030.0375.80
4.3.70.0030.0235.79
4.3.60.0070.0205.82
4.3.50.0030.0235.80
4.3.40.0030.0375.75
4.3.30.0000.0274.55
4.3.20.0030.0234.53
4.3.10.0000.0274.49
4.3.00.0000.0237.27