3v4l.org

run code in 300+ PHP versions simultaneously
<?php function parseStopWords($text){ $text = preg_replace('/[^a-zA-Z0-9áéíóúñ\', ]/i','',$text); $stopwords = array('a','ante','bajo','cabe','con','contra','de','desde','en','entre','hacia','hasta','para','por','sin','sobre','tras','el','lo','la','los','las','un','unos','una','al','del','que','es','se','y','fue'); foreach($stopwords as $w){ $text = preg_replace('/\b'.$w.'\b/i','',$text); } $text = preg_replace('/\s{2,}/i',' ',$text); return $text; } $texto = "Prueba de parseStop worlds para, probar la prueba"; var_dump(parseStopWords($texto));

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.0070.01516.75
8.3.50.0190.00622.03
8.3.40.0150.00318.79
8.3.30.0110.00419.09
8.3.20.0080.00020.20
8.3.10.0040.00423.70
8.3.00.0080.00022.43
8.2.180.0130.00716.63
8.2.170.0070.01522.96
8.2.160.0170.00322.13
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00322.43
8.2.110.0090.00022.25
8.2.100.0090.00317.97
8.2.90.0030.00519.19
8.2.80.0050.00317.97
8.2.70.0100.00317.75
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0100.00018.02
8.2.30.0050.00318.18
8.2.20.0050.00317.83
8.2.10.0040.00417.99
8.2.00.0040.00417.86
8.1.280.0070.00725.92
8.1.270.0080.00023.82
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0090.00023.95
8.1.230.0040.00719.21
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.60
8.1.190.0090.00017.53
8.1.180.0060.00318.10
8.1.170.0030.00618.75
8.1.160.0000.00722.07
8.1.150.0030.00518.73
8.1.140.0080.00017.59
8.1.130.0040.00417.92
8.1.120.0040.00417.72
8.1.110.0000.00817.53
8.1.100.0040.00417.65
8.1.90.0040.00817.58
8.1.80.0070.00017.67
8.1.70.0000.00717.57
8.1.60.0000.00917.75
8.1.50.0040.00417.68
8.1.40.0000.00817.64
8.1.30.0000.00817.71
8.1.20.0000.00917.79
8.1.10.0040.00417.70
8.1.00.0080.00017.54
8.0.300.0040.00418.77
8.0.290.0040.00417.03
8.0.280.0070.00018.51
8.0.270.0080.00017.23
8.0.260.0000.00717.04
8.0.250.0000.00717.07
8.0.240.0000.00717.13
8.0.230.0000.00717.14
8.0.220.0000.00717.08
8.0.210.0030.00617.11
8.0.200.0080.00016.99
8.0.190.0030.00517.18
8.0.180.0000.00817.05
8.0.170.0060.00317.07
8.0.160.0040.00417.13
8.0.150.0000.00716.92
8.0.140.0040.00417.01
8.0.130.0030.00313.46
8.0.120.0000.00817.02
8.0.110.0050.00316.98
8.0.100.0040.00417.02
8.0.90.0040.00417.12
8.0.80.0090.00617.09
8.0.70.0040.00417.04
8.0.60.0020.00517.09
8.0.50.0000.00817.09
8.0.30.0090.01417.32
8.0.20.0090.01117.50
8.0.10.0000.00817.05
8.0.00.0080.01017.03
7.4.330.0030.00315.20
7.4.320.0000.00616.76
7.4.300.0000.00716.60
7.4.290.0030.00316.77
7.4.280.0040.00416.74
7.4.270.0050.00216.68
7.4.260.0000.00916.63
7.4.250.0040.00416.70
7.4.240.0050.00316.76
7.4.230.0040.00416.90
7.4.220.0030.01316.93
7.4.210.0100.01016.81
7.4.200.0000.00716.51
7.4.190.0000.00816.93
7.4.160.0160.00016.79
7.4.150.0120.00617.40
7.4.140.0100.01217.86
7.4.130.0100.00816.71
7.4.120.0100.01116.79
7.4.110.0140.00316.79
7.4.100.0120.00616.89
7.4.90.0120.00616.68
7.4.80.0150.00916.54
7.4.70.0100.00716.64
7.4.60.0070.01316.75
7.4.50.0050.00316.70
7.4.40.0080.01222.77
7.4.30.0030.01616.69
7.4.00.0070.00715.35
7.3.330.0000.00613.39
7.3.320.0000.00513.20
7.3.310.0000.00716.53
7.3.300.0040.00416.38
7.3.290.0130.00916.63
7.3.280.0090.00916.55
7.3.270.0070.01117.40
7.3.260.0130.00616.76
7.3.250.0080.01016.58
7.3.240.0120.00616.54
7.3.230.0070.01016.56
7.3.210.0070.01116.65
7.3.200.0060.01319.39
7.3.190.0090.01316.67
7.3.180.0100.00616.87
7.3.170.0070.01416.84
7.3.160.0180.00016.75
7.3.120.0100.00715.09
7.2.330.0060.01216.92
7.2.320.0090.00816.82
7.2.310.0070.01016.82
7.2.300.0090.00916.68
7.2.290.0090.00916.96
7.2.60.0000.01717.09
7.2.00.0100.00319.82
7.1.200.0040.00816.04
7.1.100.0040.00818.46
7.1.70.0000.00717.45
7.1.60.0120.01219.29
7.1.50.0110.02217.15
7.1.00.0070.07322.60
7.0.200.0070.00716.98
7.0.140.0200.05722.02
7.0.110.0230.08019.99
7.0.100.0630.08020.04
7.0.90.0600.07319.93
7.0.80.0600.08019.96
7.0.70.0700.07719.95
7.0.60.0570.07720.07
7.0.50.0570.06320.52
7.0.40.0000.08320.32
7.0.30.0030.08320.31
7.0.20.0030.08320.22
7.0.10.0130.07320.11
7.0.00.0130.07020.08
5.6.280.0070.07320.82
5.6.260.0100.07720.70
5.6.250.0070.07320.63
5.6.240.0070.09020.69
5.6.230.0100.08020.70
5.6.220.0000.05720.68
5.6.210.0000.07020.73
5.6.200.0100.04721.23
5.6.190.0230.07021.11
5.6.180.0070.08020.99
5.6.170.0100.06720.96
5.6.160.0030.08321.10
5.6.150.0100.04721.15
5.6.140.0000.09321.27
5.6.130.0170.07720.99
5.6.120.0170.04021.05
5.6.110.0000.04721.23
5.6.100.0070.08321.09
5.6.90.0070.07721.21
5.6.80.0200.07020.40
5.6.70.0100.07320.48
5.6.60.0170.06720.60
5.6.50.0130.07320.54
5.6.40.0100.07320.48
5.6.30.0030.08020.41
5.6.20.0130.06320.54
5.6.10.0100.06320.49
5.6.00.0100.06320.34
5.5.380.0070.08020.54
5.5.370.0100.08320.42
5.5.360.0030.09020.36
5.5.350.0070.07720.41
5.5.340.0130.07320.73
5.5.330.0170.07721.04
5.5.320.0100.08320.79
5.5.310.0030.08020.89
5.5.300.0070.08720.91
5.5.290.0100.08020.90
5.5.280.0130.07720.98
5.5.270.0070.07721.04
5.5.260.0030.08720.70
5.5.250.0070.04320.63
5.5.240.0030.08320.16
5.5.230.0070.08320.08
5.5.220.0030.08020.28
5.5.210.0170.07320.27
5.5.200.0000.05320.35
5.5.190.0030.08720.39
5.5.180.0070.07720.32
5.5.160.0030.07020.16
5.5.150.0070.08020.25
5.5.140.0130.06720.03
5.5.130.0170.06720.27
5.5.120.0070.06320.34
5.5.110.0070.05020.15
5.5.100.0030.08020.20
5.5.90.0070.04720.23
5.5.80.0130.04020.05
5.5.70.0170.06020.14
5.5.60.0170.07020.04
5.5.50.0030.07720.25
5.5.40.0200.06720.07
5.5.30.0070.08020.26
5.5.20.0030.08320.22
5.5.10.0070.07320.12
5.5.00.0100.05019.99
5.4.450.0000.09019.56
5.4.440.0130.07319.51
5.4.430.0070.08019.27
5.4.420.0170.07019.27
5.4.410.0000.07719.18
5.4.400.0000.08319.34
5.4.390.0130.04019.23
5.4.380.0130.06318.98
5.4.370.0070.07719.34
5.4.360.0130.07719.19
5.4.350.0030.07319.13
5.4.340.0130.07319.16
5.4.320.0130.07019.07
5.4.310.0170.06719.13
5.4.300.0070.07719.14
5.4.290.0070.04318.99
5.4.280.0070.07719.13
5.4.270.0070.07319.18
5.4.260.0130.06019.04
5.4.250.0170.05719.16
5.4.240.0000.08018.97
5.4.230.0070.07319.18
5.4.220.0130.06719.22
5.4.210.0030.07319.22
5.4.200.0030.08019.02
5.4.190.0100.06718.97
5.4.180.0070.04718.97
5.4.170.0130.06319.22
5.4.160.0070.07719.00
5.4.150.0100.06719.30
5.4.140.0130.06316.64
5.4.130.0000.07316.43
5.4.120.0170.04716.54
5.4.110.0070.07016.46
5.4.100.0130.06016.27
5.4.90.0100.06716.42
5.4.80.0070.06716.28
5.4.70.0100.07716.34
5.4.60.0070.07016.54
5.4.50.0070.07316.56
5.4.40.0130.06016.67
5.4.30.0070.07016.41
5.4.20.0100.06316.50
5.4.10.0000.06016.53
5.4.00.0030.06015.98
5.3.290.0030.06314.77
5.3.280.0100.04014.75
5.3.270.0070.06714.64
5.3.260.0000.08014.59
5.3.250.0130.06714.59
5.3.240.0070.07714.62
5.3.230.0070.07014.63
5.3.220.0000.07314.65
5.3.210.0030.07314.66
5.3.200.0070.07014.80
5.3.190.0170.07014.57
5.3.180.0130.03714.59
5.3.170.0000.05014.71
5.3.160.0030.04714.62
5.3.150.0070.06314.69
5.3.140.0100.06314.65
5.3.130.0070.07314.51
5.3.120.0070.07014.57
5.3.110.0030.04014.51
5.3.100.0000.06714.02
5.3.90.0100.04314.11
5.3.80.0030.03714.04
5.3.70.0070.03314.09
5.3.60.0030.03714.14
5.3.50.0030.03713.95
5.3.40.0030.04013.95
5.3.30.0070.04013.95
5.3.20.0000.04013.70
5.3.10.0000.03713.75
5.3.00.0100.04713.66
5.2.170.0030.03013.32
5.2.160.0070.05013.32
5.2.150.0000.03013.32
5.2.140.0070.02713.32
5.2.130.0070.02313.32
5.2.120.0000.03013.32
5.2.110.0030.02713.32
5.2.100.0070.02313.32
5.2.90.0070.02013.32
5.2.80.0000.05313.32
5.2.70.0000.05713.32
5.2.60.0000.04313.32
5.2.50.0030.03013.32
5.2.40.0100.02013.32
5.2.30.0070.02713.32
5.2.20.0000.04313.32
5.2.10.0030.05713.32
5.2.00.0000.03013.32
5.1.60.0000.02713.32
5.1.50.0030.02013.32
5.1.40.0030.02313.32
5.1.30.0030.02713.32
5.1.20.0070.03313.32
5.1.10.0000.03313.32
5.1.00.0070.02013.32
5.0.50.0070.01713.32
5.0.40.0030.02713.32
5.0.30.0000.03313.32
5.0.20.0000.02013.32
5.0.10.0000.02013.32
5.0.00.0000.03013.32
4.4.90.0000.03713.32
4.4.80.0000.01713.32
4.4.70.0000.02313.32
4.4.60.0000.01713.32
4.4.50.0030.02313.32
4.4.40.0000.03313.32
4.4.30.0000.01713.32
4.4.20.0000.01713.32
4.4.10.0030.01313.32
4.4.00.0030.02313.32
4.3.110.0000.02013.32
4.3.100.0000.03313.32
4.3.90.0000.02013.32
4.3.80.0000.02313.32
4.3.70.0000.01713.32
4.3.60.0030.01313.32
4.3.50.0000.01713.32
4.3.40.0000.02713.32
4.3.30.0000.01713.32
4.3.20.0000.01713.32
4.3.10.0000.01313.32
4.3.00.0000.01313.32

preferences:
46.44 ms | 400 KiB | 5 Q