3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("T1","one"); define("T2","two"); $test='number %2$s'; $test=sprintf($test, T1,T2); echo $test;

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.130.0060.00318.27
8.3.120.0030.00619.11
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0040.00416.63
8.3.70.0090.00616.63
8.3.60.0110.00316.71
8.3.50.0090.00821.94
8.3.40.0090.00618.54
8.3.30.0140.00019.08
8.3.20.0000.00820.07
8.3.10.0080.00023.63
8.3.00.0040.00419.25
8.2.250.0020.00216.71
8.2.240.0030.00817.11
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00716.38
8.2.190.0040.01116.75
8.2.180.0160.00718.18
8.2.170.0100.00322.96
8.2.160.0070.00720.32
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0140.00426.16
8.2.120.0040.00422.32
8.2.110.0060.00321.24
8.2.100.0080.00317.92
8.2.90.0040.00419.06
8.2.80.0060.00317.97
8.2.70.0050.00517.50
8.2.60.0060.00617.80
8.2.50.0050.00318.07
8.2.40.0080.00019.25
8.2.30.0030.00517.64
8.2.20.0050.00317.71
8.2.10.0080.00017.99
8.2.00.0030.00717.61
8.1.300.0030.00620.29
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0000.00823.83
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00320.98
8.1.230.0140.00021.03
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.11
8.1.180.0040.00418.10
8.1.170.0040.00417.82
8.1.160.0040.00418.88
8.1.150.0000.00818.84
8.1.140.0000.00717.32
8.1.130.0070.00017.68
8.1.120.0070.00017.36
8.1.110.0020.00517.35
8.1.100.0050.00317.43
8.1.90.0040.00417.47
8.1.80.0000.00817.43
8.1.70.0050.00217.44
8.1.60.0080.00017.59
8.1.50.0030.00617.56
8.1.40.0050.00217.53
8.1.30.0040.00417.61
8.1.20.0040.00417.65
8.1.10.0040.00417.49
8.1.00.0000.00817.43
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0040.00417.99
8.0.270.0070.00018.02
8.0.260.0000.00717.13
8.0.250.0020.00516.83
8.0.240.0000.00616.96
8.0.230.0070.00016.95
8.0.220.0040.00416.90
8.0.210.0040.00416.89
8.0.200.0030.00316.81
8.0.190.0000.00816.82
8.0.180.0070.00016.95
8.0.170.0000.00816.81
8.0.160.0050.00316.87
8.0.150.0030.00616.94
8.0.140.0030.00416.88
8.0.130.0050.00013.25
8.0.120.0030.00516.85
8.0.110.0070.00016.90
8.0.100.0040.00416.94
8.0.90.0040.00416.71
8.0.80.0040.01116.85
8.0.70.0000.00816.92
8.0.60.0040.00416.85
8.0.50.0040.00416.77
8.0.30.0110.00817.11
8.0.20.0070.01217.40
8.0.10.0000.00716.99
8.0.00.0050.01316.75
7.4.330.0020.00215.00
7.4.320.0000.00716.65
7.4.300.0060.00016.47
7.4.290.0020.00516.47
7.4.280.0000.00716.58
7.4.270.0050.00316.60
7.4.260.0040.00416.47
7.4.250.0040.00416.57
7.4.240.0040.00316.58
7.4.230.0030.00316.50
7.4.220.0060.01216.66
7.4.210.0080.00816.53
7.4.200.0000.00716.52
7.4.190.0050.00216.43
7.4.160.0040.01116.29
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0090.00716.46
7.4.120.0090.01116.49
7.4.110.0100.00716.37
7.4.100.0130.01016.47
7.4.90.0070.01016.57
7.4.80.0130.01019.39
7.4.70.0090.00916.40
7.4.60.0070.01016.24
7.4.50.0000.00916.38
7.4.40.0110.00322.77
7.4.30.0120.00316.56
7.4.00.0060.01014.93
7.3.330.0030.00312.95
7.3.320.0050.00012.99
7.3.310.0000.00716.32
7.3.300.0030.00316.23
7.3.290.0130.00616.16
7.3.280.0080.00916.26
7.3.270.0000.01817.40
7.3.260.0070.01016.51
7.3.250.0090.00916.40
7.3.240.0090.01416.61
7.3.230.0120.00616.40
7.3.210.0130.00316.40
7.3.200.0110.00919.39
7.3.190.0090.00916.15
7.3.180.0080.00816.59
7.3.170.0060.01216.27
7.3.160.0120.00316.49
7.3.120.0040.00814.90
7.2.330.0100.01316.50
7.2.320.0180.00616.66
7.2.310.0080.00916.67
7.2.300.0060.01316.61
7.2.290.0060.01116.40
7.2.60.0040.00816.61
7.2.00.0090.00619.46
7.1.200.0040.00815.73
7.1.70.0000.01217.00
7.1.60.0120.01219.33
7.1.50.0140.00716.84
7.1.00.0100.07022.34
7.0.200.0080.00816.86
7.0.140.0070.07022.21
7.0.60.0030.04020.01
7.0.50.0070.05717.87
7.0.40.0130.08319.96
7.0.30.0300.05720.18
7.0.20.0130.05020.21
7.0.10.0030.05720.19
7.0.00.0170.08020.16
5.6.280.0030.07321.14
5.6.210.0100.07720.66
5.6.200.0100.04018.22
5.6.190.0100.08320.43
5.6.180.0130.04320.62
5.6.170.0200.04320.38
5.6.160.0100.04020.70
5.6.150.0100.05018.19
5.6.140.0070.03318.12
5.6.130.0070.05318.21
5.6.120.0070.09021.13
5.6.110.0070.04021.00
5.6.100.0030.04321.10
5.6.90.0030.07720.99
5.6.80.0200.07020.37
5.6.70.2870.03720.36
5.5.350.0070.09020.40
5.5.340.0130.07018.02
5.5.330.0100.08320.13
5.5.320.0230.04020.32
5.5.310.0300.07320.20
5.5.300.0070.08017.87
5.5.290.0030.04317.87
5.5.280.0100.08320.77
5.5.270.0070.07020.86
5.5.260.0070.04020.86
5.5.250.0170.07020.69
5.5.240.0330.06320.11
5.4.450.0100.03719.47
5.4.440.0100.03319.41
5.4.430.0070.07719.40
5.4.420.0100.07319.44
5.4.410.0170.05719.38
5.4.400.0030.08018.92
5.4.390.0070.05319.18
5.4.380.0030.07318.89
5.4.370.0070.07318.91
5.4.360.0070.06719.11
5.4.350.0030.06318.78
5.4.340.0070.05018.79
5.4.320.0000.05719.14
5.4.310.0100.04719.12
5.4.300.0130.03719.18
5.4.290.0170.07019.17
5.4.280.0130.04019.14
5.4.270.0070.08019.17
5.4.260.0100.08019.08
5.4.250.0100.04319.16
5.4.240.0100.07318.91
5.4.230.0030.08019.18
5.4.220.0030.05019.14
5.4.210.0070.07019.00
5.4.200.0070.07718.99
5.4.190.0100.04019.17
5.4.180.0100.04018.77
5.4.170.0000.05019.16
5.4.160.0030.04019.15
5.4.150.0070.08019.11
5.4.140.0070.04316.34
5.4.130.0030.06716.34
5.4.120.0130.06316.32
5.4.110.0070.07016.37
5.4.100.0070.03716.37
5.4.90.0130.06316.35
5.4.80.0070.05316.35
5.4.70.0130.04316.31
5.4.60.0070.07016.21
5.4.50.0030.07016.34
5.4.40.0100.07016.17
5.4.30.0070.06316.24
5.4.20.0100.03716.12
5.4.10.0070.04316.29
5.4.00.0100.03015.93
5.3.290.0100.04314.45
5.3.280.0070.06314.53
5.3.270.0130.07314.53
5.3.260.0070.05314.39
5.3.250.0030.04314.54
5.3.240.0000.04014.54
5.3.230.0030.04014.68
5.3.220.0000.08014.65
5.3.210.0100.03314.47
5.3.200.0100.06314.50
5.3.190.0070.03714.49
5.3.180.0030.04714.46
5.3.170.0230.07714.47
5.3.160.0000.08014.51
5.3.150.0070.06314.48
5.3.140.0000.08014.45
5.3.130.0170.04314.42
5.3.120.0070.07014.42
5.3.110.0070.07714.63
5.3.100.0100.04013.96
5.3.90.0030.07314.11
5.3.80.0070.06013.96
5.3.70.0030.06013.85
5.3.60.0070.05013.94
5.3.50.0030.07013.87
5.3.40.0030.06313.89
5.3.30.0070.03313.86
5.3.20.0170.06713.61
5.3.10.0030.07013.58
5.3.00.0000.05313.47
5.2.170.0070.06011.03
5.2.160.0000.06311.15
5.2.150.0030.04011.09
5.2.140.0100.05711.13
5.2.130.0030.06011.08
5.2.120.0030.04311.11
5.2.110.0070.04711.27
5.2.100.0030.04711.00
5.2.90.0070.06310.98
5.2.80.0030.04311.00
5.2.70.0100.05711.16
5.2.60.0100.05711.05
5.2.50.0000.06311.00
5.2.40.0030.04010.81
5.2.30.0030.03010.79
5.2.20.0100.05311.03
5.2.10.0030.06310.86
5.2.00.0030.06010.70
5.1.60.0070.0279.99
5.1.50.0000.0579.98
5.1.40.0030.03010.05
5.1.30.0070.03310.33
5.1.20.0030.03310.23
5.1.10.0030.0639.97
5.1.00.0100.05010.04
5.0.50.0000.0338.49
5.0.40.0030.0478.34
5.0.30.0000.0678.34
5.0.20.0000.0438.34
5.0.10.0030.0438.34
5.0.00.0070.0608.34
4.4.90.0000.0238.34
4.4.80.0030.0208.34
4.4.70.0000.0238.34
4.4.60.0000.0378.34
4.4.50.0000.0338.34
4.4.40.0070.0278.34
4.4.30.0070.0308.34
4.4.20.0000.0208.34
4.4.10.0000.0338.34
4.4.00.0030.0308.34
4.3.110.0030.0278.34
4.3.100.0000.0238.34
4.3.90.0000.0208.34
4.3.80.0000.0578.34
4.3.70.0070.0278.34
4.3.60.0030.0338.34
4.3.50.0000.0378.34
4.3.40.0130.0308.34
4.3.30.0000.0408.34
4.3.20.0000.0238.34
4.3.10.0000.0278.34
4.3.00.0000.0238.34

preferences:
27.22 ms | 403 KiB | 5 Q