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 = "é à ù è ò"; // 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", $out_iso8859);

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.0040.01116.63
8.3.50.0080.01021.14
8.3.40.0090.00618.84
8.3.30.0120.00318.61
8.3.20.0080.00020.30
8.3.10.0080.00023.70
8.3.00.0070.00317.80
8.2.180.0150.00016.38
8.2.170.0120.00622.96
8.2.160.0040.01220.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0060.00317.75
8.2.110.0030.00721.13
8.2.100.0060.00619.26
8.2.90.0030.00618.03
8.2.80.0030.00620.38
8.2.70.0050.00317.63
8.2.60.0000.00917.80
8.2.50.0080.00318.07
8.2.40.0040.00419.52
8.2.30.0050.00218.13
8.2.20.0060.00317.65
8.2.10.0070.00018.16
8.2.00.0040.00418.04
8.1.280.0130.00925.92
8.1.270.0070.00720.29
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.19
8.1.230.0120.00420.91
8.1.220.0080.00017.76
8.1.210.0050.00318.91
8.1.200.0080.00417.10
8.1.190.0000.00917.22
8.1.180.0040.00418.10
8.1.170.0000.00818.44
8.1.160.0000.00721.95
8.1.150.0000.00718.80
8.1.140.0000.00817.45
8.1.130.0050.00217.61
8.1.120.0000.00717.39
8.1.110.0030.00317.46
8.1.100.0040.00417.39
8.1.90.0000.00717.36
8.1.80.0000.00817.38
8.1.70.0030.00317.33
8.1.60.0000.00817.52
8.1.50.0050.00317.38
8.1.40.0020.00517.43
8.1.30.0000.00817.50
8.1.20.0060.00317.58
8.1.10.0000.00817.41
8.1.00.0000.00717.50
8.0.300.0000.00820.25
8.0.290.0080.00016.88
8.0.280.0030.00318.44
8.0.270.0030.00317.14
8.0.260.0000.00617.25
8.0.250.0000.00716.98
8.0.240.0100.00017.04
8.0.230.0090.00016.96
8.0.220.0070.00016.86
8.0.210.0030.00316.79
8.0.200.0030.00316.90
8.0.190.0000.00716.92
8.0.180.0040.00416.94
8.0.170.0000.00917.00
8.0.160.0080.00016.96
8.0.150.0080.00016.84
8.0.140.0050.00316.85
8.0.130.0000.00613.34
8.0.120.0030.00716.97
8.0.110.0000.00916.94
8.0.100.0030.00616.86
8.0.90.0000.00916.92
8.0.80.0070.01017.02
8.0.70.0030.00616.86
8.0.60.0060.00316.96
8.0.50.0030.00616.88
8.0.30.0080.01117.06
8.0.20.0080.01417.40
8.0.10.0090.00017.11
8.0.00.0170.01016.86
7.4.330.0060.00015.08
7.4.320.0030.00316.57
7.4.300.0060.00316.35
7.4.290.0000.00716.55
7.4.280.0030.00616.36
7.4.270.0000.00616.52
7.4.260.0030.00316.41
7.4.250.0030.00616.66
7.4.240.0030.00516.69
7.4.230.0000.00816.72
7.4.220.0140.01016.59
7.4.210.0030.01416.56
7.4.200.0060.00316.78
7.4.160.0030.01416.71
7.4.150.0160.01017.40
7.4.140.0100.01317.86
7.4.130.0060.01316.71
7.4.120.0110.01216.48
7.4.110.0120.00816.57
7.4.100.0070.01316.61
7.4.90.0080.01116.65
7.4.80.0120.00819.39
7.4.70.0100.01316.41
7.4.60.0090.00916.51
7.4.50.0080.00516.53
7.4.40.0110.01416.53
7.4.30.0180.01316.33
7.4.20.0110.00716.33
7.4.10.0080.01016.51
7.4.00.0040.01816.21
7.3.330.0000.00613.10
7.3.320.0030.00313.16
7.3.310.0050.00416.39
7.3.300.0060.00316.34
7.3.290.0070.01116.32
7.3.280.0070.01316.28
7.3.270.0090.01217.40
7.3.260.0150.01216.65
7.3.250.0120.00916.37
7.3.240.0090.01216.30
7.3.230.0100.01016.39
7.3.210.0100.01016.36
7.3.200.0120.00616.76
7.3.190.0110.00916.44
7.3.180.0080.01316.30
7.3.170.0080.01316.51
7.3.160.0140.01016.29
7.3.150.0090.01016.21
7.3.140.0090.01216.46
7.3.130.0140.01116.50
7.3.120.0070.01816.22
7.3.110.0080.01016.41
7.3.100.0030.01516.18
7.3.90.0100.01216.38
7.3.80.0080.01216.35
7.3.70.0100.00816.49
7.3.60.0060.00916.31
7.3.50.0090.00716.38
7.3.40.0090.00916.30
7.3.30.0090.00816.31
7.3.20.0120.00718.13
7.3.10.0070.01118.08
7.3.00.0100.01018.24
7.2.330.0000.02016.81
7.2.320.0160.00616.86
7.2.310.0120.01216.55
7.2.300.0150.00816.70
7.2.290.0130.01416.67
7.2.280.0000.02016.79
7.2.270.0080.01516.40
7.2.260.0110.01116.61
7.2.250.0100.01116.76
7.2.240.0100.01016.61
7.2.230.0090.01216.37
7.2.220.0060.01116.45
7.2.210.0060.01116.54
7.2.200.0090.00916.61
7.2.190.0100.00816.71
7.2.180.0100.00816.59
7.2.170.0090.00916.43
7.2.160.0100.00916.50
7.2.150.0100.00718.51
7.2.140.0090.01118.43
7.2.130.0090.01117.54
7.2.120.0020.01518.45
7.2.110.0110.00818.40
7.2.100.0060.01118.36
7.2.90.0070.01318.35
7.2.80.0080.00917.81
7.2.70.0050.01418.39
7.2.60.0070.00917.95
7.2.50.0110.00818.35
7.2.40.0080.01218.42
7.2.30.0120.00718.47
7.2.20.0100.01018.49
7.2.10.0080.01018.38
7.2.00.0120.00918.92
7.1.330.0160.01117.54
7.1.320.0110.00817.61
7.1.310.0170.00917.59
7.1.300.0110.01117.45
7.1.290.0140.00917.38
7.1.280.0140.01017.56
7.1.270.0150.00817.39
7.1.260.0120.01417.42
7.1.250.0130.01217.49
7.1.240.0130.00717.44
7.1.230.0130.01017.36
7.1.220.0130.00717.31
7.1.210.0150.00817.46
7.1.200.0110.00916.83
7.1.190.0090.01417.46
7.1.180.0130.01017.48
7.1.170.0130.01117.45
7.1.160.0090.01517.35
7.1.150.0070.01817.49
7.1.140.0150.01017.47
7.1.130.0140.00717.39
7.1.120.0090.01517.38
7.1.110.0130.01317.60
7.1.100.0090.01017.67
7.1.90.0140.00917.36
7.1.80.0140.00917.35
7.1.70.0090.01217.32
7.1.60.0170.01017.97
7.1.50.0100.01217.33
7.1.40.0130.01317.55
7.1.30.0120.01017.54
7.1.20.0110.00917.49
7.1.10.0130.00817.45
7.1.00.0110.03219.09
7.0.330.0150.01217.04
7.0.320.0070.01417.12
7.0.310.0140.00816.99
7.0.300.0160.00717.16
7.0.290.0110.01317.15
7.0.280.0150.00817.10
7.0.270.0100.01217.21
7.0.260.0110.01117.06
7.0.250.0100.01317.12
7.0.240.0100.01417.09
7.0.230.0150.01117.19
7.0.220.0140.00917.06
7.0.210.0160.01017.13
7.0.200.0140.01217.03
7.0.190.0120.01117.19
7.0.180.0100.01217.25
7.0.170.0170.00617.19
7.0.160.0140.00917.04
7.0.150.0100.01517.08
7.0.140.0120.01017.28
7.0.130.0110.01117.02
7.0.120.0140.01017.24
7.0.110.0130.01117.15
7.0.100.0190.00317.10
7.0.90.0090.01117.08
7.0.80.0080.01516.97
7.0.70.0060.01617.00
7.0.60.0100.03518.07
7.0.50.0110.02617.41
7.0.40.0090.02617.42
7.0.30.0140.02617.59
7.0.20.0140.03717.43
7.0.10.0100.02217.54
7.0.00.0060.02417.48
5.6.400.0150.00715.84
5.6.390.0100.01616.06
5.6.380.0120.01215.99
5.6.370.0140.01015.98
5.6.360.0170.00616.00
5.6.350.0130.01216.05
5.6.340.0150.01016.06
5.6.330.0130.00916.04
5.6.320.0150.00815.93
5.6.310.0110.01515.81
5.6.300.0150.00916.00
5.6.290.0110.01315.99
5.6.280.0080.01917.59
5.6.270.0100.01416.09
5.6.260.0140.01016.02
5.6.250.0090.01216.06
5.6.240.0120.01215.83
5.6.230.0130.01016.07
5.6.220.0110.01315.99
5.6.210.0140.03417.44
5.6.200.0150.02616.72
5.6.190.0080.03917.60
5.6.180.0850.01817.55
5.6.170.0150.03817.64
5.6.160.0080.02417.45
5.6.150.0110.01816.70
5.6.140.0080.02816.85
5.6.130.0130.02316.81
5.6.120.0120.01917.67
5.6.110.0090.04017.68
5.6.100.0130.03117.70
5.6.90.0080.04017.65
5.6.80.0100.03017.48
5.6.70.1530.02117.50
5.6.60.0110.01115.95
5.6.50.0090.01315.87
5.6.40.0130.01015.86
5.6.30.0180.00715.78
5.6.20.0160.00915.93
5.6.10.0100.01115.92
5.6.00.0110.01215.88
5.5.380.0120.01215.83
5.5.370.0110.01216.06
5.5.360.0080.01615.92
5.5.350.0130.03117.42
5.5.340.0100.03416.68
5.5.330.0110.03317.43
5.5.320.0220.03217.44
5.5.310.0200.02917.38
5.5.300.0110.03316.72
5.5.290.0150.03216.60
5.5.280.0150.03217.56
5.5.270.0150.03217.55
5.5.260.0110.03517.59
5.5.250.0140.02617.43
5.5.240.0200.02917.32
5.5.230.0090.01315.82
5.5.220.0130.00915.85
5.5.210.0130.00915.91
5.5.200.0120.01515.79
5.5.190.0120.01215.77
5.5.180.0170.00515.86
5.5.170.0150.01015.91
5.5.160.0160.00615.78
5.5.150.0100.01315.87
5.5.140.0130.01215.75
5.5.130.0150.00915.76
5.5.120.0130.01015.78
5.5.110.0130.00915.85
5.5.100.0140.01315.92
5.5.90.0110.01415.80
5.5.80.0090.01415.88
5.5.70.0140.01015.90
5.5.60.0100.01415.87
5.5.50.0140.00715.67
5.5.40.0140.00915.90
5.5.30.0110.00915.91
5.5.20.0130.01315.99
5.5.10.0090.01415.87
5.5.00.0100.01015.68
5.4.450.0330.02315.22
5.4.440.0260.02515.28
5.4.430.0250.02515.35
5.4.420.0300.02415.28
5.4.410.0290.02315.27
5.4.400.0310.02615.23
5.4.390.0330.02415.20
5.4.380.0320.02715.26
5.4.370.0340.03015.25
5.4.360.0340.02615.27
5.4.350.0360.02615.20
5.4.340.0310.02615.32
5.4.330.0070.00913.16
5.4.320.0270.02715.21
5.4.310.0340.02215.16
5.4.300.0310.02515.19
5.4.290.0350.02115.05
5.4.280.0310.02415.16
5.4.270.0300.02015.20
5.4.260.0280.01715.16
5.4.250.0260.02515.10
5.4.240.0250.02315.21
5.4.230.0270.02315.19
5.4.220.0260.02315.17
5.4.210.0220.02715.17
5.4.200.0260.02415.14
5.4.190.0310.01815.23
5.4.180.0290.02215.30
5.4.170.0290.02115.24
5.4.160.0260.02515.17
5.4.150.0230.02415.15
5.4.140.0220.02514.35
5.4.130.0220.02214.32
5.4.120.0220.02314.39
5.4.110.0220.02514.34
5.4.100.0230.02214.47
5.4.90.0250.01914.38
5.4.80.0280.01914.41
5.4.70.0130.02914.24
5.4.60.0140.02514.32
5.4.50.0080.01714.35
5.4.40.0090.02014.40
5.4.30.0090.02814.30
5.4.20.0130.01614.33
5.4.10.0060.00913.21
5.4.00.0080.00513.25

preferences:
52.69 ms | 401 KiB | 5 Q