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.0090.00616.50
8.3.50.0130.00521.21
8.3.40.0100.00718.84
8.3.30.0040.01518.56
8.3.20.0000.00720.38
8.3.10.0000.00723.36
8.3.00.0040.00419.67
8.2.180.0030.01416.88
8.2.170.0110.00422.96
8.2.160.0070.00720.43
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00017.74
8.2.110.0070.00421.12
8.2.100.0110.00018.03
8.2.90.0030.00517.93
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0000.00919.46
8.2.30.0040.00419.85
8.2.20.0050.00317.68
8.2.10.0070.00018.23
8.2.00.0000.00818.24
8.1.280.0150.00025.92
8.1.270.0000.00820.50
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.61
8.1.230.0060.00620.97
8.1.220.0090.00217.74
8.1.210.0030.00519.04
8.1.200.0000.00917.35
8.1.190.0000.00817.48
8.1.180.0000.00718.10
8.1.170.0060.00318.59
8.1.160.0040.00422.07
8.1.150.0020.00518.99
8.1.140.0080.00017.41
8.1.130.0000.00717.77
8.1.120.0040.00417.54
8.1.110.0000.00717.55
8.1.100.0070.00317.47
8.1.90.0040.00417.51
8.1.80.0000.00717.41
8.1.70.0000.00817.41
8.1.60.0000.00917.62
8.1.50.0000.00917.55
8.1.40.0080.00017.49
8.1.30.0030.00617.65
8.1.20.0050.00217.69
8.1.10.0040.00417.55
8.1.00.0040.00417.70
8.0.300.0070.00019.98
8.0.290.0040.00416.88
8.0.280.0070.00018.50
8.0.270.0070.00017.21
8.0.260.0030.00317.24
8.0.250.0000.00816.95
8.0.240.0040.00417.00
8.0.230.0000.00716.96
8.0.220.0070.00016.91
8.0.210.0030.00316.86
8.0.200.0000.00717.04
8.0.190.0080.00017.00
8.0.180.0080.00416.93
8.0.170.0040.00416.88
8.0.160.0040.00417.08
8.0.150.0070.00016.98
8.0.140.0030.00516.77
8.0.130.0050.00013.41
8.0.120.0060.00316.89
8.0.110.0030.00617.05
8.0.100.0060.00316.91
8.0.90.0030.00517.00
8.0.80.0060.01217.02
8.0.70.0060.00317.06
8.0.60.0030.00616.87
8.0.50.0000.00817.03
8.0.30.0110.01317.39
8.0.20.0160.01117.40
8.0.10.0000.00817.03
8.0.00.0100.00816.92
7.4.330.0030.00315.08
7.4.320.0030.00316.58
7.4.300.0070.00016.44
7.4.290.0000.00716.50
7.4.280.0040.00416.59
7.4.270.0070.00016.58
7.4.260.0000.00716.49
7.4.250.0030.00616.51
7.4.240.0030.00616.70
7.4.230.0040.00416.68
7.4.220.0070.02416.84
7.4.210.0050.01416.67
7.4.200.0080.00016.79
7.4.160.0090.00916.83
7.4.150.0180.01117.40
7.4.140.0130.01117.86
7.4.130.0070.01216.57
7.4.120.0100.01316.67
7.4.110.0110.01116.86
7.4.100.0110.01516.55
7.4.90.0080.01316.56
7.4.80.0120.00619.39
7.4.70.0110.01016.54
7.4.60.0040.01516.66
7.4.50.0070.00916.62
7.4.40.0130.01416.42
7.4.30.0120.01216.57
7.4.20.0100.01416.48
7.4.10.0090.01015.81
7.4.00.0060.01015.61
7.3.330.0000.00613.30
7.3.320.0030.00313.05
7.3.310.0000.00816.18
7.3.300.0040.00416.21
7.3.290.0050.00316.45
7.3.280.0110.01116.39
7.3.270.0100.01017.40
7.3.260.0090.00916.55
7.3.250.0120.00816.46
7.3.240.0090.01516.41
7.3.230.0100.01016.39
7.3.210.0120.00616.55
7.3.200.0050.01616.40
7.3.190.0090.01216.39
7.3.180.0150.00616.54
7.3.170.0130.01016.45
7.3.160.0120.01016.57
7.3.150.0120.00916.15
7.3.140.0140.00816.21
7.3.130.0080.01315.68
7.3.120.0100.01115.67
7.3.110.0100.01015.52
7.3.100.0120.00515.58
7.3.90.0080.01015.45
7.3.80.0080.01015.54
7.3.70.0080.00915.70
7.3.60.0080.01015.68
7.3.50.0090.00715.60
7.3.40.0050.01315.43
7.3.30.0040.01315.41
7.3.20.0090.00716.52
7.3.10.0030.01216.57
7.3.00.0090.00816.61
7.2.330.0060.01516.76
7.2.320.0100.01616.99
7.2.310.0130.00816.60
7.2.300.0150.00716.73
7.2.290.0060.01216.78
7.2.280.0170.00616.41
7.2.270.0090.01416.45
7.2.260.0080.01316.01
7.2.250.0090.00915.73
7.2.240.0100.00915.89
7.2.230.0050.01415.69
7.2.220.0090.01015.83
7.2.210.0100.00715.80
7.2.200.0050.01415.71
7.2.190.0120.00815.77
7.2.180.0080.01115.91
7.2.170.0080.01015.86
7.2.160.0090.00915.64
7.2.150.0050.01216.92
7.2.140.0090.00916.93
7.2.130.0060.01016.87
7.2.120.0020.01416.96
7.2.110.0080.00917.49
7.2.100.0060.01117.64
7.2.90.0030.01517.76
7.2.80.0090.00617.77
7.2.70.0030.01316.73
7.2.60.0090.00817.46
7.2.50.0060.01217.57
7.2.40.0100.00817.71
7.2.30.0110.00717.79
7.2.20.0110.01117.68
7.2.10.0110.00917.59
7.2.00.0080.00918.41
7.1.330.0120.01015.83
7.1.320.0120.01016.07
7.1.310.0110.01315.84
7.1.300.0390.00816.01
7.1.290.0120.00715.95
7.1.280.0150.00816.04
7.1.270.0120.00915.82
7.1.260.0180.00415.66
7.1.250.0180.00715.77
7.1.240.0200.01016.55
7.1.230.0130.00816.84
7.1.220.0110.00916.70
7.1.210.0110.00816.58
7.1.200.0100.00915.62
7.1.190.0130.00716.84
7.1.180.0060.01516.69
7.1.170.0100.01016.73
7.1.160.0150.01016.66
7.1.150.0120.00916.67
7.1.140.0090.01616.70
7.1.130.0120.01216.66
7.1.120.0090.01316.54
7.1.110.0420.01016.80
7.1.100.0150.00917.24
7.1.90.0140.00916.63
7.1.80.0120.01216.71
7.1.70.0090.01116.93
7.1.60.0090.01417.80
7.1.50.0070.01716.83
7.1.40.0130.00916.89
7.1.30.0160.00516.69
7.1.20.0130.01116.81
7.1.10.0150.00616.66
7.1.00.0120.03118.74
7.0.330.0170.00315.50
7.0.320.0110.00916.52
7.0.310.0140.00515.33
7.0.300.0140.00616.39
7.0.290.0130.00716.43
7.0.280.0150.00916.35
7.0.270.0140.00816.31
7.0.260.0100.01216.24
7.0.250.0230.01316.46
7.0.240.0090.01116.51
7.0.230.0100.01216.43
7.0.220.0120.00716.41
7.0.210.0140.00916.60
7.0.200.0100.00716.71
7.0.190.0120.01116.36
7.0.180.0200.00616.39
7.0.170.0160.00616.24
7.0.160.0170.00716.43
7.0.150.0140.00716.21
7.0.140.0140.00416.44
7.0.130.0100.01216.42
7.0.120.0100.01116.54
7.0.110.0180.00916.51
7.0.100.0140.01316.39
7.0.90.0230.00316.45
7.0.80.0190.00816.41
7.0.70.0160.00816.27
7.0.60.0110.03217.56
7.0.50.0100.02416.91
7.0.40.0080.02217.04
7.0.30.0280.03117.07
7.0.20.0160.01817.06
7.0.10.0110.02117.00
7.0.00.0120.01916.98
5.6.400.0140.01215.42
5.6.390.0090.01315.47
5.6.380.0120.00915.26
5.6.370.0090.00915.38
5.6.360.0120.01015.24
5.6.350.0070.01615.24
5.6.340.0160.00715.17
5.6.330.0120.01115.37
5.6.320.0100.01215.24
5.6.310.0120.00915.51
5.6.300.0140.00715.20
5.6.290.0090.01215.32
5.6.280.0120.01617.37
5.6.270.0090.01215.41
5.6.260.0140.01015.45
5.6.250.0180.00515.32
5.6.240.0150.00715.42
5.6.230.0090.01115.46
5.6.220.0130.00815.30
5.6.210.0120.03517.11
5.6.200.0110.03416.29
5.6.190.0100.02717.12
5.6.180.1410.01417.20
5.6.170.0170.02317.21
5.6.160.0110.02416.94
5.6.150.0120.02916.41
5.6.140.0110.02216.25
5.6.130.0140.02116.40
5.6.120.0120.02717.30
5.6.110.0120.02717.21
5.6.100.0110.03517.17
5.6.90.0080.03917.30
5.6.80.0100.03416.94
5.6.70.0290.01916.99
5.6.60.0160.00815.38
5.6.50.0120.00715.16
5.6.40.0160.00515.22
5.6.30.0170.00515.39
5.6.20.0120.00815.27
5.6.10.0140.00915.21
5.6.00.0100.01315.16
5.5.380.0120.01015.42
5.5.370.0140.00915.27
5.5.360.0120.00915.28
5.5.350.0220.02616.96
5.5.340.0120.03316.29
5.5.330.0150.01817.11
5.5.320.0240.01917.15
5.5.310.0150.03117.05
5.5.300.0110.02416.18
5.5.290.0070.03216.05
5.5.280.0100.03117.10
5.5.270.0090.02217.31
5.5.260.0120.03417.22
5.5.250.0120.03516.90
5.5.240.0150.03116.90
5.5.230.0120.01215.29
5.5.220.0130.01015.11
5.5.210.0130.01315.13
5.5.200.0140.00915.21
5.5.190.0160.00815.23
5.5.180.0130.01115.27
5.5.170.0090.01215.01
5.5.160.0110.01515.26
5.5.150.0130.00915.26
5.5.140.0190.00715.36
5.5.130.0140.00815.25
5.5.120.0130.00815.25
5.5.110.0140.00815.11
5.5.100.0090.01515.20
5.5.90.0180.00615.19
5.5.80.0120.01115.12
5.5.70.0140.01115.06
5.5.60.0130.00915.29
5.5.50.0130.00815.27
5.5.40.0100.01015.16
5.5.30.0120.00914.96
5.5.20.0130.01015.05
5.5.10.0080.01115.00
5.5.00.0100.01215.29
5.4.450.0150.02814.91
5.4.440.0160.02614.86
5.4.430.0200.02214.81
5.4.420.0160.02414.89
5.4.410.0200.01914.82
5.4.400.0220.02114.70
5.4.390.0170.02614.67
5.4.380.0200.02114.72
5.4.370.0210.02014.74
5.4.360.0250.01914.66
5.4.350.0210.02314.75
5.4.340.0260.01914.74
5.4.330.0120.00012.40
5.4.320.0210.02214.63
5.4.310.0150.02614.77
5.4.300.0200.02314.74
5.4.290.0170.02214.53
5.4.280.0220.01814.68
5.4.270.0200.02114.61
5.4.260.0240.02214.63
5.4.250.0220.02114.69
5.4.240.0200.02314.67
5.4.230.0230.01914.64
5.4.220.0260.01714.63
5.4.210.0210.01914.81
5.4.200.0170.02214.70
5.4.190.0170.02314.76
5.4.180.0190.02114.75
5.4.170.0160.02114.54
5.4.160.0180.02214.67
5.4.150.0200.02314.59
5.4.140.0240.01813.71
5.4.130.0230.02213.86
5.4.120.0210.02013.72
5.4.110.0200.02113.64
5.4.100.0160.01613.89
5.4.90.0090.02313.81
5.4.80.0150.02113.77
5.4.70.0160.02913.78
5.4.60.0120.01713.81
5.4.50.0080.02713.76
5.4.40.0060.02613.68
5.4.30.0060.02513.80
5.4.20.0140.01513.79
5.4.10.0120.00312.28
5.4.00.0030.01212.37

preferences:
49.85 ms | 401 KiB | 5 Q