3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 123; $txt = sprintf("With 2 decimals: %1$ <br>With no decimals: ",$number); echo $txt;

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0100.01016.73
8.3.50.0090.00618.05
8.3.40.0110.00418.70
8.3.30.0040.01118.50
8.3.20.0040.00420.07
8.3.10.0040.00420.32
8.3.00.0000.00723.63
8.2.180.0140.00418.52
8.2.170.0040.01122.96
8.2.160.0090.00621.10
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.31
8.2.120.0080.00026.35
8.2.110.0060.00320.54
8.2.100.0080.00417.78
8.2.90.0030.00619.09
8.2.80.0060.00317.97
8.2.70.0050.00317.38
8.2.60.0030.00617.80
8.2.50.0000.00718.16
8.2.40.0040.00420.43
8.2.30.0040.00419.17
8.2.20.0000.00818.04
8.2.10.0040.00418.11
8.2.00.0000.00717.73
8.1.280.0090.00625.92
8.1.270.0070.00723.96
8.1.260.0000.00828.09
8.1.250.0030.00628.09
8.1.240.0000.01019.02
8.1.230.0070.00417.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0080.00018.38
8.1.160.0000.00722.20
8.1.150.0040.00418.81
8.1.140.0070.00019.56
8.1.130.0060.00317.50
8.1.120.0030.00517.28
8.1.110.0070.00017.37
8.1.100.0000.00717.28
8.1.90.0040.00417.29
8.1.80.0000.00817.33
8.1.70.0050.00317.47
8.1.60.0070.00017.52
8.1.50.0040.00417.55
8.1.40.0040.00417.47
8.1.30.0040.00417.65
8.1.20.0000.00817.60
8.1.10.0070.00017.57
8.1.00.0080.00017.49
8.0.300.0060.00618.77
8.0.290.0080.00416.75
8.0.280.0070.00018.29
8.0.270.0000.00717.18
8.0.260.0000.00617.29
8.0.250.0060.00016.85
8.0.240.0040.00416.95
8.0.230.0000.00716.93
8.0.220.0070.00016.76
8.0.210.0040.00416.92
8.0.200.0040.00416.89
8.0.190.0000.00816.82
8.0.180.0040.00416.89
8.0.170.0040.00316.98
8.0.160.0000.00816.84
8.0.150.0030.00316.73
8.0.140.0030.00316.75
8.0.130.0060.00013.29
8.0.120.0050.00316.83
8.0.110.0040.00416.88
8.0.100.0000.00816.84
8.0.90.0050.00216.77
8.0.80.0030.01216.79
8.0.70.0060.00316.79
8.0.60.0030.00516.84
8.0.50.0040.00416.93
8.0.30.0080.01116.98
8.0.20.0080.01317.40
8.0.10.0000.00716.99
8.0.00.0060.01216.78
7.4.330.0050.00015.08
7.4.320.0030.00316.48
7.4.300.0000.00616.45
7.4.290.0050.00216.50
7.4.280.0080.00016.34
7.4.270.0030.00316.38
7.4.260.0030.00616.44
7.4.250.0030.00316.31
7.4.240.0040.00416.50
7.4.230.0070.00016.41
7.4.220.0090.00916.34
7.4.210.0120.00316.46
7.4.200.0020.00516.58
7.4.160.0110.00316.37
7.4.150.0100.01017.40
7.4.140.0100.00717.86
7.4.130.0100.00716.31
7.4.120.0110.00616.48
7.4.110.0130.01016.54
7.4.100.0100.00616.52
7.4.90.0090.00916.42
7.4.80.0070.01419.39
7.4.70.0130.00616.47
7.4.60.0060.01016.42
7.4.50.0040.00716.34
7.4.40.0130.00316.46
7.4.30.0040.01216.64
7.4.00.0130.00314.98
7.3.330.0050.00013.03
7.3.320.0000.00513.11
7.3.310.0030.00316.28
7.3.300.0020.00516.18
7.3.290.0070.00916.21
7.3.280.0100.00816.19
7.3.270.0140.00517.40
7.3.260.0110.00916.42
7.3.250.0090.00816.29
7.3.240.0060.01116.20
7.3.230.0120.01216.39
7.3.210.0080.00816.39
7.3.200.0130.00316.18
7.3.190.0140.00716.43
7.3.180.0080.01216.14
7.3.170.0100.00516.42
7.3.160.0030.01316.29
7.3.10.0070.00416.32
7.3.00.0000.00916.63
7.2.330.0030.01316.53
7.2.320.0180.00316.61
7.2.310.0070.01616.33
7.2.300.0090.01216.38
7.2.290.0160.00016.34
7.2.130.0050.00516.63
7.2.120.0030.00616.72
7.2.110.0070.00716.84
7.2.100.0090.00616.96
7.2.90.0030.01016.49
7.2.80.0100.00716.56
7.2.70.0080.00016.67
7.2.60.0020.01216.93
7.2.50.0030.00716.70
7.2.40.0100.00716.58
7.2.30.0050.00516.72
7.2.20.0070.00716.50
7.2.10.0040.01116.65
7.2.00.0080.00718.07
7.1.250.0000.01115.81
7.1.200.0000.01515.78
7.1.70.0040.00417.19
7.1.60.0030.00717.16
7.1.00.0030.07722.41
7.0.200.0060.00614.87
7.0.110.0330.05020.23
7.0.100.0230.06020.29
7.0.90.0200.06320.30
7.0.80.0270.05320.17
7.0.70.0330.05020.24
7.0.60.0230.05720.20
7.0.50.0300.05720.21
7.0.40.0270.05320.22
7.0.30.0230.05720.39
7.0.20.0270.06020.29
7.0.10.0370.05020.15
7.0.00.0470.04320.30
5.6.260.0130.05020.91
5.6.250.0170.04720.79
5.6.240.0100.05720.75
5.6.230.0030.06021.06
5.6.220.0130.05320.95
5.6.210.0030.06020.84
5.6.200.0070.06021.04
5.6.190.0170.05021.03
5.6.180.0030.06020.87
5.6.170.0100.05320.99
5.6.160.0100.06020.73
5.6.150.0170.07720.93
5.6.140.0100.07020.98
5.6.130.0230.04320.93
5.6.120.0170.05321.01
5.6.110.0130.05720.99
5.6.100.0030.06720.83
5.6.90.0100.05720.73
5.6.80.0100.05320.21
5.6.70.0030.06020.37
5.6.60.0130.05320.17
5.6.50.0130.05020.44
5.6.40.0130.05020.20
5.6.30.0130.05320.21
5.6.20.0170.05020.18
5.6.10.0100.06320.29
5.6.00.0070.05720.28

preferences:
60.15 ms | 400 KiB | 5 Q