3v4l.org

run code in 300+ PHP versions simultaneously
<?php // words inside string with umlaute, later add http://zahnstocher47.de instead of "zahnstocher" as the correct solution $string = "apfelsaft siebenundvierzig zahnstocher gelb ethereum österreich"; // get length of string $l = mb_strlen($string); $chars = mb_str_split($string); $f = ''; // loop through length and output each letter by itself for ($i = 0; $i <= $l; $i++){ // umlaute buggy when there is a concatenation $f .= $chars[$i] . " "; } var_dump($f);

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.00616.63
8.3.50.0090.00919.94
8.3.40.0110.00718.71
8.3.30.0070.00718.62
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.180.0090.00625.92
8.2.170.0120.00318.92
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0050.00326.16
8.2.110.0030.00721.06
8.2.100.0080.00318.03
8.2.90.0000.00818.22
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0080.00017.75
8.2.50.0030.00617.93
8.2.40.0000.00817.80
8.2.30.0000.00817.80
8.2.20.0000.00719.31
8.2.10.0000.00717.63
8.2.00.0000.00719.30
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00421.03
8.1.230.0070.00420.94
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0040.00417.10
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00717.62
8.1.160.0050.00218.80
8.1.150.0040.00418.52
8.1.140.0000.00717.41
8.1.130.0000.00718.95
8.1.120.0030.00317.49
8.1.110.0050.00317.52
8.1.100.0040.00417.35
8.1.90.0070.00017.45
8.1.80.0030.00617.49
8.1.70.0000.00717.35
8.1.60.0000.00817.70
8.1.50.0000.00817.61
8.1.40.0000.00717.61
8.1.30.0030.00617.61
8.1.20.0000.00717.65
8.1.10.0060.00317.59
8.1.00.0000.00717.50
8.0.300.0030.00619.66
8.0.290.0060.00316.75
8.0.280.0070.00018.18
8.0.270.0040.00417.00
8.0.260.0000.00718.56
8.0.250.0070.00017.08
8.0.240.0070.00017.09
8.0.230.0070.00017.18
8.0.220.0000.00617.06
8.0.210.0050.00216.91
8.0.200.0070.00016.98
8.0.190.0040.00417.05
8.0.180.0060.00617.08
8.0.170.0040.00417.05
8.0.160.0040.00717.07
8.0.150.0070.00016.98
8.0.140.0070.00016.88
8.0.130.0120.00316.70
8.0.120.0130.00516.71
8.0.110.0140.00416.70
8.0.100.0140.00516.71
8.0.90.0150.00416.69
8.0.80.0160.00416.73
8.0.70.0140.00616.66
8.0.60.0140.00616.60
8.0.50.0150.00516.64
8.0.30.0160.00416.62
8.0.20.0130.00616.73
8.0.10.0150.00516.70
8.0.00.0090.00316.71
7.4.330.0000.00515.55
7.4.320.0030.00316.56
7.4.300.0030.00316.46
7.4.290.0040.00416.40
7.4.280.0000.00716.43
7.4.270.0000.00716.54
7.4.260.0120.00516.23
7.4.250.0170.00415.85
7.4.240.0190.00416.19
7.4.230.0170.00616.23
7.4.220.0150.00416.25
7.4.210.0140.00516.26
7.4.200.0140.00616.25
7.4.190.0160.00416.28
7.4.180.0150.00516.25
7.4.160.0130.00616.25
7.4.150.0160.00416.17
7.4.140.0150.00416.23
7.4.130.0160.00416.19
7.4.120.0130.00616.22
7.4.110.0140.00516.19
7.4.100.0150.00416.25
7.4.90.0130.00616.19
7.4.80.0150.00516.21
7.4.70.0160.00316.22
7.4.60.0140.00516.22
7.4.50.0150.00516.09
7.4.40.0140.00516.12
7.4.30.0150.00516.21
7.4.20.0150.00416.22
7.4.10.0150.00416.18
7.4.00.0150.00416.23
7.3.330.0070.00316.22
7.3.320.0170.00315.97
7.3.310.0170.00416.03
7.3.300.0150.00516.02
7.3.290.0160.00416.00
7.3.280.0170.00415.95
7.3.270.0160.00515.97
7.3.260.0140.00615.99
7.3.250.0160.00415.94
7.3.240.0160.00415.98
7.3.230.0150.00416.04
7.3.220.0150.00415.91
7.3.210.0150.00515.89
7.3.200.0140.00415.92
7.3.190.0150.00515.93
7.3.180.0170.00315.94
7.3.170.0140.00415.98
7.3.160.0140.00515.96
7.3.150.0140.00315.92
7.3.140.0120.00515.98
7.3.130.0140.00415.93
7.3.120.0120.00515.92
7.3.110.0140.00415.87
7.3.100.0150.00315.79
7.3.90.0130.00516.22
7.3.80.0140.00415.97
7.3.70.0100.00615.92
7.3.60.0110.00616.04
7.3.50.0120.00515.99
7.3.40.0120.00515.99
7.3.30.0120.00416.04
7.3.20.0110.00517.87
7.3.10.0120.00417.80
7.3.00.0130.00417.78

preferences:
58.5 ms | 401 KiB | 5 Q