3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '"CABA├â?A ""LA CACHIMBA"" DE INES BO'; function decodeTildes($cadena) { return str_replace(array('&aacute;', '├â?','&eacute;', '&iacute;', '&oacute;', '&uacute;', '&ntilde;', '&Aacute;', '&Eacute;', '&Iacute;', '&Oacute;', '&Uacute;', '&Ntilde;', '&deg;', '&quot;'), array('á','ñ', 'é', 'í', 'ó', 'ú', 'ñ', 'Á', 'É', 'Í', 'Ó', 'Ú', 'Ñ', '°', '"'), $cadena); } function clean($string) { //$string = str_replace("-", " ", $string); // Replaces all spaces with hyphens. //$string = str_replace("├â?","Ñ",$string); return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars. } //echo clean($a); echo decodeTildes($a);

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.0060.01018.15
8.3.50.0090.01221.19
8.3.40.0140.00018.81
8.3.30.0070.00718.58
8.3.20.0080.00020.16
8.3.10.0070.00023.53
8.3.00.0040.00422.27
8.2.180.0180.00018.06
8.2.170.0040.01122.96
8.2.160.0070.01420.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.00017.75
8.2.110.0090.00021.05
8.2.100.0120.00017.63
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0050.00321.00
8.2.30.0000.00719.83
8.2.20.0000.00817.70
8.2.10.0040.00417.99
8.2.00.0040.00317.93
8.1.280.0140.00025.92
8.1.270.0130.00720.09
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0000.00923.98
8.1.230.0000.01217.48
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0000.01017.23
8.1.190.0060.00317.23
8.1.180.0070.00018.10
8.1.170.0000.00818.52
8.1.160.0000.00821.82
8.1.150.0040.00418.70
8.1.140.0000.00817.39
8.1.130.0000.00717.70
8.1.120.0000.00717.44
8.1.110.0000.00717.31
8.1.100.0030.00317.44
8.1.90.0000.00817.31
8.1.80.0040.00417.29
8.1.70.0060.00317.37
8.1.60.0100.00017.46
8.1.50.0000.00817.51
8.1.40.0110.00017.50
8.1.30.0040.00417.53
8.1.20.0040.00417.58
8.1.10.0040.00417.40
8.1.00.0050.00317.46
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.51
8.0.270.0000.00817.26
8.0.260.0000.00717.23
8.0.250.0070.00316.97
8.0.240.0060.00016.98
8.0.230.0000.00716.71
8.0.220.0040.00416.70
8.0.210.0000.00716.81
8.0.200.0000.00716.95
8.0.190.0000.00816.85
8.0.180.0060.00316.71
8.0.170.0080.00316.84
8.0.160.0000.00716.88
8.0.150.0030.00316.75
8.0.140.0000.00816.68
8.0.130.0000.00513.18
8.0.120.0050.00316.70
8.0.110.0000.00716.76
8.0.100.0000.00716.71
8.0.90.0070.00016.88
8.0.80.0130.00716.87
8.0.70.0070.00016.71
8.0.60.0070.00016.74
8.0.50.0000.00716.81
8.0.30.0080.00817.06
8.0.20.0120.00617.40
8.0.10.0000.00816.84
8.0.00.0100.00716.69
7.4.330.0060.00015.08
7.4.320.0030.00316.58
7.4.300.0030.00316.61
7.4.290.0070.00016.52
7.4.280.0070.00016.40
7.4.270.0030.00316.59
7.4.260.0000.00716.61
7.4.250.0000.00716.52
7.4.240.0020.00616.50
7.4.230.0000.00716.57
7.4.220.0100.00616.43
7.4.210.0070.00716.52
7.4.200.0030.00316.49
7.4.160.0210.00016.41
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0100.01016.52
7.4.120.0090.00916.50
7.4.110.0060.01116.37
7.4.100.0110.01116.59
7.4.90.0080.01216.46
7.4.80.0110.01119.39
7.4.70.0130.00316.44
7.4.60.0060.00916.43
7.4.50.0030.00316.49
7.4.40.0030.01216.48
7.4.30.0100.00716.43
7.4.00.0040.00814.79
7.3.330.0020.00213.06
7.3.320.0060.00013.06
7.3.310.0000.00716.18
7.3.300.0030.00316.18
7.3.290.0050.00916.20
7.3.280.0100.00816.17
7.3.270.0090.00917.40
7.3.260.0100.00716.48
7.3.250.0140.00516.32
7.3.240.0080.00816.22
7.3.230.0100.00716.58
7.3.210.0100.00716.35
7.3.200.0130.00419.39
7.3.190.0060.01016.43
7.3.180.0060.01016.14
7.3.170.0090.00616.27
7.3.160.0130.00316.46
7.2.330.0070.01016.29
7.2.320.0200.00316.51
7.2.310.0170.00016.59
7.2.300.0120.00916.61
7.2.290.0120.00616.34
7.2.00.0120.01219.18
7.1.200.0030.01015.87
7.1.100.0040.00718.16
7.1.70.0000.00917.03
7.1.60.0110.01420.03
7.1.50.0030.01916.78
7.1.00.0030.07322.45
7.0.200.0080.00816.76
7.0.60.0070.08019.94
7.0.50.0000.04017.82
7.0.40.0130.08320.21
7.0.30.0130.06720.11
7.0.20.0170.05020.07
7.0.10.0230.05320.20
7.0.00.0130.05720.29
5.6.280.0000.03321.13
5.6.210.0070.05020.68
5.6.200.0130.09318.20
5.6.190.0170.06020.33
5.6.180.0230.08020.67
5.6.170.0300.08020.39
5.6.160.0070.03720.54
5.6.150.0030.08018.19
5.6.140.0070.05718.26
5.6.130.0130.08018.27
5.6.120.0070.08021.13
5.6.110.0130.06321.05
5.6.100.0030.04021.04
5.6.90.0200.07020.98
5.6.80.0030.07020.43
5.6.70.0330.07320.38
5.5.350.0100.05020.39
5.5.340.0100.05717.98
5.5.330.0130.07720.40
5.5.320.0270.06020.27
5.5.310.0200.05020.19
5.5.300.0070.07017.96
5.5.290.0100.06717.93
5.5.280.0070.07020.96
5.5.270.0070.08320.73
5.5.260.0030.08320.87
5.5.250.0070.07720.59
5.5.240.0130.06320.20
5.4.450.0900.06719.59
5.4.440.0830.06019.63
5.4.430.1100.05319.58
5.4.420.1100.06019.70
5.4.410.0700.06019.04
5.4.400.0700.06319.33
5.4.390.0200.05019.02
5.4.380.0170.04719.15
5.4.370.0430.04319.25
5.4.360.0800.05019.22
5.4.350.0800.05319.16
5.4.340.0900.06019.14
5.4.320.0900.05719.01
5.4.310.0770.05019.24
5.4.300.0770.06019.41
5.4.290.0700.05719.00
5.4.280.0930.05719.23
5.4.270.0930.04019.22
5.4.260.0930.05719.12
5.4.250.0970.05019.37
5.4.240.0830.05319.22
5.4.230.0730.05719.25
5.4.220.0770.08019.13
5.4.210.0770.06018.93
5.4.200.0070.05016.89
5.4.190.0170.06319.09
5.4.180.1170.05019.14
5.4.170.0770.06019.37
5.4.160.0970.04719.02
5.4.150.0970.04319.27
5.4.140.0800.07316.50
5.4.130.1000.04016.46
5.4.120.0770.04716.62
5.4.110.0800.06016.61
5.4.100.1000.05016.57
5.4.90.0900.04716.60
5.4.80.0800.05316.59
5.4.70.1330.04316.58
5.4.60.0030.07316.43
5.4.50.0100.05316.59
5.4.40.0000.04016.54
5.4.30.0270.06016.25
5.4.20.0170.03716.22

preferences:
60.05 ms | 401 KiB | 5 Q