3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("T1","one"); define("T2","two"); define("T3", 'mierder'); $test='numbers %2$s %1$s, %3$s'; $test=sprintf($test, T1,T2, T3); 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.0180.00018.55
8.3.50.0100.00922.05
8.3.40.0100.00518.50
8.3.30.0080.00818.59
8.3.20.0040.00420.04
8.3.10.0060.00320.53
8.3.00.0050.00221.60
8.2.180.0040.01118.31
8.2.170.0150.00622.96
8.2.160.0070.00722.01
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00821.15
8.2.120.0070.00026.35
8.2.110.0040.00419.20
8.2.100.0040.00717.80
8.2.90.0040.00419.13
8.2.80.0080.00017.97
8.2.70.0040.00417.25
8.2.60.0000.00918.05
8.2.50.0030.00518.09
8.2.40.0040.00422.26
8.2.30.0070.00019.30
8.2.20.0040.00417.70
8.2.10.0070.00017.98
8.2.00.0070.00018.15
8.1.280.0040.01125.92
8.1.270.0030.00621.95
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00722.52
8.1.230.0000.01117.70
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0040.00717.35
8.1.190.0080.00017.35
8.1.180.0080.00018.10
8.1.170.0000.00818.61
8.1.160.0070.00020.67
8.1.150.0000.00718.79
8.1.140.0040.00419.56
8.1.130.0040.00417.69
8.1.120.0000.00717.46
8.1.110.0080.00017.47
8.1.100.0050.00317.45
8.1.90.0040.00417.48
8.1.80.0030.00517.45
8.1.70.0070.00017.34
8.1.60.0030.00517.58
8.1.50.0030.00617.50
8.1.40.0040.00417.52
8.1.30.0000.00917.68
8.1.20.0000.00817.38
8.1.10.0050.00317.37
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0070.00018.45
8.0.270.0080.00017.29
8.0.260.0000.00717.27
8.0.250.0040.00416.94
8.0.240.0040.00416.95
8.0.230.0040.00416.84
8.0.220.0000.00716.84
8.0.210.0000.00716.75
8.0.200.0040.00416.93
8.0.190.0000.00816.88
8.0.180.0040.00416.89
8.0.170.0040.00416.80
8.0.160.0000.00716.76
8.0.150.0040.00416.82
8.0.140.0050.00316.81
8.0.130.0000.00613.35
8.0.120.0040.00416.75
8.0.110.0000.00816.92
8.0.100.0000.00816.73
8.0.90.0000.00716.68
8.0.80.0070.01416.92
8.0.70.0000.00716.86
8.0.60.0040.00416.70
8.0.50.0040.00416.82
8.0.30.0090.01016.98
8.0.20.0090.00917.40
8.0.10.0040.00416.88
8.0.00.0100.00916.68
7.4.330.0000.00516.78
7.4.320.0000.00616.50
7.4.300.0060.00016.61
7.4.290.0030.00316.48
7.4.280.0050.00216.41
7.4.270.0060.00016.45
7.4.260.0040.00416.46
7.4.250.0030.00316.54
7.4.240.0070.00016.35
7.4.230.0030.00516.59
7.4.220.0070.01016.67
7.4.210.0030.01016.64
7.4.200.0030.00316.67
7.4.160.0040.01216.32
7.4.150.0100.01017.40
7.4.140.0060.01517.86
7.4.130.0100.00916.51
7.4.120.0080.00916.41
7.4.110.0040.01516.38
7.4.100.0110.00716.70
7.4.90.0030.01416.36
7.4.80.0120.00619.39
7.4.70.0060.00916.39
7.4.60.0060.00916.43
7.4.50.0040.01216.45
7.4.40.0100.01016.49
7.4.30.0150.00616.46
7.4.00.0100.00715.00
7.3.330.0030.00313.11
7.3.320.0060.00013.03
7.3.310.0000.00716.16
7.3.300.0000.00616.18
7.3.290.0040.01416.17
7.3.280.0060.01116.26
7.3.270.0180.00317.40
7.3.260.0170.00316.24
7.3.250.0080.01016.33
7.3.240.0110.00616.40
7.3.230.0140.00416.52
7.3.210.0100.00716.40
7.3.200.0100.00716.33
7.3.190.0100.00616.23
7.3.180.0140.00716.40
7.3.170.0040.01316.30
7.3.160.0060.01516.43
7.3.120.0120.00617.15
7.3.110.0070.01117.15
7.3.100.0110.00417.15
7.3.90.0120.00417.15
7.3.80.0080.00317.15
7.3.70.0040.01217.15
7.3.60.0000.01517.15
7.3.50.0090.00617.15
7.3.40.0140.00317.15
7.3.30.0030.01417.15
7.3.20.0030.01017.15
7.3.10.0090.00617.15
7.3.00.0000.01417.15
7.2.330.0030.01616.59
7.2.320.0100.00716.65
7.2.310.0040.01316.67
7.2.300.0100.01016.41
7.2.290.0080.00816.51
7.2.240.0060.00317.15
7.2.230.0040.00817.15
7.2.220.0000.01217.15
7.2.210.0120.00317.15
7.2.200.0080.00817.15
7.2.190.0060.00917.15
7.2.180.0060.01317.15
7.2.170.0000.01417.15
7.2.160.0090.00617.15
7.2.150.0060.00917.15
7.2.140.0030.00917.15
7.2.130.0000.01117.15
7.2.120.0040.00717.15
7.2.110.0070.01017.15
7.2.100.0090.00617.15
7.2.90.0070.00317.15
7.2.80.0030.00917.15
7.2.70.0100.00717.15
7.2.60.0030.01317.15
7.2.50.0060.00617.15
7.2.40.0070.00417.15
7.2.30.0130.00317.15
7.2.20.0090.00317.15
7.2.10.0070.01017.15
7.2.00.0050.00918.31
7.1.330.0070.00717.15
7.1.320.0100.00717.15
7.1.310.0110.00417.15
7.1.300.0090.00617.15
7.1.290.0030.00917.15
7.1.280.0040.01117.15
7.1.270.0060.00917.15
7.1.260.0030.01317.15
7.1.250.0100.00717.15
7.1.100.0000.01118.11
7.1.70.0040.00416.90
7.1.60.0120.01219.19
7.1.50.0060.01216.98
7.1.00.0070.07322.40
7.0.200.0310.01014.35
7.0.60.0170.08021.68
7.0.50.0070.08017.76
7.0.40.0130.04720.09
7.0.30.0270.08020.18
7.0.20.0230.08020.33
7.0.10.0170.06720.33
7.0.00.0130.03320.20
5.6.280.0100.02721.04
5.6.210.0070.08320.54
5.6.200.0230.05718.19
5.6.190.0070.08720.56
5.6.180.0230.07020.65
5.6.170.0270.04320.49
5.6.160.0100.04720.32
5.6.150.0070.07318.15
5.6.140.0070.08318.11
5.6.130.0130.07718.20
5.6.120.0070.05320.98
5.6.110.0030.08021.13
5.6.100.0030.04721.02
5.6.90.0070.06321.01
5.6.80.0100.08020.41
5.5.350.0300.08320.32
5.5.340.0130.07318.02
5.5.330.0100.05320.48
5.5.320.0300.05720.41
5.5.310.0300.07320.50
5.5.300.0000.04317.96
5.5.290.0070.08017.91
5.5.280.0070.03720.87
5.5.270.0130.04720.95
5.5.260.0100.06320.82
5.5.250.0030.04020.78
5.5.240.0000.03320.22

preferences:
70.17 ms | 401 KiB | 5 Q