3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('windows-1252'); $string = 'ยต'; $normalized = [ "\xC2\x80" => "\xE2\x82\xAC", // U+20AC Euro sign "\xC2\x82" => "\xE2\x80\x9A", // U+201A single low-9 quotation mark "\xC2\x83" => "\xC6\x92", // U+0192 latin small letter f with hook "\xC2\x84" => "\xE2\x80\x9E", // U+201E double low-9 quotation mark "\xC2\x85" => "\xE2\x80\xA6", // U+2026 horizontal ellipsis "\xC2\x86" => "\xE2\x80\xA0", // U+2020 dagger "\xC2\x87" => "\xE2\x80\xA1", // U+2021 double dagger "\xC2\x88" => "\xCB\x86", // U+02C6 modifier letter circumflex accent "\xC2\x89" => "\xE2\x80\xB0", // U+2030 per mille sign "\xC2\x8A" => "\xC5\xA0", // U+0160 latin capital letter s with caron "\xC2\x8B" => "\xE2\x80\xB9", // U+2039 single left-pointing angle quotation mark "\xC2\x8C" => "\xC5\x92", // U+0152 latin capital ligature oe "\xC2\x8E" => "\xC5\xBD", // U+017D latin capital letter z with caron "\xC2\x91" => "\xE2\x80\x98", // U+2018 left single quotation mark "\xC2\x92" => "\xE2\x80\x99", // U+2019 right single quotation mark "\xC2\x93" => "\xE2\x80\x9C", // U+201C left double quotation mark "\xC2\x94" => "\xE2\x80\x9D", // U+201D right double quotation mark "\xC2\x95" => "\xE2\x80\xA2", // U+2022 bullet "\xC2\x96" => "\xE2\x80\x93", // U+2013 en dash "\xC2\x97" => "\xE2\x80\x94", // U+2014 em dash "\xC2\x98" => "\xCB\x9C", // U+02DC small tilde "\xC2\x99" => "\xE2\x84\xA2", // U+2122 trade mark sign "\xC2\x9A" => "\xC5\xA1", // U+0161 latin small letter s with caron "\xC2\x9B" => "\xE2\x80\xBA", // U+203A single right-pointing angle quotation mark "\xC2\x9C" => "\xC5\x93", // U+0153 latin small ligature oe "\xC2\x9E" => "\xC5\xBE", // U+017E latin small letter z with caron "\xC2\x9F" => "\xC5\xB8", // U+0178 latin capital letter y with diaeresis ]; $string = str_replace(array_keys($normalized), array_values($normalized), $string); echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $string);

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.0140.00016.38
8.3.50.0090.00921.16
8.3.40.0120.00318.83
8.3.30.0040.01118.73
8.3.20.0040.00420.21
8.3.10.0000.00723.52
8.3.00.0030.00619.50
8.2.180.0070.00716.50
8.2.170.0140.00422.96
8.2.160.0040.01120.59
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.00
8.2.110.0040.00720.78
8.2.100.0120.00017.91
8.2.90.0040.00418.15
8.2.80.0040.00418.16
8.2.70.0030.00517.88
8.2.60.0030.00517.93
8.2.50.0050.00318.07
8.2.40.0000.00719.44
8.2.30.0040.00419.89
8.2.20.0050.00317.76
8.2.10.0040.00418.26
8.2.00.0030.00518.16
8.1.280.0090.00625.92
8.1.270.0000.00820.41
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.27
8.1.230.0060.00622.75
8.1.220.0050.00917.74
8.1.210.0000.00818.88
8.1.200.0090.00017.48
8.1.190.0040.00417.48
8.1.180.0030.00518.10
8.1.170.0050.00518.44
8.1.160.0040.00422.12
8.1.150.0000.00718.90
8.1.140.0000.00817.49
8.1.130.0040.00417.75
8.1.120.0040.00417.45
8.1.110.0070.00017.51
8.1.100.0030.00617.48
8.1.90.0030.00517.54
8.1.80.0000.00717.49
8.1.70.0000.00817.49
8.1.60.0090.00017.55
8.1.50.0000.00917.48
8.1.40.0030.00517.52
8.1.30.0030.00517.74
8.1.20.0040.00417.59
8.1.10.0000.00717.58
8.1.00.0000.00817.60
8.0.300.0000.00720.15
8.0.290.0040.00416.88
8.0.280.0030.00318.46
8.0.270.0000.00717.30
8.0.260.0060.00017.21
8.0.250.0000.00717.07
8.0.240.0030.00517.05
8.0.230.0070.00016.90
8.0.220.0030.00317.00
8.0.210.0030.00316.94
8.0.200.0030.00316.89
8.0.190.0000.00816.97
8.0.180.0000.01016.98
8.0.170.0080.00016.89
8.0.160.0000.00717.01
8.0.150.0000.00716.89
8.0.140.0040.00416.82
8.0.130.0050.00013.33
8.0.120.0050.00517.04
8.0.110.0060.00316.96
8.0.100.0100.00016.88
8.0.90.0030.00617.15
8.0.80.0130.01317.05
8.0.70.0060.00316.88
8.0.60.0030.00617.10
8.0.50.0030.00616.97
8.0.30.0110.01017.09
8.0.20.0110.01417.40
8.0.10.0060.00317.20
8.0.00.0100.00916.83
7.4.330.0020.00215.08
7.4.320.0030.00316.63
7.4.300.0000.00616.59
7.4.290.0040.00416.51
7.4.280.0040.00416.56
7.4.270.0000.00716.63
7.4.260.0040.00816.47
7.4.250.0030.00616.60
7.4.240.0040.00416.82
7.4.230.0060.00316.75
7.4.220.0150.00816.68
7.4.210.0130.00416.70
7.4.200.0000.00916.85
7.4.160.0110.00716.55
7.4.150.0100.01717.40
7.4.140.0070.01417.86
7.4.130.0080.01416.74
7.4.120.0100.01516.66
7.4.110.0090.01216.79
7.4.100.0140.01216.57
7.4.90.0090.00916.74
7.4.80.0070.01119.39
7.4.70.0120.00816.59
7.4.60.0080.01216.65
7.4.50.0080.00816.54
7.4.40.0110.00916.56
7.4.30.0120.01516.47
7.4.20.0180.00516.61
7.4.10.0120.01116.61
7.4.00.0060.01315.91
7.3.330.0070.00013.22
7.3.320.0000.00513.21
7.3.310.0040.00416.29
7.3.300.0040.00416.28
7.3.290.0030.00516.38
7.3.280.0090.01116.40
7.3.270.0070.01117.40
7.3.260.0060.01916.59
7.3.250.0060.01216.47
7.3.240.0100.01416.59
7.3.230.0120.00916.58
7.3.210.0000.02016.34
7.3.200.0080.01116.45
7.3.190.0040.01616.28
7.3.180.0090.01016.57
7.3.170.0110.01116.63
7.3.160.0140.00716.53
7.3.150.0200.00516.47
7.3.140.0220.00016.20
7.3.130.0100.01016.53
7.3.120.0110.01116.40
7.3.110.0040.01316.46
7.3.100.0090.00916.30
7.3.90.0080.01516.28
7.3.80.0120.00916.25
7.3.70.0150.00416.42
7.3.60.0040.01516.50
7.3.50.0080.01316.34
7.3.40.0080.01216.20
7.3.30.0090.00916.48
7.3.20.0140.00716.30
7.3.10.0130.00916.56
7.3.00.0320.00916.54
7.2.330.0140.01416.50
7.2.320.0110.01116.79
7.2.310.0130.00816.59
7.2.300.0110.00916.73
7.2.290.0030.01816.88
7.2.280.0120.00816.68
7.2.270.0130.00916.87
7.2.260.0090.01216.76
7.2.250.0080.01116.74
7.2.240.0060.01416.46
7.2.230.0170.01016.54
7.2.220.0140.01316.68
7.2.210.0140.00416.61
7.2.200.0040.01416.70
7.2.190.0110.00916.76
7.2.180.0070.02116.49
7.2.170.0090.01016.52
7.2.160.0120.00816.43
7.2.150.0030.01716.62
7.2.140.0090.01216.78
7.2.130.0090.00917.01
7.2.120.0110.01116.91
7.2.110.0120.00916.91
7.2.100.0070.01116.89
7.2.90.0080.01316.85
7.2.80.0210.00616.91
7.2.70.0080.01216.93
7.2.60.0110.01016.87
7.2.50.0100.01216.88
7.2.40.0330.00816.79
7.2.30.0070.01116.90
7.2.20.0080.00816.86
7.2.10.0110.00816.85
7.2.00.0080.01017.03
7.1.330.0620.00415.89
7.1.320.0180.01115.70
7.1.310.0220.00615.60
7.1.300.0730.00415.82
7.1.290.0210.00715.55
7.1.280.0190.01215.61
7.1.270.0150.01515.93
7.1.260.0260.00715.58
7.1.250.0120.00815.86
7.1.240.0260.00415.63
7.1.230.0200.01115.83
7.1.220.0160.01315.45
7.1.210.0190.01215.67
7.1.200.0130.00915.91
7.1.190.0210.01015.70
7.1.180.0310.01215.69
7.1.170.0180.01315.71
7.1.160.0200.01215.77
7.1.150.0110.00715.67
7.1.140.0070.01715.61
7.1.130.0100.01415.75
7.1.120.0630.00415.76
7.1.110.0120.00615.51
7.1.100.0060.01017.08
7.1.90.0070.01415.79
7.1.80.0250.00915.59
7.1.70.0140.00816.53
7.1.60.0140.01517.87
7.1.50.0130.01416.45
7.1.40.0170.01415.61
7.1.30.0200.00815.70
7.1.20.0220.00815.69
7.1.10.0950.01315.61
7.1.00.0820.04819.23
7.0.330.0190.00815.27
7.0.320.0050.01415.34
7.0.310.0170.01015.69
7.0.300.0210.01015.42
7.0.290.0200.01115.63
7.0.280.0080.00815.43
7.0.270.0120.01215.43
7.0.260.0060.00915.23
7.0.250.0100.00715.52
7.0.240.0070.01015.45
7.0.230.0170.01015.71
7.0.220.0260.01015.34
7.0.210.0250.00515.68
7.0.200.0140.00416.22
7.0.190.0140.01415.59
7.0.180.0200.01415.54
7.0.170.0140.01815.55
7.0.160.0230.00515.64
7.0.150.0270.00515.48
7.0.140.0140.01815.37
7.0.130.0200.01015.27
7.0.120.0240.00415.51
7.0.110.0220.00615.52
7.0.100.0190.01115.48
7.0.90.0160.01215.63
7.0.80.0190.00815.39
7.0.70.0250.00615.35
7.0.60.0210.03017.68
7.0.50.0170.04416.65
7.0.40.0150.03617.79
7.0.30.0340.04117.85
7.0.20.0160.03117.82
7.0.10.0080.02917.73
7.0.00.0130.02317.82
5.6.400.0200.01215.93
5.6.390.0250.00716.00
5.6.380.0210.01116.29
5.6.370.0230.00816.30
5.6.360.0180.01516.18
5.6.350.0290.00816.23
5.6.340.0160.00816.24
5.6.330.0090.01816.05
5.6.320.0070.01415.99
5.6.310.0240.00916.07
5.6.300.0290.00315.89
5.6.290.0180.02116.20
5.6.280.0140.02018.76
5.6.270.0200.00816.36
5.6.260.0230.00916.24
5.6.250.0270.00515.91
5.6.240.0200.01016.02
5.6.230.0150.01515.92
5.6.220.0170.02016.08
5.6.210.0150.02318.36
5.6.200.0130.04817.23
5.6.190.0130.03518.52
5.6.180.1820.02518.52
5.6.170.0210.03618.44
5.6.160.0120.03118.34
5.6.150.0130.04717.09
5.6.140.0150.04117.18
5.6.130.0200.04117.29
5.6.120.0120.05018.61
5.6.110.0170.04418.67
5.6.100.0090.04818.72
5.6.90.0110.04118.60
5.6.80.0160.03818.39
5.6.70.1410.02218.27
5.6.60.0200.00715.87
5.6.50.0140.01416.07
5.6.40.0160.01316.04
5.6.30.0180.01216.20
5.6.20.0210.00916.08
5.6.10.0130.01816.01
5.6.00.0190.01315.97
5.5.380.0210.00915.95
5.5.370.0170.01715.96
5.5.360.0200.01616.05
5.5.350.0160.04318.37
5.5.340.0110.02917.05
5.5.330.0120.02618.28
5.5.320.0270.03418.24
5.5.310.0150.04318.18
5.5.300.0120.02817.06
5.5.290.0120.05017.08
5.5.280.0130.04618.49
5.5.270.0120.03918.58
5.5.260.0130.04018.49
5.5.250.0130.02918.37
5.5.240.0260.04418.15
5.5.230.0170.01116.05
5.5.220.0140.01415.94
5.5.210.0170.01416.08
5.5.200.0180.01415.89
5.5.190.0140.01416.07
5.5.180.0190.01516.20
5.5.170.0160.01215.98
5.5.160.0250.01215.68
5.5.150.0090.02116.24
5.5.140.0200.01415.90
5.5.130.0330.01015.74
5.5.120.0150.01515.66
5.5.110.0240.00915.78
5.5.100.0230.01415.97
5.5.90.0200.01316.01
5.5.80.0070.02215.96
5.5.70.0060.02215.75
5.5.60.0200.01616.03
5.5.50.0230.01016.04
5.5.40.0230.00615.82
5.5.30.0160.01315.96
5.5.20.0160.01316.02
5.5.10.0220.00615.98
5.5.00.0090.01915.95
5.4.450.0130.04916.18
5.4.440.0140.04316.24
5.4.430.0120.03316.26
5.4.420.0240.02516.09
5.4.410.0180.02815.94
5.4.400.0120.03416.05
5.4.390.0180.03816.04
5.4.380.0240.03516.03
5.4.370.0140.03115.71
5.4.360.0140.03315.81
5.4.350.0120.03216.02
5.4.340.0190.04416.12
5.4.330.0180.00312.50
5.4.320.0160.03515.95
5.4.310.0280.02515.89
5.4.300.0160.03516.09
5.4.290.0150.03616.01
5.4.280.0180.03216.12
5.4.270.0200.02315.95
5.4.260.0100.03916.05
5.4.250.0200.02615.77
5.4.240.0150.03215.83
5.4.230.0150.03015.87
5.4.220.0190.02816.01
5.4.210.0150.03015.93
5.4.200.0160.02915.74
5.4.190.0160.02915.94
5.4.180.0220.02815.72
5.4.170.0100.03415.78
5.4.160.0130.03215.93
5.4.150.0230.03716.02
5.4.140.0260.03214.46
5.4.130.0180.02414.83
5.4.120.0150.02714.62
5.4.110.0130.03014.58
5.4.100.0130.03014.54
5.4.90.0180.02514.73
5.4.80.0160.02614.42
5.4.70.0200.01914.66
5.4.60.0210.01914.66
5.4.50.0100.02714.60
5.4.40.0120.03814.61
5.4.30.0090.02414.53
5.4.20.0190.02714.58
5.4.10.0160.01012.63
5.4.00.0150.01112.56

preferences:
34.12 ms | 401 KiB | 5 Q