3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cleanse($string) { if (get_magic_quotes_gpc()) { $string = stripslashes($stringIn); } $search = array('&acirc;€“','&acirc;€œ','&acirc;€˜','&acirc;€™','&Acirc;&pound;','&Acirc;&not;','&acirc;„&cent;'); $replace = array('-','&ldquo;','&lsquo;','&rsquo;','&pound;','&not;','&#8482;'); $string = str_replace($search, $replace, $string); $string = str_replace('&acirc;€', '&rdquo;', $string); $search = array("&#39;", "\xc3\xa2\xc2\x80\xc2\x99", "\xc3\xa2\xc2\x80\xc2\x93", "\xc3\xa2\xc2\x80\xc2\x9d", "\xc3\xa2\x3f\x3f"); $resplace = array("'", "'", ' - ', '"', "'"); $string = str_replace($search, $replace, $string); $quotes = array( "\xC2\xAB" => '"', "\xC2\xBB" => '"', "\xE2\x80\x98" => "'", "\xE2\x80\x99" => "'", "\xE2\x80\x9A" => "'", "\xE2\x80\x9B" => "'", "\xE2\x80\x9C" => '"', "\xE2\x80\x9D" => '"', "\xE2\x80\x9E" => '"', "\xE2\x80\x9F" => '"', "\xE2\x80\xB9" => "'", "\xE2\x80\xBA" => "'", "\xe2\x80\x93" => "-", "\xc2\xb0" => "°", "\xc2\xba" => "°", "\xc3\xb1" => "&#241;", "\x96" => "&#241;", "\xe2\x81\x83" => '&bull;', "\xd5" => "'" ); return strtr($string, $quotes); } echo cleanse("Los bancos limitarán las extracciones de dólares en el exterior");

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.00918.56
8.3.50.0120.00721.98
8.3.40.0100.00718.88
8.3.30.0090.00618.84
8.3.20.0050.00318.57
8.3.10.0080.00021.09
8.3.00.0050.00221.63
8.2.180.0090.01218.26
8.2.170.0070.00722.96
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0090.00021.00
8.2.110.0100.00722.09
8.2.100.0040.00817.91
8.2.90.0040.00417.78
8.2.80.0000.00818.98
8.2.70.0000.00817.50
8.2.60.0040.00417.55
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0000.00821.13
8.2.20.0000.00717.66
8.2.10.0050.00217.70
8.2.00.0030.00717.69
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.19
8.1.230.0040.00722.75
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00217.00
8.1.190.0000.00817.41
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0000.00718.80
8.1.150.0040.00418.57
8.1.140.0070.00017.39
8.1.130.0070.00017.77
8.1.120.0000.00817.34
8.1.110.0050.00317.35
8.1.100.0040.00417.23
8.1.90.0050.00317.30
8.1.80.0000.00717.35
8.1.70.0070.00017.30
8.1.60.0030.00617.56
8.1.50.0040.00417.45
8.1.40.0040.00417.32
8.1.30.0000.00817.52
8.1.20.0040.00417.57
8.1.10.0040.00417.51
8.1.00.0040.00417.38
8.0.300.0040.00420.09
8.0.290.0050.00217.04
8.0.280.0020.00518.39
8.0.270.0030.00317.24
8.0.260.0030.00316.82
8.0.250.0070.00016.90
8.0.240.0050.00316.90
8.0.230.0000.00716.92
8.0.220.0000.00716.87
8.0.210.0070.00016.96
8.0.200.0060.00016.98
8.0.190.0050.00216.97
8.0.180.0080.00016.89
8.0.170.0000.00716.82
8.0.160.0040.00416.89
8.0.150.0040.00416.90
8.0.140.0070.00016.91
8.0.130.0030.00313.38
8.0.120.0050.00216.85
8.0.110.0000.00816.84
8.0.100.0070.00016.89
8.0.90.0000.00716.73
8.0.80.0150.00016.90
8.0.70.0040.00416.78
8.0.60.0050.00316.93
8.0.50.0070.00016.82
8.0.30.0140.00517.08
8.0.20.0110.00817.40
8.0.10.0030.00517.05
8.0.00.0080.00816.69
7.4.330.0000.00516.79
7.4.320.0060.00016.54
7.4.300.0000.00616.52
7.4.290.0030.00316.48
7.4.280.0000.00716.65
7.4.270.0000.00616.61
7.4.260.0060.00013.22
7.4.250.0030.00616.57
7.4.240.0030.00316.59
7.4.230.0000.00716.68
7.4.220.0000.01716.48
7.4.210.0080.00916.60
7.4.200.0040.00416.50
7.4.190.0000.00716.59
7.4.160.0120.00516.57
7.4.150.0070.01017.40
7.4.140.0090.01217.86
7.4.130.0160.00216.44
7.4.120.0140.00616.44
7.4.110.0120.00616.63
7.4.100.0040.01916.64
7.4.90.0030.01516.56
7.4.80.0140.00319.39
7.4.70.0030.01416.56
7.4.60.0130.00316.47
7.4.50.0000.00816.38
7.4.40.0090.00622.77
7.4.30.0030.01316.35
7.4.00.0080.00714.85
7.3.330.0030.00313.24
7.3.320.0000.00613.23
7.3.310.0000.00716.16
7.3.300.0000.00716.17
7.3.290.0070.01416.22
7.3.280.0100.00616.27
7.3.270.0030.01317.40
7.3.260.0120.00518.24
7.3.250.0130.00616.47
7.3.240.0040.01216.55
7.3.230.0070.01016.39
7.3.210.0100.00616.38
7.3.200.0100.01319.39
7.3.190.0060.01016.30
7.3.180.0140.00316.45
7.3.170.0060.01016.46
7.3.160.0150.00016.31
7.3.120.0060.01214.87
7.3.110.0060.01114.73
7.3.100.0060.00614.64
7.3.90.0060.00814.79
7.3.80.0080.00614.73
7.3.70.0070.00514.59
7.3.60.0060.00814.71
7.3.50.0050.01214.74
7.3.40.0050.00914.80
7.3.30.0000.01414.61
7.3.20.0080.00616.63
7.3.10.0090.00516.66
7.3.00.0030.01116.59
7.2.330.0070.01016.59
7.2.320.0070.01016.61
7.2.310.0120.00916.79
7.2.300.0100.00716.35
7.2.290.0070.01016.45
7.2.250.0050.01315.04
7.2.240.0090.00914.87
7.2.230.0060.01115.05
7.2.220.0050.01114.89
7.2.210.0070.00814.94
7.2.200.0060.00815.08
7.2.190.0070.00815.00
7.2.180.0060.00815.03
7.2.170.0040.00815.16
7.2.130.0080.00516.95
7.2.120.0110.00416.83
7.2.110.0070.00716.55
7.2.100.0000.01216.75
7.2.90.0040.01117.05
7.2.80.0090.00316.94
7.2.70.0130.00316.95
7.2.60.0000.01116.83
7.2.50.0090.00616.64
7.2.40.0060.01016.80
7.2.30.0070.00716.99
7.2.20.0150.00017.09
7.2.10.0080.00416.99
7.2.00.0070.01016.84
7.1.330.0090.00615.79
7.1.320.0040.00915.70
7.1.310.0080.00315.72
7.1.300.0080.00515.69
7.1.290.0070.00515.54
7.1.280.0080.00615.75
7.1.270.0070.00515.65
7.1.260.0080.00515.79
7.1.250.0030.01015.79
7.1.200.0080.00415.83
7.1.100.0050.00518.21
7.1.70.0040.00417.10
7.1.60.0070.01819.40
7.1.50.0190.01934.49
7.1.00.0000.03722.33
7.0.200.0040.00416.63
7.0.140.0030.07022.09
7.0.70.0030.06021.66
7.0.60.0100.07721.81
7.0.50.0030.08322.12
7.0.40.0030.07720.07
7.0.30.0100.06020.17
7.0.20.0030.08320.03
7.0.10.0030.08020.12
7.0.00.0000.09020.17
5.6.280.0070.07021.09
5.6.220.0030.07720.59
5.6.210.0030.08720.57
5.6.200.0030.05321.11
5.6.190.0030.07320.98
5.6.180.0000.06021.05
5.6.170.0070.08321.16
5.6.160.0070.06721.04
5.6.150.0030.08721.05
5.6.140.0030.08321.04
5.6.130.0130.07021.03
5.6.120.0070.08020.95
5.6.110.0100.07320.96
5.6.100.0100.07721.06
5.6.90.0070.07721.13
5.6.80.0070.08020.41
5.6.70.0070.08020.48
5.6.60.0070.07320.41
5.6.50.0070.08020.54
5.6.40.0070.07320.51
5.6.30.0030.06720.46
5.6.20.0100.06020.36
5.6.10.0070.04320.39
5.6.00.0100.04320.44
5.5.360.0070.08320.49
5.5.350.0030.08320.42
5.5.340.0070.04720.94
5.5.330.0130.07320.90
5.5.320.0070.08020.91
5.5.310.0070.07720.90
5.5.300.0130.06720.92
5.5.290.0000.09320.81
5.5.280.0100.08020.93
5.5.270.0030.08720.93
5.5.260.0030.06320.74
5.5.250.0070.08320.75
5.5.240.0070.07320.29
5.5.230.0030.07720.18
5.5.220.0030.07720.15
5.5.210.0100.07020.29
5.5.200.0030.06720.27
5.5.190.0030.07720.27
5.5.180.0030.07720.17
5.5.160.0070.04320.12
5.5.150.0100.07720.23
5.5.140.0030.08020.25
5.5.130.0130.07320.11
5.5.120.0030.08020.21
5.5.110.0130.06720.16
5.5.100.0130.06320.18
5.5.90.0070.06719.96
5.5.80.0030.06720.09
5.5.70.0070.07020.07
5.5.60.0070.06320.07
5.5.50.0030.08020.02
5.5.40.0070.05720.12
5.5.30.0000.08020.07
5.5.20.0070.07320.09
5.5.10.0070.06320.02
5.5.00.0030.07020.05
5.4.450.0070.07319.17
5.4.440.0130.07019.23
5.4.430.0030.07719.36
5.4.420.0030.08019.55
5.4.410.0070.06319.29
5.4.400.0030.07319.05
5.4.390.0070.07318.90
5.4.380.0100.06319.13
5.4.370.0070.06719.18
5.4.360.0030.07719.22
5.4.350.0030.07319.18
5.4.340.0000.08019.23
5.4.320.0000.04318.97
5.4.310.0030.06319.09
5.4.300.0000.08318.86
5.4.290.0030.05019.19
5.4.280.0070.08018.86
5.4.270.0130.06318.87
5.4.260.0030.06019.08
5.4.250.0130.06319.17
5.4.240.0030.05718.86
5.4.230.0000.06319.02
5.4.220.0070.07019.17
5.4.210.0000.08019.02
5.4.200.0030.08019.07
5.4.190.0030.05319.30
5.4.180.0070.07319.03
5.4.170.0070.07719.14
5.4.160.0100.07019.10
5.4.150.0030.07319.13
5.4.140.0030.07716.42
5.4.130.0000.04316.41
5.4.120.0030.07016.40
5.4.110.0000.08016.38
5.4.100.0030.06716.43
5.4.90.0100.04316.33
5.4.80.0100.06316.45
5.4.70.0070.06316.40
5.4.60.0030.07316.34
5.4.50.0130.06716.44
5.4.40.0070.06016.50
5.4.30.0030.07016.47
5.4.20.0030.07316.48
5.4.10.0100.06716.29
5.4.00.0030.06315.82
5.3.290.0000.04014.61
5.3.280.0000.04014.72
5.3.270.0100.07014.61
5.3.260.0000.07714.63
5.3.250.0030.07714.57
5.3.240.0070.06314.75
5.3.230.0070.07014.57
5.3.220.0100.06714.51
5.3.210.0000.07714.50
5.3.200.0100.07014.54
5.3.190.0070.07314.55
5.3.180.0000.07714.51
5.3.170.0000.08014.66
5.3.160.0000.07714.70
5.3.150.0000.07714.66
5.3.140.0070.07714.69
5.3.130.0030.08014.48
5.3.120.0100.07314.48
5.3.110.0000.07314.68
5.3.100.0000.07014.16
5.3.90.0100.07013.99
5.3.80.0100.06314.09
5.3.70.0070.06713.93
5.3.60.0000.07314.01
5.3.50.0030.06713.84
5.3.40.0100.06013.95
5.3.30.0000.07013.93
5.3.20.0000.04713.79
5.3.10.0030.07313.64
5.3.00.0030.06313.74
5.2.170.0030.05312.41
5.2.160.0030.03312.41
5.2.150.0030.06712.41
5.2.140.0030.06012.41
5.2.130.0030.05712.41
5.2.120.0000.06012.41
5.2.110.0030.04712.41
5.2.100.0030.04712.41
5.2.90.0070.04012.41
5.2.80.0030.03712.41
5.2.70.0030.04012.41
5.2.60.0030.03012.41
5.2.50.0000.05712.41
5.2.40.0030.05712.41
5.2.30.0030.05312.41
5.2.20.0030.03012.41
5.2.10.0030.03712.41
5.2.00.0000.05012.41
5.1.60.0070.02012.41
5.1.50.0000.04012.41
5.1.40.0030.04312.41
5.1.30.0030.05312.41
5.1.20.0030.04712.41
5.1.10.0000.04712.41
5.1.00.0030.05012.41
5.0.50.0000.04012.41
5.0.40.0030.04012.41
5.0.30.0030.06012.41
5.0.20.0000.04712.41
5.0.10.0070.02012.41
5.0.00.0000.06312.41
4.4.90.0000.01712.41
4.4.80.0000.03312.41
4.4.70.0000.03312.41
4.4.60.0030.01712.41
4.4.50.0030.03012.41
4.4.40.0000.04312.41
4.4.30.0070.03012.41
4.4.20.0000.03012.41
4.4.10.0000.03312.41
4.4.00.0000.05312.41
4.3.110.0030.03012.41
4.3.100.0030.02312.41
4.3.90.0000.03312.41
4.3.80.0070.04012.41
4.3.70.0030.02712.41
4.3.60.0030.03012.41
4.3.50.0000.04012.41
4.3.40.0070.04312.41
4.3.30.0070.02712.41
4.3.20.0030.03312.41
4.3.10.0000.03712.41
4.3.00.0000.03312.41

preferences:
37.59 ms | 401 KiB | 5 Q