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", $in_iso8859encoded);

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.0110.00416.47
8.3.50.0090.00616.35
8.3.40.0090.00618.68
8.3.30.0120.00318.89
8.3.20.0000.00720.04
8.3.10.0040.00423.63
8.3.00.0090.00019.56
8.2.180.0090.00616.75
8.2.170.0140.00322.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00317.63
8.2.110.0000.01022.20
8.2.100.0110.00017.75
8.2.90.0030.00519.26
8.2.80.0000.00817.97
8.2.70.0050.00317.61
8.2.60.0030.00817.93
8.2.50.0040.00818.07
8.2.40.0050.00319.52
8.2.30.0050.00217.93
8.2.20.0000.00817.62
8.2.10.0000.00718.04
8.2.00.0020.00517.97
8.1.280.0070.01325.92
8.1.270.0100.01020.26
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00422.47
8.1.230.0100.00317.42
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00717.22
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0050.00218.50
8.1.160.0040.00421.86
8.1.150.0000.00718.69
8.1.140.0080.00017.49
8.1.130.0000.00717.54
8.1.120.0000.00817.45
8.1.110.0040.00417.39
8.1.100.0020.00517.39
8.1.90.0040.00417.36
8.1.80.0040.00417.36
8.1.70.0000.00717.41
8.1.60.0040.00417.49
8.1.50.0060.00317.37
8.1.40.0090.00017.46
8.1.30.0050.00317.56
8.1.20.0000.00817.60
8.1.10.0070.00017.49
8.1.00.0030.00517.48
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.39
8.0.270.0030.00317.25
8.0.260.0030.00317.16
8.0.250.0040.00417.00
8.0.240.0030.00617.07
8.0.230.0080.00016.81
8.0.220.0000.00616.85
8.0.210.0030.00316.83
8.0.200.0030.00316.80
8.0.190.0030.00516.95
8.0.180.0000.00816.83
8.0.170.0000.00816.88
8.0.160.0030.00316.91
8.0.150.0040.00416.75
8.0.140.0050.00316.85
8.0.130.0000.00613.27
8.0.120.0070.00317.01
8.0.110.0030.00616.98
8.0.100.0030.00616.84
8.0.90.0090.00017.02
8.0.80.0090.00817.02
8.0.70.0030.00616.85
8.0.60.0040.00416.95
8.0.50.0090.00016.86
8.0.30.0120.00717.11
8.0.20.0110.01117.40
8.0.10.0000.00917.11
8.0.00.0100.01316.93
7.4.330.0000.00615.08
7.4.320.0040.00416.41
7.4.300.0030.00616.48
7.4.290.0070.00016.50
7.4.280.0040.00416.52
7.4.270.0040.00416.36
7.4.260.0030.00316.36
7.4.250.0040.00716.46
7.4.240.0020.00616.61
7.4.230.0030.00616.70
7.4.220.0090.01616.79
7.4.210.0070.01116.66
7.4.200.0030.00616.80
7.4.160.0160.00316.59
7.4.150.0140.00717.40
7.4.140.0130.00917.86
7.4.130.0100.01116.60
7.4.120.0080.01116.63
7.4.110.0100.01016.53
7.4.100.0060.01316.54
7.4.90.0090.01216.57
7.4.80.0210.00019.39
7.4.70.0090.01416.47
7.4.60.0120.00916.58
7.4.50.0090.01016.47
7.4.40.0090.01116.54
7.4.30.0080.01216.35
7.4.20.0070.01116.44
7.4.10.0100.01016.06
7.4.00.0110.00915.62
7.3.330.0000.00513.01
7.3.320.0000.00613.00
7.3.310.0040.00416.26
7.3.300.0030.00716.31
7.3.290.0050.01216.30
7.3.280.0070.01216.31
7.3.270.0180.00617.40
7.3.260.0100.01016.50
7.3.250.0120.01016.39
7.3.240.0070.01116.61
7.3.230.0140.00716.54
7.3.210.0130.00616.48
7.3.200.0070.01116.26
7.3.190.0130.01016.29
7.3.180.0110.00916.34
7.3.170.0110.01116.43
7.3.160.0130.00716.34
7.3.150.0210.00416.18
7.3.140.0040.01616.07
7.3.130.0040.01416.55
7.3.120.0060.01315.38
7.3.110.0080.01015.43
7.3.100.0100.00815.52
7.3.90.0060.01215.61
7.3.80.0110.00715.46
7.3.70.0070.01015.53
7.3.60.0080.01215.46
7.3.50.0090.00915.41
7.3.40.0080.00915.39
7.3.30.0090.01315.45
7.3.20.0050.01317.40
7.3.10.0080.01117.21
7.3.00.0120.00517.38
7.2.330.0140.00716.52
7.2.320.0100.01016.69
7.2.310.0140.00716.50
7.2.300.0150.01016.40
7.2.290.0130.01016.60
7.2.280.0140.00616.38
7.2.270.0070.01416.63
7.2.260.0030.01716.47
7.2.250.0090.00916.20
7.2.240.0080.01115.85
7.2.230.0050.01315.78
7.2.220.0070.01015.83
7.2.210.0080.01015.77
7.2.200.0100.01115.75
7.2.190.0090.01015.63
7.2.180.0050.01415.83
7.2.170.0050.01415.91
7.2.160.0060.01215.68
7.2.150.0040.01517.68
7.2.140.0030.01517.63
7.2.130.0060.01017.75
7.2.120.0030.01517.74
7.2.110.0140.00617.58
7.2.100.0070.01117.57
7.2.90.0080.01017.64
7.2.80.0050.01317.71
7.2.70.0070.00917.79
7.2.60.0070.01117.35
7.2.50.0100.00817.62
7.2.40.0060.01017.67
7.2.30.0070.01617.87
7.2.20.0110.01117.72
7.2.10.0080.01117.53
7.2.00.0060.01118.30
7.1.330.0190.00616.63
7.1.320.0110.01216.64
7.1.310.0130.01216.48
7.1.300.0140.01116.67
7.1.290.0130.01016.59
7.1.280.0150.01116.77
7.1.270.0130.01116.48
7.1.260.0130.01116.67
7.1.250.0140.00616.55
7.1.240.0200.01017.39
7.1.230.0240.00917.45
7.1.220.0200.01017.51
7.1.210.0230.00717.55
7.1.200.0160.00916.65
7.1.190.0250.00517.30
7.1.180.0220.00917.35
7.1.170.0180.01417.36
7.1.160.0290.00317.39
7.1.150.0220.00917.41
7.1.140.0270.01017.50
7.1.130.0210.02117.53
7.1.120.0200.01217.33
7.1.110.0250.01117.43
7.1.100.0150.01017.87
7.1.90.0220.00717.65
7.1.80.0220.00717.54
7.1.70.0090.01117.44
7.1.60.0150.01718.33
7.1.50.0150.01617.30
7.1.40.0250.00617.51
7.1.30.0260.01017.27
7.1.20.0190.02017.55
7.1.10.0210.01117.43
7.1.00.0150.04020.01
7.0.330.0200.00717.14
7.0.320.0200.01117.18
7.0.310.0180.01117.06
7.0.300.0150.01817.24
7.0.290.0160.01617.07
7.0.280.0110.02617.06
7.0.270.0190.01217.16
7.0.260.0300.00317.10
7.0.250.0180.01217.07
7.0.240.0170.01217.16
7.0.230.0160.01216.96
7.0.220.0120.01917.07
7.0.210.0210.01317.20
7.0.200.0190.00916.70
7.0.190.0210.01117.08
7.0.180.0270.00817.11
7.0.170.0210.01517.16
7.0.160.0250.01217.10
7.0.150.0230.01017.24
7.0.140.0190.01716.94
7.0.130.0180.01117.11
7.0.120.0220.01017.01
7.0.110.0180.01217.23
7.0.100.0220.01117.29
7.0.90.0210.01117.03
7.0.80.0160.01217.04
7.0.70.0200.01016.91
7.0.60.0150.04918.50
7.0.50.0120.04717.46
7.0.40.0180.04318.69
7.0.30.0370.03418.65
7.0.20.0260.03718.70
7.0.10.0110.04818.78
7.0.00.0190.04318.66
5.6.400.0230.01216.31
5.6.390.0160.01316.31
5.6.380.0230.01216.24
5.6.370.0100.02116.00
5.6.360.0210.01715.95
5.6.350.0240.01316.11
5.6.340.0290.00816.00
5.6.330.0200.01215.84
5.6.320.0190.01316.05
5.6.310.0200.02116.11
5.6.300.0200.01215.98
5.6.290.0190.01315.82
5.6.280.0150.04218.57
5.6.270.0270.00615.93
5.6.260.0190.01316.19
5.6.250.0150.01916.09
5.6.240.0210.01215.98
5.6.230.0210.00816.25
5.6.220.0190.01316.28
5.6.210.0110.02918.27
5.6.200.0070.05517.22
5.6.190.0160.04518.33
5.6.180.0260.04418.28
5.6.170.0320.04318.23
5.6.160.0160.04718.19
5.6.150.0140.05017.04
5.6.140.0130.04817.10
5.6.130.0100.02817.12
5.6.120.0130.05118.46
5.6.110.0160.02418.47
5.6.100.0180.04318.55
5.6.90.0170.04818.47
5.6.80.0130.04618.27
5.6.70.0200.01716.02
5.6.60.0220.00915.95
5.6.50.0190.01315.90
5.6.40.0190.01015.71
5.6.30.0110.01716.02
5.6.20.0260.00715.97
5.6.10.0180.01515.74
5.6.00.0230.01115.80
5.5.380.0200.01415.84
5.5.370.0200.01316.01
5.5.360.0280.00315.93
5.5.350.0280.04218.38
5.5.340.0160.04616.91
5.5.330.0170.03818.26
5.5.320.0160.02318.17
5.5.310.0250.02718.14
5.5.300.0160.04317.11
5.5.290.0130.04517.09
5.5.280.0150.04818.38
5.5.270.0140.04718.39
5.5.260.0150.04718.35
5.5.250.0150.04818.27
5.5.240.0100.04718.08
5.5.230.0210.00915.92
5.5.220.0230.00715.80
5.5.210.0250.00615.89
5.5.200.0190.01315.81
5.5.190.0260.00315.63
5.5.180.0200.01015.92
5.5.170.0170.01215.78
5.5.160.0180.01115.91
5.5.150.0240.00616.01
5.5.140.0200.01716.00
5.5.130.0170.01415.75
5.5.120.0180.01115.79
5.5.110.0170.01315.79
5.5.100.0380.00815.79
5.5.90.0160.01616.13
5.5.80.0140.02315.97
5.5.70.0160.01615.65
5.5.60.0260.00715.87
5.5.50.0180.01215.80
5.5.40.0230.01015.83
5.5.30.0170.02015.56
5.5.20.0190.01115.85
5.5.10.0230.01015.89
5.5.00.0280.00315.98
5.4.450.0360.03616.09
5.4.440.0410.03016.04
5.4.430.0380.03115.99
5.4.420.0470.02315.98
5.4.410.0430.02916.05
5.4.400.0460.03215.83
5.4.390.0470.03215.93
5.4.380.0370.03016.00
5.4.370.0390.03015.97
5.4.360.0470.03115.94
5.4.350.0410.02615.87
5.4.340.0380.03315.89
5.4.330.0180.00712.46
5.4.320.0370.03515.82
5.4.310.0380.02915.92
5.4.300.0430.02615.76
5.4.290.0480.03315.77
5.4.280.0500.02715.77
5.4.270.0470.02815.85
5.4.260.0580.03515.92
5.4.250.0390.03015.71
5.4.240.0390.03015.77
5.4.230.0400.03015.78
5.4.220.0400.03115.78
5.4.210.0360.03115.84
5.4.200.0340.03515.87
5.4.190.0450.03215.71
5.4.180.0510.02615.79
5.4.170.0450.03215.99
5.4.160.0360.03115.89
5.4.150.0400.02915.68
5.4.140.0510.02514.53
5.4.130.0440.03214.54
5.4.120.0490.02714.41
5.4.110.0450.03114.41
5.4.100.0470.02814.57
5.4.90.0510.02514.64
5.4.80.0420.03114.52
5.4.70.0120.02314.57
5.4.60.0180.03614.50
5.4.50.0080.02914.47
5.4.40.0200.02014.58
5.4.30.0150.03414.59
5.4.20.0180.01714.50
5.4.10.0220.02414.63
5.4.00.0140.00712.37

preferences:
59.46 ms | 401 KiB | 5 Q