3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("T1","one"); define("T2","two"); $test='number %1$s %1$s'; $test=sprintf($test, T1); 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.60.0130.01018.18
8.3.50.0120.00722.05
8.3.40.0140.00318.36
8.3.30.0070.00718.54
8.3.20.0040.00419.15
8.3.10.0050.00221.97
8.3.00.0000.00919.13
8.2.180.0110.01116.50
8.2.170.0110.00422.96
8.2.160.0110.00420.76
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00720.38
8.2.120.0070.00026.35
8.2.110.0060.00322.10
8.2.100.0060.00619.64
8.2.90.0030.00717.66
8.2.80.0000.00917.97
8.2.70.0060.00317.38
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0000.00820.42
8.2.30.0050.00519.25
8.2.20.0000.00817.96
8.2.10.0060.00318.11
8.2.00.0040.00417.79
8.1.280.0100.01025.92
8.1.270.0040.00422.09
8.1.260.0070.00026.35
8.1.250.0060.00628.09
8.1.240.0040.00423.79
8.1.230.0080.00422.62
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.84
8.1.160.0000.00818.89
8.1.150.0040.00420.26
8.1.140.0000.00719.57
8.1.130.0030.00319.00
8.1.120.0040.00417.49
8.1.110.0050.00317.34
8.1.100.0000.00817.43
8.1.90.0040.00417.41
8.1.80.0040.00417.42
8.1.70.0060.00317.41
8.1.60.0030.00617.46
8.1.50.0040.00417.51
8.1.40.0000.00717.53
8.1.30.0040.00417.49
8.1.20.0030.00517.55
8.1.10.0040.00417.42
8.1.00.0030.00617.37
8.0.300.0040.00420.14
8.0.290.0040.00416.60
8.0.280.0000.00718.36
8.0.270.0030.00317.25
8.0.260.0000.00717.32
8.0.250.0060.00016.91
8.0.240.0060.00016.92
8.0.230.0000.00716.93
8.0.220.0070.00016.88
8.0.210.0040.00416.88
8.0.200.0040.00416.98
8.0.190.0060.00316.86
8.0.180.0000.00816.89
8.0.170.0030.00616.95
8.0.160.0040.00416.85
8.0.150.0040.00416.79
8.0.140.0060.00316.80
8.0.130.0050.00013.27
8.0.120.0070.00016.76
8.0.110.0030.00516.91
8.0.100.0040.00416.75
8.0.90.0030.00516.94
8.0.80.0040.01316.93
8.0.70.0040.00417.00
8.0.60.0030.00316.78
8.0.50.0040.00416.76
8.0.30.0080.01417.01
8.0.20.0130.00717.40
8.0.10.0040.00416.84
8.0.00.0100.01316.75
7.4.330.0000.00615.55
7.4.320.0030.00316.63
7.4.300.0030.00316.64
7.4.290.0040.00416.59
7.4.280.0080.00016.63
7.4.270.0030.00316.45
7.4.260.0000.00816.63
7.4.250.0070.00016.46
7.4.240.0030.00316.52
7.4.230.0000.00816.59
7.4.220.0150.00616.55
7.4.210.0070.00716.46
7.4.200.0000.00716.63
7.4.160.0060.00916.41
7.4.150.0080.00817.40
7.4.140.0080.01117.86
7.4.130.0090.01016.44
7.4.120.0140.00816.44
7.4.110.0090.00616.41
7.4.100.0060.01216.57
7.4.90.0150.00616.54
7.4.80.0040.01419.39
7.4.70.0100.00716.54
7.4.60.0060.00916.45
7.4.50.0100.00716.65
7.4.40.0070.01016.55
7.4.30.0070.01016.43
7.4.00.0070.00414.93
7.3.330.0000.00613.00
7.3.320.0000.00513.04
7.3.310.0030.00616.29
7.3.300.0000.00716.23
7.3.290.0070.00716.20
7.3.280.0100.00816.22
7.3.270.0100.00717.40
7.3.260.0120.00916.29
7.3.250.0100.00916.37
7.3.240.0070.01216.63
7.3.230.0070.01016.59
7.3.210.0120.01216.23
7.3.200.0130.00316.37
7.3.190.0040.01216.21
7.3.180.0100.00716.45
7.3.170.0080.00816.33
7.3.160.0050.01216.15
7.2.330.0080.00816.59
7.2.320.0060.01216.41
7.2.310.0090.00616.63
7.2.300.0060.01716.56
7.2.290.0030.01716.60
7.2.60.0090.00616.78
7.2.50.0170.00416.82
7.1.200.0070.00715.63
7.1.70.0110.01117.13
7.1.60.0290.01434.99
7.1.50.0370.00934.91
7.1.40.0260.01134.28
7.1.30.0220.01634.57
7.1.20.0270.01334.54
7.1.10.0090.00616.54
7.1.00.0100.03219.48
7.0.200.0140.00716.69
7.0.190.0000.01816.41
7.0.180.0090.01316.24
7.0.170.0090.01216.13
7.0.160.0060.00916.18
7.0.150.0000.01516.36
7.0.140.0090.00616.51
7.0.130.0100.01016.43
7.0.120.0120.00916.48
7.0.110.0060.00916.12
7.0.100.0070.01016.34
7.0.90.0060.01616.34
7.0.80.0060.00916.16
7.0.70.0090.00816.48
7.0.60.0070.01115.96
7.0.50.0110.00816.48
7.0.40.0100.00616.64
7.0.30.0070.01016.52
7.0.20.0090.01016.54
7.0.10.0040.01616.35
7.0.00.0090.01216.30
5.6.300.0110.05320.61
5.6.290.0070.06020.80
5.6.280.0100.07920.98
5.6.270.0160.06820.90
5.6.260.0100.06520.85
5.6.250.0130.06720.97
5.6.240.0160.05220.85
5.6.230.0130.06020.92
5.6.220.0100.05720.84
5.6.210.0060.08120.81
5.6.200.0130.06020.75
5.6.190.0140.06220.68
5.6.180.0130.05320.71
5.6.170.0190.06920.74
5.6.160.0130.07320.80
5.6.150.0160.06720.74
5.6.140.0090.07520.71
5.6.130.0030.06820.90
5.6.120.0090.07120.90
5.6.110.0110.06620.68
5.6.100.0100.05620.70
5.6.90.0060.05820.91
5.6.80.0100.05420.29
5.6.70.0160.04820.24
5.6.60.0160.07320.08
5.6.50.0100.07720.29
5.6.40.0130.07420.17
5.6.30.0250.06720.25
5.6.20.0100.06520.10
5.6.10.0280.06820.32
5.6.00.0190.07120.24

preferences:
68.96 ms | 401 KiB | 5 Q