3v4l.org

run code in 300+ PHP versions simultaneously
<?php sprintf('%$1s, %2$s %1$s', "Sir", "Yes");

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.1.130.0040.00417.80
8.1.120.0070.00017.38
8.1.110.0070.00017.22
8.1.100.0070.00017.22
8.1.90.0040.00417.34
8.1.80.0070.00017.32
8.1.70.0030.00317.20
8.1.60.0060.00317.46
8.1.50.0000.00917.40
8.1.40.0030.00617.45
8.1.30.0060.00317.64
8.1.20.0000.00917.46
8.1.10.0050.00317.51
8.1.00.0000.00717.40
8.0.260.0000.00617.21
8.0.250.0000.00716.96
8.0.240.0080.00016.90
8.0.230.0070.00016.84
8.0.220.0000.00716.88
8.0.210.0000.00616.86
8.0.200.0070.00016.91
8.0.190.0040.00416.96
8.0.180.0050.00316.80
8.0.170.0040.00416.87
8.0.160.0000.00816.82
8.0.150.0070.00016.88
8.0.140.0030.00416.86
8.0.130.0050.00013.28
8.0.120.0000.00816.85
8.0.110.0040.00416.86
8.0.100.0070.00016.99
8.0.90.0000.00816.82
8.0.80.0150.00316.82
8.0.70.0000.00716.87
8.0.60.0000.00716.70
8.0.50.0000.00716.79
8.0.30.0150.00516.98
8.0.20.0160.00317.40
8.0.10.0030.00416.88
8.0.00.0100.00716.73
7.4.330.0030.00315.03
7.4.320.0070.00016.48
7.4.300.0050.00216.37
7.4.290.0040.00716.21
7.4.280.0040.00416.38
7.4.270.0030.00316.43
7.4.260.0030.00316.34
7.4.250.0040.00416.34
7.4.240.0000.00716.43
7.4.230.0030.00316.33
7.4.220.0090.00916.32
7.4.210.0070.01016.39
7.4.200.0030.00316.35
7.4.160.0060.01016.22
7.4.150.0060.01017.40
7.4.140.0130.00517.86
7.4.130.0120.00816.37
7.4.120.0100.00616.34
7.4.110.0120.00616.25
7.4.100.0090.00916.15
7.4.90.0110.00716.31
7.4.80.0130.00319.39
7.4.70.0130.00616.19
7.4.60.0060.01316.53
7.4.50.0020.00216.40
7.4.40.0070.01116.40
7.4.30.0140.00716.11
7.4.00.0080.00314.76
7.3.330.0000.00613.11
7.3.320.0060.00812.93
7.3.310.0070.00016.25
7.3.300.0030.00316.23
7.3.290.0090.00816.17
7.3.280.0080.00716.18
7.3.270.0130.00317.40
7.3.260.0080.00816.29
7.3.250.0110.00816.41
7.3.240.0100.01316.35
7.3.230.0070.01016.39
7.3.210.0130.00316.18
7.3.200.0070.01019.39
7.3.190.0090.00616.40
7.3.180.0060.01216.31
7.3.170.0120.01216.34
7.3.160.0060.01216.30
7.3.10.0110.01016.44
7.3.00.0070.00716.22
7.2.330.0140.00316.48
7.2.320.0170.00016.45
7.2.310.0090.01616.30
7.2.300.0070.01016.14
7.2.290.0110.01216.25
7.2.130.0080.00516.49
7.2.120.0090.00916.49
7.2.110.0060.01316.42
7.2.100.0080.01216.51
7.2.90.0090.01116.50
7.2.80.0090.00716.51
7.2.70.0120.00816.56
7.2.60.0140.00316.41
7.2.50.0140.00516.58
7.2.40.0080.00816.64
7.2.30.0120.00516.51
7.2.20.0120.00716.74
7.2.10.0130.00416.50
7.2.00.0130.00917.43
7.1.250.0090.00815.41
7.1.200.0000.01115.61
7.1.100.0060.00618.04
7.1.70.0000.00917.15
7.1.60.0100.01319.50
7.1.50.0120.00616.97
7.1.00.0030.07322.35
7.0.200.0000.00716.60
7.0.60.0000.05019.99
7.0.50.0000.05717.82
7.0.40.0070.07020.27
7.0.30.0300.07720.01
7.0.20.0200.04720.17
7.0.10.0030.09020.09
7.0.00.0030.04320.33
5.6.210.0130.06320.76
5.6.200.0030.05718.07
5.6.190.0130.08320.77
5.6.180.0270.08020.60
5.6.170.0300.08320.62
5.6.160.0130.03320.49
5.6.150.0130.07318.11
5.6.140.0130.05718.11
5.6.130.0070.08718.18
5.6.120.0070.04021.09
5.6.110.0030.07321.12
5.6.100.0100.07320.98
5.6.90.0130.05020.94
5.6.80.0170.05720.38
5.6.70.3800.04020.36
5.5.350.0200.08020.39
5.5.340.0070.05017.91
5.5.330.0070.05020.29
5.5.320.0300.05020.30
5.5.310.0230.03320.12
5.5.300.0030.08017.94
5.5.290.0100.08717.95
5.5.280.0170.07320.79
5.5.270.0100.04720.67
5.5.260.0170.06720.87
5.5.250.0100.06720.70
5.5.240.0400.06320.15
5.4.450.0900.04019.24
5.4.440.1070.04719.41
5.4.430.0430.03719.25
5.4.420.0070.05719.42
5.4.410.0130.07318.80
5.4.400.0200.06318.81
5.4.390.0130.05718.50
5.4.380.0100.06718.61
5.4.370.0070.05718.44
5.4.360.0200.05718.76
5.4.350.0000.06718.68
5.4.340.0130.07018.53
5.4.320.0170.06718.69
5.4.310.0170.06718.65
5.4.300.0100.07318.75
5.4.290.0100.07018.71
5.4.280.0070.07718.60
5.4.270.0200.06318.46
5.4.260.0170.06318.76
5.4.250.0170.07018.61
5.4.240.0100.05718.46
5.4.230.0130.05318.76
5.4.220.0130.07018.68
5.4.210.0030.06018.45
5.4.200.0130.05016.64
5.4.190.0100.05718.47
5.4.180.0200.04318.70
5.4.170.0070.06318.65
5.4.160.0170.05018.56
5.4.150.0130.05318.67
5.4.140.0130.06716.28
5.4.130.0070.06716.19
5.4.120.0170.06316.26
5.4.110.0030.07316.06
5.4.100.0070.07316.19
5.4.90.0070.07716.24
5.4.80.0170.06316.05
5.4.70.0270.05716.19
5.4.60.0100.06716.14
5.4.50.0130.06316.12
5.4.40.0070.06016.13
5.4.30.0070.07316.24
5.4.20.0030.06016.16
5.4.10.0230.04316.22
5.4.00.0200.04715.64
5.3.290.0130.05314.75
5.3.280.0230.04714.57
5.3.270.0100.07014.55
5.3.260.0170.06314.55
5.3.250.0200.06314.59
5.3.240.0130.05314.59
5.3.230.0100.05314.69
5.3.220.0130.05314.59
5.3.210.0030.08014.66
5.3.200.0100.07014.56
5.3.190.0170.05014.55
5.3.180.0100.05014.54
5.3.170.0130.04714.54
5.3.160.0130.05014.56
5.3.150.0030.06314.66
5.3.140.0070.06014.60
5.3.130.0170.04714.45
5.3.120.0070.05714.45
5.3.110.0030.06314.55
5.3.100.0070.05314.13
5.3.90.0000.06014.03
5.3.80.0200.04013.95
5.3.70.0070.05314.10
5.3.60.0100.05013.96
5.3.50.0070.05313.87
5.3.40.0070.05313.98
5.3.30.0200.04013.89
5.3.20.0100.05713.76
5.3.10.0170.04313.59
5.3.00.0100.05013.68
5.2.170.0030.04711.11
5.2.160.0030.04311.20
5.2.150.0130.03711.18
5.2.140.0030.05311.20
5.2.130.0130.03711.14
5.2.120.0030.04711.10
5.2.110.0070.04011.05
5.2.100.0070.04011.15
5.2.90.0100.04011.13
5.2.80.0000.05011.06
5.2.70.0070.04311.04
5.2.60.0070.04711.08
5.2.50.0130.03710.99
5.2.40.0130.03311.02
5.2.30.0030.04311.12
5.2.20.0100.03710.94
5.2.10.0100.04010.89
5.2.00.0100.04010.84
5.1.60.0070.0339.98
5.1.50.0030.03710.11
5.1.40.0100.0309.99
5.1.30.0030.04010.42
5.1.20.0030.04010.46
5.1.10.0100.03310.04
5.1.00.0100.03710.18
5.0.50.0070.0278.52
5.0.40.0030.0308.38
5.0.30.0070.0408.25
5.0.20.0100.0238.39
5.0.10.0000.0378.36
5.0.00.0070.0408.27
4.4.90.0000.0275.88
4.4.80.0000.0235.88
4.4.70.0030.0235.80
4.4.60.0070.0205.89
4.4.50.0070.0205.82
4.4.40.0030.0375.88
4.4.30.0070.0205.88
4.4.20.0100.0276.00
4.4.10.0030.0336.00
4.4.00.0030.0335.85
4.3.110.0100.0175.80
4.3.100.0070.0175.79
4.3.90.0030.0275.79
4.3.80.0100.0375.80
4.3.70.0000.0235.82
4.3.60.0070.0235.77
4.3.50.0070.0205.79
4.3.40.0000.0375.75
4.3.30.0070.0234.58
4.3.20.0100.0174.54
4.3.10.0030.0204.52
4.3.00.0230.02315.49

preferences:
13.62 ms | 406 KiB | 5 Q