3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Coss&eacute"; echo utf8_decode("Coss&eacute"); echo iconv("ASCII","UTF-8//TRANSLIT","Coss&eacute"); $in_utf8encoded = "é à ù è ò Cossé René"; // first you need the convert the string to the charset you want... $in_iso8859encoded = iconv("UTF-8", "ISO-8859-1", $in_utf8encoded); // ...in order to make htmlentities work with the same charset $out_iso8859= htmlentities($in_iso8859encoded, ENT_COMPAT, "ISO-8859-1"); // then only to display in your page, revert it back to utf-8 echo iconv("ISO-8859-1", "UTF-8", $in_iso8859encoded); echo $str = 'Coss&eacute;'; echo utf8_decode($str); echo iconv("ASCII","UTF-8//TRANSLIT",$str); echo $str = iconv('UTF-8', 'ASCII//TRANSLIT', $str); // ASA

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.0160.00016.59
8.3.50.0160.00421.19
8.3.40.0070.00718.79
8.3.30.0070.00718.57
8.3.20.0050.00220.38
8.3.10.0080.00023.53
8.3.00.0080.00019.79
8.2.180.0060.00916.75
8.2.170.0070.01122.96
8.2.160.0130.00720.22
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00017.63
8.2.110.0070.00422.13
8.2.100.0080.00317.63
8.2.90.0030.00519.40
8.2.80.0090.00017.97
8.2.70.0040.00417.38
8.2.60.0050.00517.79
8.2.50.0090.00018.07
8.2.40.0000.00919.38
8.2.30.0040.00419.77
8.2.20.0080.00017.81
8.2.10.0000.00717.96
8.2.00.0050.00317.98
8.1.280.0070.00725.92
8.1.270.0080.00022.06
8.1.260.0000.00826.35
8.1.250.0020.00528.09
8.1.240.0100.00722.61
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00618.52
8.1.160.0040.00421.88
8.1.150.0000.00718.84
8.1.140.0030.00517.27
8.1.130.0070.00017.55
8.1.120.0000.00817.34
8.1.110.0000.00917.42
8.1.100.0000.00817.30
8.1.90.0030.00417.30
8.1.80.0000.00717.39
8.1.70.0030.00317.42
8.1.60.0030.00617.40
8.1.50.0060.00317.46
8.1.40.0030.00617.48
8.1.30.0040.00417.60
8.1.20.0000.00817.50
8.1.10.0000.00717.50
8.1.00.0000.00917.37
8.0.300.0000.00718.77
8.0.290.0000.01116.75
8.0.280.0030.00318.33
8.0.270.0030.00317.23
8.0.260.0000.00717.21
8.0.250.0040.00416.89
8.0.240.0030.00316.91
8.0.230.0040.00716.93
8.0.220.0000.00716.92
8.0.210.0080.00016.91
8.0.200.0000.00616.98
8.0.190.0050.00216.93
8.0.180.0040.00716.98
8.0.170.0000.00816.80
8.0.160.0080.00016.98
8.0.150.0040.00416.79
8.0.140.0000.00716.77
8.0.130.0000.00613.37
8.0.120.0070.00316.91
8.0.110.0000.00916.95
8.0.100.0050.00516.96
8.0.90.0090.00016.91
8.0.80.0040.01516.95
8.0.70.0000.00916.87
8.0.60.0060.00316.80
8.0.50.0030.00616.79
8.0.30.0140.00917.29
8.0.20.0110.01117.40
8.0.10.0030.00617.22
8.0.00.0110.01316.77
7.4.330.0020.00215.08
7.4.320.0060.00016.42
7.4.300.0040.00416.45
7.4.290.0030.00316.50
7.4.280.0090.00316.45
7.4.270.0040.00416.48
7.4.260.0070.00016.39
7.4.250.0000.00916.66
7.4.240.0030.00616.63
7.4.230.0030.00616.46
7.4.220.0070.01516.58
7.4.210.0110.01416.71
7.4.200.0030.00616.50
7.4.160.0140.00716.82
7.4.150.0100.02017.40
7.4.140.0190.00917.86
7.4.130.0110.01116.65
7.4.120.0110.01016.71
7.4.110.0150.00616.48
7.4.100.0140.01416.57
7.4.90.0060.01516.55
7.4.80.0130.01319.39
7.4.70.0120.01316.34
7.4.60.0090.01116.49
7.4.50.0070.00716.22
7.4.40.0100.01116.17
7.4.30.0120.01216.04
7.4.20.0160.00615.63
7.4.10.0100.01316.03
7.4.00.0110.01015.67
7.3.330.0000.00513.13
7.3.320.0030.00412.98
7.3.310.0060.00316.16
7.3.300.0000.00816.30
7.3.290.0110.00916.30
7.3.280.0070.01516.29
7.3.270.0030.01717.40
7.3.260.0040.01516.45
7.3.250.0080.01616.41
7.3.240.0090.01216.45
7.3.230.0100.01716.41
7.3.210.0170.00716.43
7.3.200.0100.01316.43
7.3.190.0030.01916.23
7.3.180.0120.01216.08
7.3.170.0070.01416.21
7.3.160.0050.01716.14
7.3.150.0070.01515.86
7.3.140.0140.00715.93
7.3.130.0040.02315.85
7.3.120.0130.00915.96
7.3.110.0160.00615.87
7.3.100.0110.01115.72
7.3.90.0090.01315.94
7.3.80.0030.01815.76
7.3.70.0120.01015.93
7.3.60.0070.01515.71
7.3.50.0110.01115.83
7.3.40.0120.00915.79
7.3.30.0130.01315.79
7.3.20.0070.01316.04
7.3.10.0110.00816.41
7.3.00.0030.01616.34
7.2.330.0210.00716.71
7.2.320.0120.01916.83
7.2.310.0110.01016.46
7.2.300.0100.01016.35
7.2.290.0030.01816.59
7.2.280.0120.01216.23
7.2.270.0140.01116.20
7.2.260.0200.01016.22
7.2.250.0110.01116.35
7.2.240.0150.00816.08
7.2.230.0100.01316.06
7.2.220.0140.00816.39
7.2.210.0190.00316.15
7.2.200.0070.01416.05
7.2.190.0110.01115.97
7.2.180.0090.01316.07
7.2.170.0120.00916.30
7.2.160.0120.01216.14
7.2.150.0100.01016.29
7.2.140.0040.01816.43
7.2.130.0140.00616.69
7.2.120.0090.01316.85
7.2.110.0120.01216.74
7.2.100.0110.00916.74
7.2.90.0060.01316.51
7.2.80.0040.01316.72
7.2.70.0140.00816.81
7.2.60.0080.01116.63
7.2.50.0110.01016.53
7.2.40.0100.01216.72
7.2.30.0110.01316.64
7.2.20.0070.01216.59
7.2.10.0060.01516.58
7.2.00.0070.01117.60
7.1.330.0260.00815.70
7.1.320.0110.01815.69
7.1.310.0230.00815.84
7.1.300.0180.01015.77
7.1.290.0200.01115.78
7.1.280.0160.01315.68
7.1.270.0220.00615.54
7.1.260.0170.01315.78
7.1.250.0110.00715.70
7.1.240.0040.01315.90
7.1.230.0130.00615.49
7.1.220.0110.01515.60
7.1.210.0700.00715.50
7.1.200.0110.01115.78
7.1.190.0140.01415.79
7.1.180.0140.01015.63
7.1.170.0160.00315.63
7.1.160.0070.01415.68
7.1.150.0720.01315.58
7.1.140.0060.01215.68
7.1.130.0200.00915.63
7.1.120.0230.01115.73
7.1.110.0160.01315.73
7.1.100.0090.01416.98
7.1.90.0260.01315.82
7.1.80.0180.01217.45
7.1.70.0090.01617.33
7.1.60.0160.01318.28
7.1.50.0240.01226.10
7.1.40.0220.01417.34
7.1.30.0100.01017.32
7.1.20.0090.00917.45
7.1.10.0320.01017.43
7.1.00.0080.04920.00
7.0.330.0230.00815.28
7.0.320.0040.01415.34
7.0.310.0200.00915.38
7.0.300.0130.01315.40
7.0.290.0040.01815.54
7.0.280.0040.01515.29
7.0.270.0080.02115.28
7.0.260.0190.01115.27
7.0.250.0160.01315.51
7.0.240.0230.00915.52
7.0.230.0320.01617.24
7.0.220.0150.01517.16
7.0.210.0170.01417.14
7.0.200.0200.00617.07
7.0.190.0210.01317.17
7.0.180.0220.00817.26
7.0.170.0110.00816.98
7.0.160.0300.01217.17
7.0.150.0270.00317.20
7.0.140.0230.00817.22
7.0.130.0140.01417.16
7.0.120.0180.01117.12
7.0.110.0160.01217.18
7.0.100.0110.01917.14
7.0.90.0280.01117.07
7.0.80.0240.01515.50
7.0.70.0170.00915.46
7.0.60.0060.04818.56
7.0.50.0070.02717.49
7.0.40.0080.02518.80
7.0.30.0200.03518.66
7.0.20.0280.03918.72
7.0.10.0090.03418.78
7.0.00.0080.02818.71
5.6.400.0070.01616.02
5.6.390.0060.01416.12
5.6.380.0040.01516.13
5.6.370.0190.00616.21
5.6.360.0190.00915.98
5.6.350.0070.01416.11
5.6.340.0030.01715.70
5.6.330.0220.01315.85
5.6.320.0260.00415.77
5.6.310.0250.00816.06
5.6.300.0190.01115.91
5.6.290.0160.01315.81
5.6.280.0120.04218.76
5.6.270.0160.01216.13
5.6.260.0170.01216.19
5.6.250.0170.01316.13
5.6.240.0250.00615.91
5.6.230.0070.01416.17
5.6.220.0140.01715.92
5.6.210.0030.05418.30
5.6.200.0140.04517.18
5.6.190.0100.03818.37
5.6.180.0050.02918.21
5.6.170.0220.02918.23
5.6.160.0120.04718.27
5.6.150.0030.04717.14
5.6.140.0060.02617.20
5.6.130.0090.04117.19
5.6.120.0100.04718.54
5.6.110.0080.03118.65
5.6.100.0090.03518.48
5.6.90.0080.04318.60
5.6.80.0080.04818.22
5.6.70.2250.02818.17
5.6.60.0120.01615.97
5.6.50.0210.01815.78
5.6.40.0090.01115.70
5.6.30.0100.01216.02
5.6.20.0030.01715.83
5.6.10.0070.01416.05
5.6.00.0110.00915.73
5.5.380.0230.00815.79
5.5.370.0110.01115.76
5.5.360.0190.01415.70
5.5.350.0200.04218.13
5.5.340.0090.02917.03
5.5.330.0120.03118.20
5.5.320.0070.02718.19
5.5.310.0120.03218.21
5.5.300.0130.02817.11
5.5.290.0140.03916.97
5.5.280.0100.04618.51
5.5.270.0070.04218.46
5.5.260.0100.03718.55
5.5.250.0040.03218.29
5.5.240.0140.04518.06
5.5.230.0230.00615.82
5.5.220.0190.01016.02
5.5.210.0190.01315.86
5.5.200.0120.00916.00
5.5.190.0080.01415.95
5.5.180.0120.00915.88
5.5.170.0070.01415.82
5.5.160.0060.01316.04
5.5.150.0110.01415.88
5.5.140.0110.01416.04
5.5.130.0120.00915.95
5.5.120.0040.02115.82
5.5.110.0060.01815.90
5.5.100.0000.02116.08
5.5.90.0070.01315.82
5.5.80.0090.01215.82
5.5.70.0100.02016.09
5.5.60.0070.01315.95
5.5.50.0200.01116.02
5.5.40.0110.02115.87
5.5.30.0230.01015.93
5.5.20.0140.01415.61
5.5.10.0170.01415.99
5.5.00.0150.01515.93
5.4.450.0440.03616.05
5.4.440.0570.03116.02
5.4.430.0370.03916.10
5.4.420.0500.03016.00
5.4.410.0490.04115.96
5.4.400.0530.03415.69
5.4.390.0650.04015.86
5.4.380.0600.02515.83
5.4.370.0500.03315.81
5.4.360.0420.03215.92
5.4.350.0450.04015.79
5.4.340.0470.03015.81
5.4.330.0070.00612.32
5.4.320.0460.03915.86
5.4.310.0400.04315.96
5.4.300.0530.03615.66
5.4.290.0440.03115.81
5.4.280.0410.03115.89
5.4.270.0450.03115.83
5.4.260.0310.03615.95
5.4.250.0420.03015.75
5.4.240.0420.03615.77
5.4.230.0460.04115.93
5.4.220.0460.04316.01
5.4.210.0460.03615.85
5.4.200.0500.02815.64
5.4.190.0420.03315.71
5.4.180.0490.03315.63
5.4.170.0580.03815.79
5.4.160.0540.03715.83
5.4.150.0310.03115.82
5.4.140.0130.03414.46
5.4.130.0460.03114.52
5.4.120.0560.03314.58
5.4.110.0500.02914.47
5.4.100.0380.02714.51
5.4.90.0400.02914.55
5.4.80.0120.03114.62
5.4.70.0180.02514.43
5.4.60.0240.03914.46
5.4.50.0120.03814.57
5.4.40.0060.03914.57
5.4.30.0080.02714.53
5.4.20.0080.02714.49
5.4.10.0100.01012.51
5.4.00.0130.00712.50

preferences:
54.15 ms | 401 KiB | 5 Q