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.5.10.0080.01016.77
8.5.00.0080.01420.04
8.4.150.0030.00014.05
8.4.140.0110.01117.72
8.4.130.0120.00618.93
8.4.120.0130.00724.32
8.4.110.0100.01018.95
8.4.100.0080.00418.66
8.4.90.0120.00820.25
8.4.80.0070.00317.97
8.4.70.0150.00618.05
8.4.60.0130.00718.74
8.4.50.0090.01022.30
8.4.40.0000.01417.79
8.4.30.0100.00618.69
8.4.20.0070.01324.04
8.4.10.0000.00919.45
8.3.280.0130.01020.24
8.3.270.0120.01017.00
8.3.260.0160.00416.87
8.3.250.0120.00719.02
8.3.240.0090.00416.70
8.3.230.0150.00617.04
8.3.220.0060.00219.09
8.3.210.0130.00516.71
8.3.200.0030.00516.60
8.3.190.0090.01116.89
8.3.180.0090.00916.77
8.3.170.0130.00616.85
8.3.160.0150.00316.80
8.3.150.0090.00917.25
8.3.140.0070.01116.87
8.3.130.0090.00916.98
8.3.120.0080.00020.83
8.3.110.0060.00318.55
8.3.100.0090.00018.49
8.3.90.0000.00826.77
8.3.80.0030.00618.43
8.3.70.0070.00716.63
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.290.0100.00820.47
8.2.280.0100.00920.46
8.2.270.0080.00316.55
8.2.260.0040.00418.90
8.2.250.0000.00816.92
8.2.240.0130.00317.07
8.2.230.0030.00620.94
8.2.220.0150.00024.06
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0110.00416.63
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.330.0120.00721.89
8.1.320.0110.00816.41
8.1.310.0070.00416.88
8.1.300.0080.00018.36
8.1.290.0060.00330.84
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:
45.19 ms | 403 KiB | 5 Q