3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Äßmeier_von_Ümlauts_aÌ.jpg'; function replaceUmlauts(string $string): string { $umlauts = [ 'Ä' => 'Ae', 'ä' => 'ae', 'Ö' => 'Oe', 'ö' => 'oe', 'Ü' => 'Ue', 'ü' => 'ue', 'ß' => 'ss', ]; foreach ($umlauts as $umlaut => $replacement) { $string = str_replace($umlaut, $replacement, $string); } return $string; } $normalized = Normalizer::normalize($string, Normalizer::FORM_KC); var_dump($normalized); var_dump(Normalizer::isNormalized($normalized, Normalizer::FORM_KC)); var_dump(iconv("UTF-8", "ASCII//TRANSLIT", $normalized));

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.40.0130.00319.27
8.3.30.0040.01219.17
8.3.20.0090.00019.68
8.3.10.0050.00322.37
8.3.00.0040.00421.33
8.2.170.0160.00022.96
8.2.160.0100.00322.76
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0090.00018.66
8.2.120.0050.00326.35
8.2.110.0030.00621.46
8.2.100.0090.00318.40
8.2.90.0030.00518.41
8.2.80.0070.00718.66
8.2.70.0040.00418.55
8.2.60.0040.00418.72
8.2.50.0030.00518.13
8.2.40.0080.00019.97
8.2.30.0050.00219.90
8.2.20.0000.00918.63
8.2.10.0080.00018.84
8.2.00.0040.00418.22
8.1.270.0040.00421.19
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00324.44
8.1.230.0080.00323.38
8.1.220.0030.00518.27
8.1.210.0140.00018.77
8.1.200.0080.00817.85
8.1.190.0030.00617.85
8.1.180.0030.00618.10
8.1.170.0030.00619.24
8.1.160.0040.00419.46
8.1.150.0000.00719.46
8.1.140.0000.00822.73
8.1.130.0070.00022.70
8.1.120.0040.00417.97
8.1.110.0000.00817.96
8.1.100.0070.00017.94
8.1.90.0000.00818.03
8.1.80.0070.00017.86
8.1.70.0030.00517.91
8.1.60.0060.00318.00
8.1.50.0030.00518.07
8.1.40.0000.00817.96
8.1.30.0080.00018.30
8.1.20.0000.00717.97
8.1.10.0040.00418.04
8.1.00.0040.00417.85
8.0.300.0100.00520.28
8.0.290.0050.00317.38
8.0.280.0040.00418.93
8.0.270.0070.00017.73
8.0.260.0000.00618.89
8.0.250.0000.00717.31
8.0.240.0040.00417.36
8.0.230.0040.00417.34
8.0.220.0040.00417.21
8.0.210.0050.00217.41
8.0.200.0030.00317.45
8.0.190.0000.00717.45
8.0.180.0030.00517.43
8.0.170.0050.00317.48
8.0.160.0000.00817.37
8.0.150.0040.00417.17
8.0.140.0070.00017.39
8.0.130.0030.00313.33
8.0.120.0000.01017.50
8.0.110.0000.01017.31
8.0.100.0060.00317.63
8.0.90.0030.00617.28
8.0.80.0090.00917.48
8.0.70.0090.00017.69
8.0.60.0000.00917.61
8.0.50.0060.00317.32
8.0.30.0110.00717.75
8.0.20.0070.01417.64
8.0.10.0090.00017.63
8.0.00.0080.01617.48
7.4.330.0060.00015.55
7.4.320.0060.00017.16
7.4.300.0030.00617.11
7.4.290.0030.00317.02
7.4.280.0090.00017.16
7.4.270.0070.00017.20
7.4.260.0040.00417.14
7.4.250.0080.00017.15
7.4.240.0030.00617.21
7.4.230.0040.00417.30
7.4.220.0000.00917.02
7.4.210.0090.01217.24
7.4.200.0030.00517.05
7.4.160.0090.01317.10
7.4.140.0110.01217.86
7.4.130.0030.01716.96
7.4.120.0130.00917.12
7.4.110.0120.01217.18
7.4.100.0080.01117.21
7.4.90.0030.01617.17
7.4.80.0060.01519.39
7.4.70.0080.01317.07
7.4.60.0060.01616.93
7.4.50.0170.00417.13
7.4.40.0060.01717.01
7.4.30.0100.01016.93
7.4.20.0140.01117.02
7.4.10.0090.01216.85
7.4.00.0030.01417.12
7.3.330.0050.00013.29
7.3.320.0000.00613.14
7.3.310.0000.01116.89
7.3.300.0000.00816.77
7.3.290.0040.00416.86
7.3.280.0080.01216.96
7.3.260.0120.00917.10
7.3.240.0090.01016.88
7.3.230.0070.01716.80
7.3.210.0090.01416.77
7.3.200.0060.01517.37
7.3.190.0080.01117.25
7.3.180.0080.01517.10
7.3.170.0090.01417.05
7.3.160.0100.00816.91
7.3.150.0030.01716.88
7.3.140.0110.00917.35
7.3.130.0190.00017.03
7.3.120.0070.01116.71
7.3.110.0140.00617.23
7.3.100.0000.02016.95
7.3.90.0080.01117.02
7.3.80.0150.00516.91
7.3.70.0040.01817.04
7.3.60.0110.00816.80
7.3.50.0100.01517.08
7.3.40.0090.01217.09
7.3.30.0130.00616.96
7.3.20.0290.01017.03
7.3.10.0120.00916.93
7.3.00.0100.01316.87
7.2.330.0070.01416.97
7.2.320.0140.00717.23
7.2.310.0050.01417.12
7.2.300.0070.01317.14
7.2.290.0040.01917.11
7.2.280.0060.01817.18
7.2.270.0140.01117.11
7.2.260.0110.00817.04
7.2.250.0110.00817.31
7.2.240.0100.01017.19
7.2.230.0070.01317.11
7.2.220.0170.00317.26
7.2.210.0090.01217.05
7.2.200.0150.00417.16
7.2.190.0080.01217.21
7.2.180.0120.01017.09
7.2.170.0090.00917.05
7.2.160.0090.01116.89
7.2.150.0070.01517.29
7.2.140.0140.01117.17
7.2.130.0100.01417.24
7.2.120.0080.01117.31
7.2.110.0160.00417.04
7.2.100.0030.01617.20
7.2.90.0100.01017.23
7.2.80.0100.01317.21
7.2.70.0060.01416.97
7.2.60.0040.01617.10
7.2.50.0200.01317.18
7.2.40.0530.01117.27
7.2.30.0100.01417.24
7.2.20.0140.01417.08
7.2.10.0160.00317.23
7.2.00.0090.01017.13
7.1.330.0140.00316.28
7.1.320.0140.00515.86
7.1.310.0090.00915.92
7.1.300.0150.01215.90
7.1.290.0140.00616.16
7.1.280.0100.01015.83
7.1.270.0100.01015.90
7.1.260.0070.01516.05
7.1.250.0090.01416.24
7.1.240.0110.00815.96
7.1.230.0000.02115.88
7.1.220.0060.01215.76
7.1.210.0160.00316.18
7.1.200.0110.00816.12
7.1.190.0180.00416.11
7.1.180.0080.01116.20
7.1.170.0050.01415.88
7.1.160.0170.01116.17
7.1.150.0300.00316.31
7.1.140.0260.01316.38
7.1.130.0190.01016.19
7.1.120.0030.01616.22
7.1.110.0240.00516.26
7.1.100.0200.00916.32
7.1.90.0090.01216.06
7.1.80.0110.01116.37
7.1.70.0110.00816.22
7.1.60.0080.01316.01
7.1.50.0080.01116.10
7.1.40.0130.00616.34
7.1.30.0120.00616.26
7.1.20.0060.01216.18
7.1.10.0040.01416.24
7.1.00.0090.00916.23
7.0.330.0130.00615.76
7.0.320.0130.00515.49
7.0.310.0210.00315.83
7.0.300.0140.00815.76
7.0.290.0190.01515.91
7.0.280.0230.01015.98
7.0.270.0130.01316.07
7.0.260.0090.00916.03
7.0.250.0180.00915.82
7.0.240.0220.00715.99
7.0.230.0380.01015.83
7.0.220.0100.01015.87
7.0.210.0060.01815.88
7.0.200.0060.01216.00
7.0.190.0060.01216.09
7.0.180.0060.01316.02
7.0.170.0060.01316.05
7.0.160.0080.01116.02
7.0.150.0030.01515.92
7.0.140.0060.01216.07
7.0.130.0100.00715.93
7.0.120.0160.00616.03
7.0.110.0090.00915.55
7.0.100.0140.01115.83
7.0.90.0070.01416.04
7.0.80.0090.00915.89
7.0.70.0030.01516.09
7.0.60.0070.01415.99
7.0.50.0070.01115.88
7.0.40.0040.01415.79
7.0.30.0030.01516.06
7.0.20.0130.00315.85
7.0.10.0090.01315.94
7.0.00.0110.00715.82
5.6.400.0110.01115.56
5.6.390.0140.00715.68
5.6.380.0060.01215.20
5.6.370.0050.01815.96
5.6.360.0140.00615.55
5.6.350.0290.00415.84
5.6.340.0290.01315.43
5.6.330.0100.00715.84
5.6.320.0200.01115.78
5.6.310.0060.01315.39
5.6.300.0100.00715.63
5.6.290.0030.01615.77
5.6.280.0090.01315.84
5.6.270.0150.00715.66
5.6.260.0090.00915.73
5.6.250.0070.01115.72
5.6.240.0070.01415.83
5.6.230.0060.01215.58
5.6.220.0060.01115.68
5.6.210.0100.00615.86
5.6.200.0070.01015.55
5.6.190.0090.00815.61
5.6.180.0090.00915.72
5.6.170.0110.00615.65
5.6.160.0150.00415.52
5.6.150.0060.01515.66
5.6.140.0150.00315.71
5.6.130.0110.01215.89
5.6.120.0140.00915.71
5.6.110.0140.00915.70
5.6.100.0130.01015.73
5.6.90.0130.00915.51
5.6.80.0090.01215.54
5.6.70.0040.01715.71
5.6.60.0110.00915.45
5.6.50.0040.01415.75
5.6.40.0120.00615.70
5.6.30.0110.00715.51
5.6.20.0070.01015.69
5.6.10.0070.01115.59
5.6.00.0090.00915.65

preferences:
66.59 ms | 400 KiB | 5 Q