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_C); var_dump($normalized); var_dump(Normalizer::isNormalized($normalized, Normalizer::FORM_C)); 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.60.0090.00918.68
8.3.50.0090.00618.29
8.3.40.0120.00318.84
8.3.30.0130.00318.84
8.3.20.0080.00019.34
8.3.10.0040.00422.09
8.3.00.0040.00420.84
8.2.180.0170.00318.41
8.2.170.0080.00822.96
8.2.160.0110.00320.70
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00718.22
8.2.120.0000.00826.35
8.2.110.0070.01019.55
8.2.100.0090.00318.03
8.2.90.0030.00817.88
8.2.80.0030.00517.97
8.2.70.0030.00618.00
8.2.60.0040.00418.09
8.2.50.0080.00018.10
8.2.40.0000.00819.61
8.2.30.0000.00719.34
8.2.20.0050.00518.09
8.2.10.0050.00218.30
8.2.00.0030.00517.86
8.1.280.0180.00425.92
8.1.270.0080.00020.65
8.1.260.0100.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00722.62
8.1.230.0040.00722.44
8.1.220.0040.00417.91
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0060.00318.94
8.1.150.0040.00419.04
8.1.140.0000.00722.45
8.1.130.0040.00422.21
8.1.120.0040.00417.50
8.1.110.0040.00417.55
8.1.100.0000.00817.62
8.1.90.0030.00617.52
8.1.80.0070.00017.53
8.1.70.0030.00517.56
8.1.60.0090.00017.70
8.1.50.0040.00417.66
8.1.40.0000.00817.57
8.1.30.0040.00417.83
8.1.20.0000.00817.69
8.1.10.0000.00817.55
8.1.00.0080.00017.56
8.0.300.0040.00418.77
8.0.290.0030.00616.88
8.0.280.0040.00418.59
8.0.270.0040.00417.31
8.0.260.0030.00318.50
8.0.250.0030.00317.01
8.0.240.0040.00417.05
8.0.230.0000.00917.12
8.0.220.0000.00816.94
8.0.210.0000.00717.01
8.0.200.0000.00616.92
8.0.190.0000.00717.09
8.0.180.0030.00616.96
8.0.170.0000.00917.01
8.0.160.0040.00417.03
8.0.150.0080.00016.93
8.0.140.0050.00217.05
8.0.130.0060.00013.31
8.0.120.0040.00417.03
8.0.110.0070.00317.21
8.0.100.0040.00417.06
8.0.90.0030.00717.07
8.0.80.0190.01217.17
8.0.70.0030.00617.00
8.0.60.0100.00017.05
8.0.50.0060.00317.20
8.0.30.0050.01617.29
8.0.20.0140.01017.40
8.0.10.0090.00017.34
8.0.00.0060.01816.93
7.4.330.0000.00515.55
7.4.320.0030.00316.75
7.4.300.0080.00016.70
7.4.290.0030.00316.66
7.4.280.0000.00916.79
7.4.270.0030.00316.81
7.4.260.0000.00716.81
7.4.250.0050.00316.93
7.4.240.0030.00616.93
7.4.230.0040.00416.97
7.4.220.0000.00916.66
7.4.210.0080.01316.97
7.4.200.0000.00816.78
7.4.160.0060.01316.86
7.4.140.0120.01017.86
7.4.130.0070.01316.87
7.4.120.0090.01016.78
7.4.110.0090.01816.84
7.4.100.0110.00716.70
7.4.90.0160.00316.89
7.4.80.0150.00619.39
7.4.70.0090.00916.56
7.4.60.0150.00616.58
7.4.50.0060.01116.77
7.4.40.0050.01416.61
7.4.30.0130.00516.62
7.4.20.0040.01616.52
7.4.10.0120.00816.67
7.4.00.0090.01216.20
7.3.330.0050.00013.30
7.3.320.0050.00013.29
7.3.310.0030.00616.53
7.3.300.0040.00416.52
7.3.290.0030.00516.49
7.3.280.0100.00816.52
7.3.260.0080.01216.65
7.3.240.0100.00916.72
7.3.230.0060.01316.64
7.3.210.0090.00916.42
7.3.200.0110.01016.77
7.3.190.0100.01416.63
7.3.180.0070.01016.62
7.3.170.0140.00816.74
7.3.160.0060.01216.64
7.3.150.0030.01516.54
7.3.140.0140.00816.74
7.3.130.0080.01216.60
7.3.120.0090.01116.04
7.3.110.0050.01316.04
7.3.100.0070.01115.89
7.3.90.0070.00916.03
7.3.80.0050.01016.22
7.3.70.0050.00815.92
7.3.60.0030.01315.98
7.3.50.0060.00715.84
7.3.40.0040.01315.85
7.3.30.0090.00615.96
7.3.20.0050.01217.28
7.3.10.0100.01117.15
7.3.00.0050.01217.25
7.2.330.0030.01716.99
7.2.320.0000.02016.65
7.2.310.0070.01116.64
7.2.300.0090.00916.87
7.2.290.0130.00616.62
7.2.280.0060.01316.92
7.2.270.0190.00616.90
7.2.260.0150.00916.73
7.2.250.0070.01116.22
7.2.240.0120.01016.35
7.2.230.0070.01316.23
7.2.220.0100.00716.14
7.2.210.0050.01116.43
7.2.200.0060.01116.26
7.2.190.0060.01416.31
7.2.180.0110.00516.25
7.2.170.0070.00916.29
7.2.160.0080.00716.31
7.2.150.0080.00817.50
7.2.140.0130.00917.54
7.2.130.0080.01117.48
7.2.120.0060.01217.43
7.2.110.0080.00817.48
7.2.100.0050.01417.38
7.2.90.0100.00917.39
7.2.80.0110.00917.53
7.2.70.0090.01217.53
7.2.60.0090.00917.48
7.2.50.0070.01017.42
7.2.40.0100.00917.48
7.2.30.0060.01217.54
7.2.20.0090.01017.47
7.2.10.0060.01217.38
7.2.00.0020.01317.31
7.1.330.0110.01016.54
7.1.320.0060.01016.43
7.1.310.0050.01216.44
7.1.300.0090.01016.53
7.1.290.0090.00716.48
7.1.280.0050.01116.37
7.1.270.0040.01116.42
7.1.260.0080.00816.38
7.1.250.0090.01016.61
7.1.240.0040.01216.46
7.1.230.0070.01016.34
7.1.220.0080.00716.29
7.1.210.0020.01516.52
7.1.200.0070.01016.54
7.1.190.0060.01316.45
7.1.180.0060.01016.54
7.1.170.0090.00716.49
7.1.160.0070.00716.53
7.1.150.0060.01316.44
7.1.140.0100.00816.46
7.1.130.0070.01116.52
7.1.120.0050.01216.45
7.1.110.0050.01216.51
7.1.100.0070.00916.45
7.1.90.0080.00816.45
7.1.80.0060.01316.52
7.1.70.0060.00816.49
7.1.60.0040.01216.49
7.1.50.0080.00916.44
7.1.40.0030.01216.57
7.1.30.0040.01516.41
7.1.20.0050.01216.62
7.1.10.0090.00816.53
7.1.00.0080.01116.63
7.0.330.0070.01216.16
7.0.320.0060.01216.02
7.0.310.0060.01416.27
7.0.300.0060.01016.11
7.0.290.0080.00716.20
7.0.280.0050.00916.21
7.0.270.0040.01516.29
7.0.260.0100.01216.25
7.0.250.0070.00816.13
7.0.240.0050.01116.31
7.0.230.0090.01216.18
7.0.220.0100.00916.15
7.0.210.0080.00916.25
7.0.200.0080.00916.13
7.0.190.0070.00816.27
7.0.180.0110.00616.20
7.0.170.0090.01216.20
7.0.160.0080.00916.21
7.0.150.0040.01216.27
7.0.140.0070.00816.31
7.0.130.0090.00616.24
7.0.120.0090.00816.23
7.0.110.0050.01116.08
7.0.100.0130.00816.15
7.0.90.0080.00816.16
7.0.80.0080.00816.30
7.0.70.0080.00916.11
7.0.60.0080.00716.15
7.0.50.0080.01116.25
7.0.40.0050.01214.92
7.0.30.0070.00914.79
7.0.20.0050.01314.83
7.0.10.0040.01214.86
7.0.00.0050.01014.79
5.6.400.0060.01014.96
5.6.390.0120.00715.08
5.6.380.0050.01314.95
5.6.370.0080.00915.18
5.6.360.0090.00915.07
5.6.350.0090.00515.17
5.6.340.0060.01115.29
5.6.330.0040.01315.34
5.6.320.0060.00815.14
5.6.310.0060.01214.98
5.6.300.0080.00815.17
5.6.290.0060.01115.27
5.6.280.0080.01015.15
5.6.270.0060.01215.03
5.6.260.0060.01015.25
5.6.250.0080.00915.30
5.6.240.0110.00615.04
5.6.230.0090.00715.16
5.6.220.0030.01115.03
5.6.210.0070.00815.12
5.6.200.0070.00915.19
5.6.190.0070.00715.21
5.6.180.0020.01415.16
5.6.170.0040.01014.97
5.6.160.0070.00715.08
5.6.150.0030.01115.31
5.6.140.0050.01215.04
5.6.130.0070.00715.29
5.6.120.0090.00615.19
5.6.110.0060.00815.32
5.6.100.0060.00815.04
5.6.90.0070.00615.17
5.6.80.0080.00915.08
5.6.70.0070.01115.10
5.6.60.0070.00615.06
5.6.50.0060.00914.99
5.6.40.0040.00914.97
5.6.30.0050.00915.09
5.6.20.0020.01214.99
5.6.10.0040.01015.05
5.6.00.0090.00814.91

preferences:
55.63 ms | 401 KiB | 5 Q