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.0070.01116.75
8.3.50.0110.00921.92
8.3.40.0110.00319.02
8.3.30.0080.00618.47
8.3.20.0050.00320.09
8.3.10.0030.00620.64
8.3.00.0080.00023.48
8.2.180.0170.00316.63
8.2.170.0170.00322.96
8.2.160.0100.00721.03
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.52
8.2.110.0060.00320.90
8.2.100.0080.00417.54
8.2.90.0080.00419.09
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00717.80
8.2.50.0070.00018.22
8.2.40.0000.00820.46
8.2.30.0030.00519.07
8.2.20.0060.00317.90
8.2.10.0040.00417.98
8.2.00.0000.00717.61
8.1.280.0070.00725.92
8.1.270.0060.01224.02
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00319.38
8.1.230.0070.00417.70
8.1.220.0040.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0000.00718.10
8.1.170.0040.00418.43
8.1.160.0070.00022.16
8.1.150.0040.00418.85
8.1.140.0000.00819.42
8.1.130.0040.00417.68
8.1.120.0040.00417.29
8.1.110.0000.00817.31
8.1.100.0000.00717.37
8.1.90.0070.00017.27
8.1.80.0040.00417.38
8.1.70.0060.00317.36
8.1.60.0040.00417.52
8.1.50.0040.00417.52
8.1.40.0030.00617.39
8.1.30.0030.00517.55
8.1.20.0060.00317.74
8.1.10.0050.00217.60
8.1.00.0070.00017.36
8.0.300.0040.00418.77
8.0.290.0050.00416.75
8.0.280.0070.00018.38
8.0.270.0000.00717.19
8.0.260.0060.00017.36
8.0.250.0000.00716.96
8.0.240.0000.00716.92
8.0.230.0030.00316.94
8.0.220.0000.00716.86
8.0.210.0070.00016.91
8.0.200.0000.00616.83
8.0.190.0000.00816.85
8.0.180.0050.00216.86
8.0.170.0050.00316.94
8.0.160.0070.00016.79
8.0.150.0060.00316.74
8.0.140.0030.00316.87
8.0.130.0050.00013.32
8.0.120.0080.00016.70
8.0.110.0020.00516.92
8.0.100.0030.00316.79
8.0.90.0000.00716.93
8.0.80.0060.01016.94
8.0.70.0000.00916.68
8.0.60.0070.00016.83
8.0.50.0000.00716.93
8.0.30.0130.00716.96
8.0.20.0120.00617.40
8.0.10.0040.00417.02
8.0.00.0030.01516.71
7.4.330.0000.00615.08
7.4.320.0000.00616.52
7.4.300.0030.00316.43
7.4.290.0000.00816.45
7.4.280.0040.00416.38
7.4.270.0070.00016.37
7.4.260.0070.00016.41
7.4.250.0030.00316.29
7.4.240.0050.00316.43
7.4.230.0000.00716.50
7.4.220.0090.00616.39
7.4.210.0040.01116.57
7.4.200.0070.00016.43
7.4.160.0120.00316.52
7.4.150.0100.00717.40
7.4.140.0060.01217.86
7.4.130.0090.00716.46
7.4.120.0100.00816.38
7.4.110.0130.01016.44
7.4.100.0060.01016.41
7.4.90.0100.00716.48
7.4.80.0180.02819.39
7.4.70.0100.01016.38
7.4.60.0080.00816.43
7.4.50.0030.01216.38
7.4.40.0090.01216.59
7.4.30.0120.00416.41
7.4.10.0040.01414.73
7.4.00.0070.01014.90
7.3.330.0050.00012.95
7.3.320.0030.00313.03
7.3.310.0040.00416.24
7.3.300.0000.00616.03
7.3.290.0020.01216.19
7.3.280.0100.00616.17
7.3.270.0120.00617.40
7.3.260.0110.00616.25
7.3.250.0110.00716.16
7.3.240.0090.00816.29
7.3.230.0130.01016.39
7.3.210.0060.00916.24
7.3.200.0100.00716.33
7.3.190.0170.00016.30
7.3.180.0120.00916.41
7.3.170.0120.00416.26
7.3.160.0070.01616.28
7.3.130.0070.01114.57
7.3.120.0090.00714.73
7.3.110.0110.00714.64
7.3.100.0080.01014.74
7.3.90.0040.01114.79
7.3.80.0040.00714.62
7.3.70.0040.00814.64
7.3.60.0030.01014.51
7.3.50.0030.00614.69
7.3.40.0070.00614.62
7.3.30.0090.00414.71
7.3.20.0110.00516.68
7.3.10.0070.00816.50
7.3.00.0050.01016.56
7.2.330.0080.00816.54
7.2.320.0100.01416.30
7.2.310.0080.01216.51
7.2.300.0100.01316.21
7.2.290.0000.01616.29
7.2.260.0000.01914.88
7.2.250.0100.00815.15
7.2.240.0080.01014.73
7.2.230.0030.01014.97
7.2.220.0060.00914.83
7.2.210.0060.00615.01
7.2.200.0050.01014.89
7.2.190.0050.00914.89
7.2.180.0050.00915.04
7.2.170.0080.00514.96
7.2.160.0030.01014.90
7.2.150.0060.00816.59
7.2.140.0090.00416.56
7.2.130.0070.00716.88
7.2.120.0080.00616.72
7.2.110.0030.01016.78
7.2.100.0070.00716.91
7.2.90.0030.01416.89
7.2.80.0090.00516.92
7.2.70.0040.00716.71
7.2.60.0260.00616.82
7.2.50.0070.00516.65
7.2.40.0070.00716.76
7.2.30.0050.00816.60
7.2.20.0080.00816.73
7.2.10.0070.00716.77
7.2.00.0020.00916.78
7.1.330.0080.00715.77
7.1.320.0040.00615.83
7.1.310.0080.00515.75
7.1.300.0070.00715.79
7.1.290.0040.00915.81
7.1.280.0050.00515.46
7.1.270.0100.00315.88
7.1.260.0020.01315.86
7.1.250.0060.00515.86
7.1.240.0080.00515.79
7.1.230.0030.01215.63
7.1.220.0030.00715.75
7.1.210.0060.00815.72
7.1.200.0010.01115.74
7.1.190.0080.00415.80
7.1.180.0070.00715.80
7.1.170.0060.00515.72
7.1.160.0000.01215.64
7.1.150.0050.00915.73
7.1.140.0070.00515.74
7.1.130.0090.00315.62
7.1.120.0050.00915.62
7.1.110.0020.01215.82
7.1.100.0030.01215.70
7.1.90.0030.00715.87
7.1.80.0080.00515.61
7.1.70.0030.00716.31
7.1.60.0060.00916.15
7.1.50.0050.00915.87
7.1.40.0030.00915.59
7.1.30.0050.00615.70
7.1.20.0050.00715.75
7.1.10.0030.01015.54
7.1.00.0070.03018.00
7.0.330.0030.00915.26
7.0.320.0050.00715.16
7.0.310.0070.00715.28
7.0.300.0050.00715.33
7.0.290.0000.00815.24
7.0.280.0070.00715.33
7.0.270.0050.00815.13
7.0.260.0100.00515.24
7.0.250.0080.00715.18
7.0.240.0060.00615.29
7.0.230.0040.00815.23
7.0.220.0060.00815.54
7.0.210.0030.00715.35
7.0.200.0030.01015.09
7.0.190.0080.00515.40
7.0.180.0020.00715.49
7.0.170.0010.00815.18
7.0.160.0070.00615.47
7.0.150.0090.00815.49
7.0.140.0040.01215.32
7.0.130.0050.00715.35
7.0.120.0060.00815.42
7.0.110.0130.02317.02
7.0.100.0120.02417.07
7.0.90.0140.02717.08
7.0.80.0130.02217.04
7.0.70.0200.02216.93
7.0.60.0140.03116.92
7.0.50.0110.02716.98
7.0.40.0150.02415.67
7.0.30.0180.02215.62
7.0.20.0140.02215.72
7.0.10.0120.02715.73
7.0.00.0110.02515.70
5.6.400.0060.00614.30
5.6.390.0040.00714.49
5.6.380.0000.01014.23
5.6.370.0070.00814.38
5.6.360.0060.00614.00
5.6.350.0050.01114.06
5.6.340.0070.00314.18
5.6.330.0030.01014.48
5.6.320.0060.01014.15
5.6.310.0050.00514.46
5.6.300.0110.00614.20
5.6.290.0080.00714.45
5.6.280.0050.00813.91
5.6.270.0060.00614.30
5.6.260.0080.02316.42
5.6.250.0100.02016.58
5.6.240.0070.02216.39
5.6.230.0050.02416.41
5.6.220.0100.02116.61
5.6.210.0090.03116.49
5.6.200.0060.02716.41
5.6.190.0070.02416.37
5.6.180.0080.02416.43
5.6.170.0030.02716.45
5.6.160.0050.02516.50
5.6.150.0090.02316.57
5.6.140.0060.02316.45
5.6.130.0110.02216.38
5.6.120.0100.02516.38
5.6.110.0040.02516.37
5.6.100.0070.02616.50
5.6.90.0070.02216.48
5.6.80.0070.01916.27
5.6.70.0010.02816.15
5.6.60.0060.02716.22
5.6.50.0100.02016.19
5.6.40.0080.02216.19
5.6.30.0080.02116.19
5.6.20.0070.02316.29
5.6.10.0070.02216.23
5.6.00.0120.02416.23

preferences:
36.06 ms | 401 KiB | 5 Q