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.0120.00418.31
8.3.50.0080.01021.11
8.3.40.0040.01118.53
8.3.30.0100.00718.58
8.3.20.0040.00420.25
8.3.10.0040.00423.65
8.3.00.0080.00022.51
8.2.180.0040.01518.54
8.2.170.0110.00722.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.70
8.2.110.0090.00021.07
8.2.100.0040.00817.75
8.2.90.0050.00219.09
8.2.80.0060.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0050.00321.12
8.2.30.0030.00619.87
8.2.20.0000.00717.68
8.2.10.0040.00417.99
8.2.00.0050.00318.11
8.1.280.0040.01125.92
8.1.270.0070.01120.18
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.97
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0000.00722.04
8.1.150.0000.00718.82
8.1.140.0040.00417.43
8.1.130.0000.00717.51
8.1.120.0020.00517.29
8.1.110.0040.00417.41
8.1.100.0000.00717.42
8.1.90.0040.00317.34
8.1.80.0040.00417.23
8.1.70.0040.00417.37
8.1.60.0090.00017.64
8.1.50.0030.00617.41
8.1.40.0000.00817.54
8.1.30.0040.00417.56
8.1.20.0050.00217.56
8.1.10.0040.00417.52
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0040.00418.45
8.0.270.0030.00317.25
8.0.260.0030.00317.21
8.0.250.0030.00616.92
8.0.240.0030.00316.82
8.0.230.0070.00016.78
8.0.220.0040.00416.79
8.0.210.0040.00416.73
8.0.200.0000.00616.77
8.0.190.0030.00616.89
8.0.180.0000.00716.74
8.0.170.0040.00416.75
8.0.160.0000.00716.86
8.0.150.0070.00016.70
8.0.140.0050.00516.88
8.0.130.0050.00013.27
8.0.120.0000.00816.67
8.0.110.0040.00416.71
8.0.100.0040.00416.85
8.0.90.0000.00716.74
8.0.80.0070.01016.80
8.0.70.0030.00516.71
8.0.60.0040.00416.74
8.0.50.0040.00416.79
8.0.30.0060.01316.86
8.0.20.0130.00717.40
8.0.10.0080.00016.83
8.0.00.0090.01016.71
7.4.330.0000.00515.08
7.4.320.0030.00316.34
7.4.300.0000.00616.61
7.4.290.0040.00416.55
7.4.280.0040.00416.59
7.4.270.0040.00416.48
7.4.260.0070.00416.48
7.4.250.0000.00716.55
7.4.240.0030.00416.45
7.4.230.0070.00016.64
7.4.220.0090.00916.54
7.4.210.0150.00316.59
7.4.200.0000.00716.70
7.4.160.0140.00716.58
7.4.150.0130.00317.40
7.4.140.0080.01117.86
7.4.130.0110.00816.59
7.4.120.0070.01016.61
7.4.110.0100.00716.61
7.4.100.0110.00716.40
7.4.90.0030.01516.38
7.4.80.0100.01019.39
7.4.70.0120.01216.41
7.4.60.0060.00916.36
7.4.50.0000.00416.65
7.4.40.0030.01216.51
7.4.30.0030.01416.23
7.4.00.0070.01014.93
7.3.330.0000.00513.19
7.3.320.0030.00313.09
7.3.310.0040.00416.18
7.3.300.0070.00016.06
7.3.290.0070.00816.20
7.3.280.0080.00916.18
7.3.270.0080.01017.40
7.3.260.0120.00616.55
7.3.250.0080.01016.35
7.3.240.0110.00716.56
7.3.230.0090.00816.39
7.3.210.0090.00616.36
7.3.200.0100.00719.39
7.3.190.0090.00616.26
7.3.180.0120.00316.51
7.3.170.0000.01616.48
7.3.160.0130.00616.45
7.3.10.0000.01216.34
7.3.00.0070.00716.64
7.2.330.0080.00916.25
7.2.320.0160.00316.37
7.2.310.0100.00716.66
7.2.300.0070.01416.29
7.2.290.0040.01216.18
7.2.130.0080.00416.90
7.2.120.0040.00816.61
7.2.110.0070.00716.58
7.2.100.0000.01716.70
7.2.90.0000.01416.60
7.2.80.0080.00416.82
7.2.70.0040.01216.71
7.2.60.0070.01016.56
7.2.50.0100.00716.85
7.2.40.0040.01116.98
7.2.30.0030.01016.75
7.2.20.0090.00316.85
7.2.10.0000.01316.59
7.2.00.0070.00718.12
7.1.250.0080.00615.73
7.1.200.0030.01015.74
7.1.100.0000.01217.81
7.1.70.0030.00617.22
7.1.60.0090.01620.03
7.1.50.0040.01816.71
7.1.00.0030.07322.31
7.0.200.0090.00616.75
7.0.60.0030.08019.94
7.0.50.0070.06717.91
7.0.40.0070.07720.13
7.0.30.0230.04320.30
7.0.20.0270.07720.25
7.0.10.0030.04320.25
7.0.00.0030.08720.15
5.6.280.0030.03021.12
5.6.210.0200.02720.54
5.6.200.0100.03718.19
5.6.190.0030.04320.46
5.6.180.0170.08720.50
5.6.170.0270.07720.54
5.6.160.0070.08020.55
5.6.150.0030.08018.23
5.6.140.0130.06718.15
5.6.130.0000.06318.18
5.6.120.0000.04320.98
5.6.110.0100.07021.02
5.6.100.0070.08021.12
5.6.90.0000.08320.98
5.6.80.0100.05720.41
5.6.70.4200.04320.34
5.5.350.0130.08320.41
5.5.340.0100.08017.99
5.5.330.0100.08320.56
5.5.320.0270.07320.25
5.5.310.0330.07020.35
5.5.300.0130.07718.03
5.5.290.0170.07017.95
5.5.280.0100.08320.69
5.5.270.0170.06720.97
5.5.260.0030.04020.88
5.5.250.0130.06020.72
5.5.240.0230.02320.37
5.4.450.0030.04019.43
5.4.440.0030.05319.50
5.4.430.0000.07019.38
5.4.420.0030.07719.40
5.4.410.0100.07019.18
5.4.400.0030.04319.16
5.4.390.0070.07719.06
5.4.380.0000.05318.86
5.4.370.0070.05719.00
5.4.360.0070.04319.06
5.4.350.0070.07319.07
5.4.340.0030.08019.08
5.4.320.0000.05718.95
5.4.310.0000.04319.22
5.4.300.0100.07019.20
5.4.290.0070.07318.99
5.4.280.0030.05019.16
5.4.270.0030.06319.16
5.4.260.0030.04719.25
5.4.250.0000.07719.00
5.4.240.0030.07719.19
5.4.230.0000.07319.26
5.4.220.0000.07718.94
5.4.210.0070.07019.21
5.4.200.0100.04019.19
5.4.190.0030.07719.15
5.4.180.0070.07319.21
5.4.170.0070.04319.16
5.4.160.0070.04319.24
5.4.150.0030.07719.14
5.4.140.0030.06716.43
5.4.130.0000.07316.56
5.4.120.0100.06716.45
5.4.110.0030.06316.61
5.4.100.0030.04016.31
5.4.90.0030.06716.27
5.4.80.0030.04016.59
5.4.70.0030.06316.48

preferences:
31.76 ms | 401 KiB | 5 Q