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.0040.01116.63
8.3.50.0120.00518.50
8.3.40.0120.00319.05
8.3.30.0080.00818.90
8.3.20.0030.00518.91
8.3.10.0030.00620.78
8.3.00.0060.00317.75
8.2.180.0160.00316.50
8.2.170.0150.00022.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.02
8.2.110.0030.00621.09
8.2.100.0080.00418.03
8.2.90.0070.00319.09
8.2.80.0040.00417.93
8.2.70.0040.00417.75
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00918.22
8.2.30.0000.00818.18
8.2.20.0040.00418.04
8.2.10.0000.00817.96
8.2.00.0000.00818.04
8.1.280.0150.01525.92
8.1.270.0040.00424.66
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00420.89
8.1.230.0110.00020.85
8.1.220.0030.00517.79
8.1.210.0000.00818.85
8.1.200.0060.00317.38
8.1.190.0000.00817.66
8.1.180.0080.00018.10
8.1.170.0060.00318.89
8.1.160.0000.00718.95
8.1.150.0040.00418.70
8.1.140.0030.00517.63
8.1.130.0000.00717.89
8.1.120.0000.00817.64
8.1.110.0050.00317.60
8.1.100.0070.00017.64
8.1.90.0000.00717.53
8.1.80.0050.00317.55
8.1.70.0030.00517.63
8.1.60.0040.00417.76
8.1.50.0030.00617.66
8.1.40.0030.00517.71
8.1.30.0040.00417.79
8.1.20.0040.00417.86
8.1.10.0000.00917.73
8.1.00.0000.00817.62
8.0.300.0000.00820.07
8.0.290.0070.00017.00
8.0.280.0000.00718.49
8.0.270.0050.00217.34
8.0.260.0000.00717.00
8.0.250.0080.00017.18
8.0.240.0070.00017.15
8.0.230.0000.00717.15
8.0.220.0030.00317.00
8.0.210.0040.00416.91
8.0.200.0070.00017.02
8.0.190.0060.00317.10
8.0.180.0070.00017.05
8.0.170.0000.00817.05
8.0.160.0030.00517.09
8.0.150.0090.00017.05
8.0.140.0040.00417.05
8.0.130.0030.00313.49
8.0.120.0040.00416.92
8.0.110.0000.00817.04
8.0.100.0050.00317.06
8.0.90.0040.00416.89
8.0.80.0030.01317.11
8.0.70.0020.00517.10
8.0.60.0070.00017.14
8.0.50.0040.00417.07
8.0.30.0120.00817.31
8.0.20.0050.01417.25
8.0.10.0030.00517.26
8.0.00.0130.00816.89
7.4.330.0020.00213.24
7.4.320.0070.00016.73
7.4.300.0070.00016.74
7.4.290.0030.00316.73
7.4.280.0100.00016.75
7.4.270.0000.00916.61
7.4.260.0030.00313.51
7.4.250.0040.00416.84
7.4.240.0070.00016.84
7.4.230.0050.00316.93
7.4.220.0160.00316.86
7.4.210.0100.00816.80
7.4.200.0040.00416.93
7.4.190.0000.00717.00
7.4.160.0160.00416.71
7.4.150.0090.00916.68
7.4.140.0220.02216.70
7.4.130.0170.00416.75
7.4.120.0060.01216.63
7.4.110.0070.01116.58
7.4.100.0110.00616.68
7.4.90.0080.01116.63
7.4.80.0100.00716.85
7.4.70.0110.01416.83
7.4.60.0180.00016.73
7.4.50.0050.00316.74
7.4.40.0060.00916.77
7.4.30.0070.01016.64
7.4.00.0070.00715.32
7.3.330.0030.00313.48
7.3.320.0030.00313.35
7.3.310.0030.00316.54
7.3.300.0030.00416.38
7.3.290.0060.00916.56
7.3.280.0110.00816.47
7.3.270.0120.00616.92
7.3.260.0120.00616.79
7.3.250.0120.01116.56
7.3.240.0090.00916.86
7.3.230.0120.00616.70
7.3.210.0120.00616.64
7.3.200.0050.01619.39
7.3.190.0120.01216.86
7.3.180.0070.01016.58
7.3.170.0140.00416.91
7.3.160.0100.00616.71
7.3.120.0000.02015.10
7.3.110.0100.01015.04
7.3.100.0040.01215.05
7.3.90.0090.00915.32
7.3.80.0060.00315.18
7.3.70.0100.00714.69
7.3.60.0090.00314.92
7.3.50.0080.00814.98
7.3.40.0060.01015.05
7.3.30.0040.00715.13
7.3.20.0000.01416.79
7.3.10.0110.00016.93
7.3.00.0030.01516.85
7.2.330.0110.00716.72
7.2.320.0100.00716.88
7.2.310.0090.01516.88
7.2.300.0090.00916.87
7.2.290.0030.01516.87
7.2.240.0030.01715.21
7.2.230.0120.00615.43
7.2.220.0070.01315.36
7.2.210.0030.00615.03
7.2.200.0060.00915.01
7.2.190.0060.00615.19
7.2.180.0060.00615.40
7.2.170.0060.00615.31
7.2.160.0040.01115.42
7.2.150.0030.00917.20
7.2.140.0030.01316.81
7.2.130.0040.01117.23
7.2.120.0000.01616.98
7.2.110.0090.00617.24
7.2.100.0100.00717.23
7.2.90.0100.00717.13
7.2.80.0060.00917.16
7.2.70.0030.00916.91
7.2.60.0080.00517.07
7.2.50.0110.00717.21
7.2.40.0040.01117.28
7.2.30.0030.01417.02
7.2.20.0040.01117.29
7.2.10.0000.01517.20
7.2.00.0000.01417.09
7.1.330.0090.00616.06
7.1.320.0060.01316.10
7.1.310.0060.00915.88
7.1.300.0080.00415.93
7.1.290.0000.01416.13
7.1.280.0040.01116.07
7.1.270.0030.00815.86
7.1.260.0060.00916.13
7.1.250.0100.00616.09
7.1.200.0030.01015.98
7.1.70.0000.00717.38
7.1.60.0000.01119.40
7.1.50.0070.01417.30
7.1.00.0070.06722.52
7.0.200.0040.00417.04
7.0.140.0000.07722.02
7.0.120.0030.06322.09
7.0.60.0100.03720.06
7.0.50.0000.08717.93
7.0.40.0030.07020.12
7.0.30.0230.04320.13
7.0.20.0270.08320.37
7.0.10.0270.08020.33
7.0.00.0130.08020.16
5.6.280.0030.07321.00
5.6.210.0100.06020.70
5.6.200.0000.07018.16
5.6.190.0130.07320.63
5.6.180.0330.08020.43
5.6.170.0230.04720.47
5.6.160.0100.05020.71
5.6.150.0100.07318.20
5.6.140.0100.08018.16
5.6.130.0070.08018.25
5.6.120.0070.05321.13
5.6.110.0070.08720.99
5.6.100.0100.06020.97
5.6.90.0170.07720.97
5.6.80.0130.04720.38
5.6.70.4530.03320.38
5.5.350.0270.08720.38
5.5.340.0070.05718.09
5.5.330.0070.04320.36
5.5.320.0300.07020.28
5.5.310.0270.08020.30
5.5.300.0030.07717.98
5.5.290.0100.06717.99
5.5.280.0030.04320.88
5.5.270.0170.07720.80
5.5.260.0130.08320.87
5.5.250.0100.07320.59
5.5.240.0030.04020.29
5.4.450.0100.04319.47
5.4.440.0030.05319.18
5.4.430.0070.05319.57
5.4.420.0100.07719.48
5.4.410.0070.03719.36
5.4.400.0070.07319.16
5.4.390.0030.04719.02
5.4.380.0100.05019.16
5.4.370.0070.04319.26
5.4.360.0030.08318.93
5.4.350.0100.07718.85
5.4.340.0100.07019.25
5.4.320.0070.03719.21
5.4.310.0170.05319.25
5.4.300.0070.05018.88
5.4.290.0100.07319.15
5.4.280.0070.05019.25
5.4.270.0100.04319.15
5.4.260.0000.06019.15
5.4.250.0100.08019.08
5.4.240.0070.06319.16
5.4.230.0070.07318.85
5.4.220.0030.04719.01
5.4.210.0070.06319.16
5.4.200.0030.07019.08
5.4.190.0200.06718.92
5.4.180.0100.06718.87
5.4.170.0030.06319.14
5.4.160.0100.07718.84
5.4.150.0070.07718.86
5.4.140.0100.07316.39
5.4.130.0030.06716.53
5.4.120.0100.05716.40
5.4.110.0070.07016.28
5.4.100.0030.07716.29
5.4.90.0030.07716.43
5.4.80.0000.05316.36
5.4.70.0030.04316.43
5.4.60.0030.04016.36
5.4.50.0070.05316.25
5.4.40.0070.04016.25
5.4.30.0030.05016.27
5.4.20.0030.04316.27
5.4.10.0100.06316.38
5.4.00.0000.05015.85
5.3.290.0130.06014.56
5.3.280.0030.08014.76
5.3.270.0070.06014.61
5.3.260.0000.06714.53
5.3.250.0070.07314.64
5.3.240.0130.06014.64
5.3.230.0070.05314.66
5.3.220.0070.07714.46
5.3.210.0030.05314.63
5.3.200.0100.05014.59
5.3.190.0100.07314.62
5.3.180.0030.04714.64
5.3.170.0030.04314.62
5.3.160.0000.07714.57
5.3.150.0100.07314.58
5.3.140.0100.04714.56
5.3.130.0030.06314.71
5.3.120.0070.07314.61
5.3.110.0030.04014.59
5.3.100.0100.07014.10
5.3.90.0070.07314.02
5.3.80.0070.07014.10
5.3.70.0100.06313.95
5.3.60.0100.07313.98
5.3.50.0100.04714.11
5.3.40.0100.07013.93
5.3.30.0030.07013.87
5.3.20.0030.05713.71
5.3.10.0030.03713.61
5.3.00.0070.05313.65
5.2.170.0030.03011.32
5.2.160.0000.05011.22
5.2.150.0100.03711.30
5.2.140.0000.05711.19
5.2.130.0000.05011.07
5.2.120.0070.04311.27
5.2.110.0030.04311.16
5.2.100.0030.04011.18
5.2.90.0000.03711.27
5.2.80.0070.06711.15
5.2.70.0030.05311.11
5.2.60.0000.04711.11
5.2.50.0070.05011.18
5.2.40.0130.04011.18
5.2.30.0100.05011.14
5.2.20.0100.05310.96
5.2.10.0000.04310.86
5.2.00.0100.05310.73
5.1.60.0030.05310.16
5.1.50.0030.03710.06
5.1.40.0070.05010.04
5.1.30.0030.05310.34
5.1.20.0030.04710.37
5.1.10.0070.05310.13
5.1.00.0070.04010.07
5.0.50.0070.0479.55
5.0.40.0030.0209.55
5.0.30.0070.0409.55
5.0.20.0030.0379.55
5.0.10.0000.0509.55
5.0.00.0030.0679.55
4.4.90.0070.0209.55
4.4.80.0030.0339.55
4.4.70.0000.0209.55
4.4.60.0030.0239.55
4.4.50.0070.0339.55
4.4.40.0030.0379.55
4.4.30.0070.0309.55
4.4.20.0000.0309.55
4.4.10.0000.0379.55
4.4.00.0100.0479.55
4.3.110.0000.0339.55
4.3.100.0000.0279.55
4.3.90.0030.0339.55
4.3.80.0000.0439.55
4.3.70.0070.0339.55
4.3.60.0030.0179.55
4.3.50.0030.0339.55
4.3.40.0070.0509.55
4.3.30.0030.0309.55
4.3.20.0070.0279.55
4.3.10.0000.0379.55
4.3.00.0000.0279.55

preferences:
44.26 ms | 400 KiB | 5 Q