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&eacute"; // 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.0120.00316.63
8.3.50.0070.00716.48
8.3.40.0060.00918.67
8.3.30.0060.00918.67
8.3.20.0000.00720.33
8.3.10.0050.00323.48
8.3.00.0090.00017.80
8.2.180.0120.00316.63
8.2.170.0100.01022.96
8.2.160.0070.00720.21
8.2.150.0160.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00317.50
8.2.110.0070.00322.07
8.2.100.0060.00617.63
8.2.90.0080.00018.91
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0070.00317.80
8.2.50.0030.00518.07
8.2.40.0070.00019.38
8.2.30.0060.00318.00
8.2.20.0080.00017.71
8.2.10.0000.00717.99
8.2.00.0030.00518.11
8.1.280.0150.00025.92
8.1.270.0060.00320.38
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0120.00017.42
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00917.13
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0080.00018.54
8.1.160.0070.00021.95
8.1.150.0050.00218.88
8.1.140.0030.00617.24
8.1.130.0040.00417.58
8.1.120.0000.00717.45
8.1.110.0050.00317.34
8.1.100.0000.00817.22
8.1.90.0070.00017.41
8.1.80.0000.00717.39
8.1.70.0070.00017.43
8.1.60.0030.00617.51
8.1.50.0090.00017.35
8.1.40.0000.00817.47
8.1.30.0080.00017.46
8.1.20.0040.00417.57
8.1.10.0050.00317.44
8.1.00.0040.00417.34
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0080.00018.42
8.0.270.0030.00317.28
8.0.260.0060.00017.23
8.0.250.0030.00316.87
8.0.240.0060.00317.02
8.0.230.0030.00616.83
8.0.220.0000.00716.77
8.0.210.0030.00316.79
8.0.200.0000.00616.79
8.0.190.0050.00316.97
8.0.180.0000.00716.95
8.0.170.0050.00316.96
8.0.160.0030.00516.93
8.0.150.0040.00416.81
8.0.140.0030.00416.84
8.0.130.0050.00013.27
8.0.120.0000.01016.91
8.0.110.0030.00616.89
8.0.100.0090.00016.88
8.0.90.0030.00616.97
8.0.80.0080.00816.94
8.0.70.0000.00916.84
8.0.60.0000.00916.87
8.0.50.0060.00316.89
8.0.30.0070.01417.03
8.0.20.0150.00817.40
8.0.10.0030.00616.88
8.0.00.0090.01516.79
7.4.330.0050.00015.08
7.4.320.0080.00316.36
7.4.300.0060.00316.45
7.4.290.0070.00016.55
7.4.280.0080.00016.42
7.4.270.0000.00816.32
7.4.260.0050.00216.31
7.4.250.0060.00316.58
7.4.240.0000.00916.60
7.4.230.0030.00616.51
7.4.220.0100.01916.58
7.4.210.0030.01916.66
7.4.200.0030.00616.53
7.4.160.0000.01816.67
7.4.150.0140.00717.40
7.4.140.0140.01117.86
7.4.130.0060.01316.64
7.4.120.0140.00616.71
7.4.110.0090.01116.70
7.4.100.0100.01716.46
7.4.90.0100.01016.70
7.4.80.0070.01619.39
7.4.70.0150.00516.35
7.4.60.0050.01416.61
7.4.50.0100.00616.61
7.4.40.0080.01516.62
7.4.30.0160.00716.29
7.4.20.0070.01716.21
7.4.10.0100.01015.72
7.4.00.0070.01215.41
7.3.330.0050.00013.01
7.3.320.0000.00513.23
7.3.310.0000.00916.26
7.3.300.0040.00416.10
7.3.290.0050.01516.27
7.3.280.0100.01016.32
7.3.270.0090.01217.40
7.3.260.0130.00616.55
7.3.250.0140.00816.39
7.3.240.0090.00916.50
7.3.230.0060.01316.39
7.3.210.0200.00016.53
7.3.200.0060.01316.29
7.3.190.0120.00816.44
7.3.180.0110.00916.29
7.3.170.0110.00816.36
7.3.160.0140.00916.32
7.3.150.0040.01716.54
7.3.140.0130.00616.28
7.3.130.0150.00615.73
7.3.120.0080.01215.25
7.3.110.0090.01215.43
7.3.100.0080.01215.44
7.3.90.0090.00715.42
7.3.80.0070.01215.34
7.3.70.0070.01215.31
7.3.60.0100.00915.20
7.3.50.0070.00815.25
7.3.40.0100.00715.33
7.3.30.0120.00915.24
7.3.20.0070.01217.19
7.3.10.0090.01017.19
7.3.00.0080.00817.04
7.2.330.0060.01316.46
7.2.320.0090.01216.56
7.2.310.0120.00916.53
7.2.300.0120.01116.46
7.2.290.0140.01116.69
7.2.280.0160.00716.35
7.2.270.0130.01016.24
7.2.260.0140.00615.80
7.2.250.0040.01815.51
7.2.240.0120.00815.49
7.2.230.0120.00715.49
7.2.220.0070.01215.57
7.2.210.0040.01315.52
7.2.200.0070.01215.64
7.2.190.0080.00815.55
7.2.180.0050.01115.49
7.2.170.0080.01215.50
7.2.160.0060.01215.47
7.2.150.0070.00817.32
7.2.140.0070.01017.50
7.2.130.0020.01417.42
7.2.120.0080.00917.37
7.2.110.0070.00917.33
7.2.100.0070.01117.37
7.2.90.0080.01017.24
7.2.80.0040.01417.39
7.2.70.0100.00617.39
7.2.60.0060.01217.13
7.2.50.0090.00917.46
7.2.40.0100.00917.47
7.2.30.0090.00717.51
7.2.20.0060.01017.41
7.2.10.0080.00917.44
7.2.00.0080.00817.91
7.1.330.0150.00816.49
7.1.320.0140.00716.36
7.1.310.0110.00916.42
7.1.300.0100.00916.34
7.1.290.0110.00716.26
7.1.280.0120.01116.46
7.1.270.0090.01116.39
7.1.260.0110.00916.36
7.1.250.0120.01116.32
7.1.240.0070.01116.23
7.1.230.0140.00816.40
7.1.220.0070.01116.35
7.1.210.0100.01116.25
7.1.200.0100.00916.17
7.1.190.0070.01116.24
7.1.180.0090.01416.31
7.1.170.0100.01216.38
7.1.160.0090.01216.45
7.1.150.0120.00916.32
7.1.140.0110.00716.28
7.1.130.0090.01216.27
7.1.120.0110.01016.37
7.1.110.0130.00616.34
7.1.100.0110.00716.76
7.1.90.0090.01116.28
7.1.80.0120.00616.27
7.1.70.0080.01116.58
7.1.60.0140.00817.06
7.1.50.0100.01216.56
7.1.40.0100.00916.43
7.1.30.0110.01016.29
7.1.20.0100.01316.20
7.1.10.0110.01016.38
7.1.00.0120.02417.95
7.0.330.0110.00716.00
7.0.320.0080.01215.92
7.0.310.0100.01215.94
7.0.300.0100.00916.05
7.0.290.0130.00915.89
7.0.280.0130.00716.20
7.0.270.0090.01115.98
7.0.260.0110.01015.96
7.0.250.0100.01116.05
7.0.240.0160.00316.01
7.0.230.0100.01115.90
7.0.220.0080.01216.13
7.0.210.0130.00915.97
7.0.200.0140.00716.08
7.0.190.0060.01616.07
7.0.180.0100.00816.11
7.0.170.0070.01516.17
7.0.160.0090.01116.19
7.0.150.0110.00716.09
7.0.140.0090.00916.14
7.0.130.0080.01315.90
7.0.120.0080.01416.06
7.0.110.0110.01116.13
7.0.100.0130.00916.04
7.0.90.0120.00916.19
7.0.80.0090.01115.88
7.0.70.0110.00816.10
7.0.60.0060.02516.92
7.0.50.0060.02916.46
7.0.40.0090.01816.12
7.0.30.0120.02516.11
7.0.20.0170.02816.05
7.0.10.0090.01816.12
7.0.00.0110.01516.21
5.6.400.0110.01015.06
5.6.390.0130.00914.88
5.6.380.0110.01114.82
5.6.370.0120.01014.96
5.6.360.0080.01414.93
5.6.350.0060.01115.02
5.6.340.0070.01214.88
5.6.330.0140.00614.97
5.6.320.0110.00914.91
5.6.310.0120.01015.02
5.6.300.0100.01115.02
5.6.290.0120.01015.12
5.6.280.0140.02116.49
5.6.270.0130.00814.77
5.6.260.0110.01014.92
5.6.250.0090.01414.89
5.6.240.0130.00614.88
5.6.230.0070.01414.85
5.6.220.0130.00614.83
5.6.210.0070.03116.28
5.6.200.0070.02915.84
5.6.190.0130.01616.38
5.6.180.0320.01816.39
5.6.170.0140.02216.47
5.6.160.0090.02616.43
5.6.150.0100.01815.73
5.6.140.0080.01715.75
5.6.130.0100.02715.78
5.6.120.0100.01816.41
5.6.110.0090.02916.50
5.6.100.0090.03016.55
5.6.90.0140.02416.45
5.6.80.0110.02916.19
5.6.70.1150.02016.23
5.6.60.0100.00914.70
5.6.50.0110.01214.86
5.6.40.0090.01114.86
5.6.30.0050.01314.78
5.6.20.0060.01014.87
5.6.10.0100.01314.91
5.6.00.0110.00914.85
5.5.380.0120.00914.94
5.5.370.0130.01014.70
5.5.360.0090.01314.92
5.5.350.0080.02916.36
5.5.340.0030.02215.69
5.5.330.0130.01616.18
5.5.320.0140.02816.23
5.5.310.0180.01716.22
5.5.300.0110.02715.58
5.5.290.0080.03415.66
5.5.280.0120.01816.24
5.5.270.0090.02516.41
5.5.260.0100.02616.49
5.5.250.0120.02216.14
5.5.240.0150.02816.28
5.5.230.0160.00814.72
5.5.220.0070.01614.73
5.5.210.0110.00814.90
5.5.200.0100.01014.74
5.5.190.0050.00914.89
5.5.180.0070.01314.89
5.5.170.0100.01314.79
5.5.160.0110.01014.75
5.5.150.0110.00914.68
5.5.140.0060.01414.84
5.5.130.0070.01514.95
5.5.120.0090.01014.81
5.5.110.0120.00914.87
5.5.100.0070.01414.90
5.5.90.0070.01114.77
5.5.80.0090.01114.81
5.5.70.0100.01114.77
5.5.60.0100.01114.56
5.5.50.0090.01014.88
5.5.40.0070.01314.71
5.5.30.0100.00914.82
5.5.20.0130.00914.69
5.5.10.0130.00914.83
5.5.00.0100.01014.70
5.4.450.0270.01713.67
5.4.440.0280.01813.60
5.4.430.0280.01613.68
5.4.420.0240.01913.78
5.4.410.0270.02013.66
5.4.400.0200.02013.66
5.4.390.0220.02013.68
5.4.380.0250.01713.67
5.4.370.0210.02013.72
5.4.360.0170.02213.64
5.4.350.0180.02213.69
5.4.340.0260.02013.60
5.4.330.0060.01011.79
5.4.320.0250.01913.68
5.4.310.0240.01913.66
5.4.300.0250.02013.60
5.4.290.0270.01613.67
5.4.280.0250.01913.59
5.4.270.0250.01913.57
5.4.260.0260.01713.60
5.4.250.0200.01913.63
5.4.240.0280.01513.60
5.4.230.0290.01513.63
5.4.220.0260.01713.61
5.4.210.0260.01913.62
5.4.200.0250.01813.70
5.4.190.0260.01813.58
5.4.180.0220.01913.56
5.4.170.0240.01613.69
5.4.160.0170.02013.68
5.4.150.0190.02013.60
5.4.140.0200.01912.95
5.4.130.0200.01712.92
5.4.120.0240.01513.03
5.4.110.0200.02013.12
5.4.100.0230.01713.12
5.4.90.0220.01612.93
5.4.80.0220.01512.94
5.4.70.0100.02213.01
5.4.60.0140.02212.88
5.4.50.0040.02012.98
5.4.40.0080.01812.99
5.4.30.0070.02012.84
5.4.20.0150.01513.01
5.4.10.0100.00411.82
5.4.00.0050.00811.74

preferences:
58.33 ms | 401 KiB | 5 Q