3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprintf('number %1$s %1$s', 'one') .'<br>'; echo sprintf('number %2$s %2$s', 'one', 'two') .'<br>';

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.0120.00316.38
8.3.50.0070.00716.21
8.3.40.0070.00718.57
8.3.30.0060.00918.51
8.3.20.0070.00020.09
8.3.10.0060.00323.67
8.3.00.0040.00421.98
8.2.180.0110.01118.04
8.2.170.0000.01422.96
8.2.160.0140.00718.88
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0030.00520.96
8.2.120.0070.00026.35
8.2.110.0100.00319.25
8.2.100.0080.00417.81
8.2.90.0080.00019.02
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.91
8.2.50.0040.00418.10
8.2.40.0040.00420.64
8.2.30.0000.00821.03
8.2.20.0050.00517.98
8.2.10.0080.00017.99
8.2.00.0030.00317.97
8.1.280.0150.00625.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.84
8.1.230.0040.01117.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0000.00818.59
8.1.160.0060.00318.94
8.1.150.0040.00420.51
8.1.140.0000.00719.51
8.1.130.0030.00318.86
8.1.120.0000.00817.29
8.1.110.0040.00417.27
8.1.100.0050.00317.39
8.1.90.0020.00517.40
8.1.80.0000.00717.44
8.1.70.0030.00517.29
8.1.60.0040.00417.52
8.1.50.0000.00817.35
8.1.40.0030.00517.50
8.1.30.0030.00517.53
8.1.20.0040.00417.61
8.1.10.0040.00417.45
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0030.00318.28
8.0.270.0040.00417.24
8.0.260.0070.00016.66
8.0.250.0000.00616.89
8.0.240.0040.00416.82
8.0.230.0050.00216.92
8.0.220.0060.00016.73
8.0.210.0000.00816.84
8.0.200.0030.00316.76
8.0.190.0060.00316.93
8.0.180.0000.00716.75
8.0.170.0070.00016.77
8.0.160.0040.00416.73
8.0.150.0040.00416.65
8.0.140.0040.00416.64
8.0.130.0050.00313.20
8.0.120.0000.00716.80
8.0.110.0080.00016.85
8.0.100.0000.00716.86
8.0.90.0040.00416.81
8.0.80.0130.00316.82
8.0.70.0040.00416.85
8.0.60.0000.00716.79
8.0.50.0040.00316.72
8.0.30.0080.00816.97
8.0.20.0080.01017.40
8.0.10.0040.00416.92
8.0.00.0140.00316.59
7.4.330.0060.00015.55
7.4.320.0070.00016.30
7.4.300.0030.00316.37
7.4.290.0030.00516.45
7.4.280.0000.00716.43
7.4.270.0040.00416.37
7.4.260.0000.00716.40
7.4.250.0050.00216.27
7.4.240.0080.00016.27
7.4.230.0030.00316.39
7.4.220.0060.01316.56
7.4.210.0070.00716.30
7.4.200.0000.00716.56
7.4.160.0030.01516.25
7.4.150.0070.01117.40
7.4.140.0110.00917.86
7.4.130.0030.01316.51
7.4.120.0090.01116.36
7.4.110.0060.01016.27
7.4.100.0070.01016.39
7.4.90.0150.00316.60
7.4.80.0090.00819.39
7.4.70.0080.00816.41
7.4.60.0030.01316.37
7.4.50.0030.01316.21
7.4.40.0120.00616.32
7.4.30.0120.00316.56
7.4.00.0050.01114.81
7.3.330.0060.00012.94
7.3.320.0020.00213.00
7.3.310.0030.00316.04
7.3.300.0030.00316.18
7.3.290.0080.00816.21
7.3.280.0070.01016.16
7.3.270.0100.00717.40
7.3.260.0070.01316.44
7.3.250.0090.00816.21
7.3.240.0080.00916.53
7.3.230.0070.01016.25
7.3.210.0120.00516.44
7.3.200.0140.00316.13
7.3.190.0090.00616.19
7.3.180.0140.00316.45
7.3.170.0220.00016.17
7.3.160.0100.00616.28
7.3.120.0140.00414.59
7.3.110.0030.01314.74
7.3.100.0040.01114.72
7.3.90.0110.00414.65
7.3.80.0100.00714.90
7.3.70.0000.01014.45
7.3.60.0030.01014.41
7.3.50.0110.00314.73
7.3.40.0070.00714.80
7.3.30.0040.01114.61
7.3.20.0070.00716.67
7.3.10.0030.01016.60
7.3.00.0130.00316.54
7.2.330.0080.01216.62
7.2.320.0060.01216.59
7.2.310.0100.00716.20
7.2.300.0100.00716.31
7.2.290.0130.00516.52
7.2.250.0070.01114.82
7.2.240.0040.01514.68
7.2.230.0100.00715.00
7.2.220.0060.01015.02
7.2.210.0060.00914.80
7.2.200.0130.00014.66
7.2.190.0000.01015.06
7.2.180.0120.00314.78
7.2.170.0000.01314.88
7.2.80.0060.00316.34
7.2.60.0030.01316.95
7.2.00.0060.00619.53
7.1.330.0090.00615.74
7.1.320.0040.01115.67
7.1.310.0060.00615.85
7.1.300.0030.01315.76
7.1.290.0030.00615.69
7.1.280.0000.01515.73
7.1.270.0040.01115.65
7.1.260.0030.01015.83
7.1.200.0060.00315.69
7.1.100.0040.01117.92
7.1.70.0080.01117.03
7.1.60.0190.01635.15
7.1.50.0280.01534.68
7.1.40.0400.01134.50
7.1.30.0290.02134.51
7.1.20.0290.00934.36
7.1.10.0030.02016.40
7.1.00.0130.00716.75
7.0.200.0120.00616.86
7.0.190.0150.00316.57
7.0.180.0110.00916.11
7.0.170.0100.01216.07
7.0.160.0070.01116.07
7.0.150.0090.01016.07
7.0.140.0060.01216.09
7.0.130.0050.01616.62
7.0.120.0160.00316.33
7.0.110.0060.01316.29
7.0.100.0080.01416.38
7.0.90.0090.01116.10
7.0.80.0130.00616.31
7.0.70.0170.00416.25
7.0.60.0040.01516.12
7.0.50.0100.00816.51
7.0.40.0090.00916.38
7.0.30.0100.00616.52
7.0.20.0070.01316.24
7.0.10.0110.01016.47
7.0.00.0050.01616.39

preferences:
53.5 ms | 401 KiB | 5 Q