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.40.0100.00618.96
8.3.30.0130.00318.96
8.3.20.0060.00318.77
8.3.10.0040.00420.78
8.3.00.0080.00017.75
8.2.170.0090.00622.96
8.2.160.0100.00322.25
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0030.00521.13
8.2.110.0060.00321.20
8.2.100.0080.00318.03
8.2.90.0040.00419.40
8.2.80.0030.00517.80
8.2.70.0030.00617.75
8.2.60.0030.00618.04
8.2.50.0040.00418.07
8.2.40.0030.00518.20
8.2.30.0050.00218.18
8.2.20.0040.00417.79
8.2.10.0040.00418.09
8.2.00.0050.00317.90
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00520.75
8.1.230.0040.00820.84
8.1.220.0050.00317.74
8.1.210.0030.00618.89
8.1.200.0030.00617.48
8.1.190.0050.00317.79
8.1.180.0060.00318.10
8.1.170.0040.00418.79
8.1.160.0040.00418.87
8.1.150.0080.00018.78
8.1.140.0000.00817.75
8.1.130.0000.00717.88
8.1.120.0030.00517.67
8.1.110.0000.00817.55
8.1.100.0080.00017.59
8.1.90.0050.00317.63
8.1.80.0040.00417.57
8.1.70.0040.00417.59
8.1.60.0000.00917.65
8.1.50.0000.00817.56
8.1.40.0060.00317.63
8.1.30.0080.00017.85
8.1.20.0090.00017.84
8.1.10.0040.00417.71
8.1.00.0000.00817.52
8.0.300.0060.00619.90
8.0.290.0070.00017.00
8.0.280.0040.00418.41
8.0.270.0070.00016.90
8.0.260.0040.00217.00
8.0.250.0070.00017.13
8.0.240.0040.00417.14
8.0.230.0070.00017.03
8.0.220.0040.00417.06
8.0.210.0000.00717.10
8.0.200.0060.00617.16
8.0.190.0000.00817.09
8.0.180.0060.00317.14
8.0.170.0030.00617.08
8.0.160.0040.00417.14
8.0.150.0090.00016.98
8.0.140.0000.00817.03
8.0.130.0070.00313.44
8.0.120.0000.00816.99
8.0.110.0050.00217.13
8.0.100.0040.00416.96
8.0.90.0040.00417.07
8.0.80.0140.00317.08
8.0.70.0040.00416.94
8.0.60.0030.00516.95
8.0.50.0080.00017.05
8.0.30.0110.01017.31
8.0.20.0140.00917.03
8.0.10.0000.00817.31
8.0.00.0120.00816.89
7.4.330.0030.00313.25
7.4.320.0070.00016.87
7.4.300.0030.00316.69
7.4.290.0000.00816.71
7.4.280.0050.00516.80
7.4.270.0000.00816.79
7.4.260.0000.00613.48
7.4.250.0030.00616.78
7.4.240.0000.00816.84
7.4.230.0040.00416.67
7.4.220.0130.00316.75
7.4.210.0080.00716.83
7.4.200.0070.00016.68
7.4.190.0000.00716.89
7.4.160.0130.00316.59
7.4.150.0130.00716.87
7.4.140.0140.00716.74
7.4.130.0120.00716.81
7.4.120.0070.01116.78
7.4.110.0100.00716.48
7.4.100.0060.01516.71
7.4.90.0120.00616.81
7.4.80.0120.00916.55
7.4.70.0060.01316.86
7.4.60.0110.01216.70
7.4.50.0030.00316.65
7.4.40.0030.01016.79
7.4.30.0090.00916.88
7.4.00.0060.00615.07
7.3.330.0000.00613.46
7.3.320.0000.00513.45
7.3.310.0000.00716.39
7.3.300.0030.00316.48
7.3.290.0060.00916.51
7.3.280.0100.00716.53
7.3.270.0070.01116.71
7.3.260.0130.01216.51
7.3.250.0160.00616.77
7.3.240.0140.00516.49
7.3.230.0060.01216.84
7.3.210.0110.00716.61
7.3.200.0060.01319.39
7.3.190.0070.01416.52
7.3.180.0150.00216.57
7.3.170.0080.00916.59
7.3.160.0060.01016.59
7.3.120.0070.00815.09
7.3.110.0070.00814.97
7.3.100.0050.01014.99
7.3.90.0050.01214.94
7.3.80.0080.00814.92
7.3.70.0080.00914.90
7.3.60.0030.01014.95
7.3.50.0050.01015.04
7.3.40.0050.00914.94
7.3.30.0070.00814.97
7.3.20.0020.01416.83
7.3.10.0130.00616.87
7.3.00.0060.01116.92
7.2.330.0050.01316.92
7.2.320.0070.01016.81
7.2.310.0140.01116.82
7.2.300.0070.01016.86
7.2.290.0070.01016.92
7.2.240.0050.01115.21
7.2.230.0040.01215.19
7.2.220.0070.01015.32
7.2.210.0130.00315.30
7.2.200.0070.01115.42
7.2.190.0030.01115.23
7.2.180.0050.00915.10
7.2.170.0090.00515.25
7.2.160.0050.00614.96
7.2.150.0080.00617.03
7.2.140.0050.00916.91
7.2.130.0070.01016.91
7.2.120.0050.01117.06
7.2.110.0100.00717.01
7.2.100.0090.00617.10
7.2.90.0080.00617.23
7.2.80.0070.00516.91
7.2.70.0070.01017.07
7.2.60.0040.00916.91
7.2.50.0060.01017.24
7.2.40.0090.00717.23
7.2.30.0080.00717.15
7.2.20.0080.00717.05
7.2.10.0080.00617.10
7.2.00.0050.01117.13
7.1.330.0090.00616.03
7.1.320.0050.01015.72
7.1.310.0050.01015.88
7.1.300.0040.01115.82
7.1.290.0040.01615.97
7.1.280.0030.00816.03
7.1.270.0070.00615.79
7.1.260.0070.01015.86
7.1.250.0100.00315.81
7.1.70.0030.00617.40
7.1.60.0100.01619.40
7.1.50.0100.01317.25
7.1.00.0030.06722.48
7.0.200.0000.01016.71
7.0.140.0030.08722.02
7.0.120.0070.07022.09
7.0.60.0070.05719.90
7.0.50.0030.07018.01
7.0.40.0070.04020.17
7.0.30.0330.07320.33
7.0.20.0270.05320.31
7.0.10.0070.05020.39
7.0.00.0070.04020.15
5.6.280.0170.06020.82
5.6.210.0070.06320.48
5.6.200.0100.04018.22
5.6.190.0170.06320.46
5.6.180.0300.06020.48
5.6.170.0130.04720.47
5.6.160.0000.06320.53
5.6.150.0100.04318.20
5.6.140.0070.04718.29
5.6.130.0070.08018.19
5.6.120.0100.05720.99
5.6.110.0070.04720.97
5.6.100.0070.06321.02
5.6.90.0100.07721.09
5.6.80.0100.07720.42
5.6.70.4530.03720.39
5.5.350.0270.06720.34
5.5.340.0030.05318.10
5.5.330.0170.08020.30
5.5.320.0170.04020.27
5.5.310.0230.04320.37
5.5.300.0030.04318.09
5.5.290.0070.05317.92
5.5.280.0130.05020.87
5.5.270.0200.06020.76
5.5.260.0130.08020.96
5.5.250.0170.07020.59
5.5.240.0030.03720.17
5.4.450.0030.08319.54
5.4.440.0030.08319.59
5.4.430.0100.08019.33
5.4.420.0100.07019.52
5.4.410.0130.06719.23
5.4.400.0070.04319.25
5.4.390.0100.07319.16
5.4.380.0070.03719.09
5.4.370.0030.08719.13
5.4.360.0070.07719.25
5.4.350.0000.04719.21
5.4.340.0100.04318.88
5.4.320.0100.03718.86
5.4.310.0030.08318.88
5.4.300.0100.05019.24
5.4.290.0100.03318.86
5.4.280.0030.04719.15
5.4.270.0130.03319.25
5.4.260.0070.04318.93
5.4.250.0000.05319.23
5.4.240.0070.05718.97
5.4.230.0070.06719.14
5.4.220.0100.03319.20
5.4.210.0000.04319.16
5.4.200.0000.08019.11
5.4.190.0030.04019.20
5.4.180.0100.04019.14
5.4.170.0170.06019.20
5.4.160.0030.06319.11
5.4.150.0070.07718.84
5.4.140.0030.04716.55
5.4.130.0030.03716.35
5.4.120.0170.04316.37
5.4.110.0100.05316.34
5.4.100.0000.04016.47
5.4.90.0030.04316.30
5.4.80.0100.04016.40
5.4.70.0070.06316.28
5.4.60.0100.07316.38
5.4.50.0070.07316.64
5.4.40.0100.07016.27
5.4.30.0100.06316.27
5.4.20.0200.06016.38
5.4.10.0030.07316.40
5.4.00.0030.05715.71
5.3.290.0030.04714.69
5.3.280.0030.04014.63
5.3.270.0100.05014.64
5.3.260.0000.04714.62
5.3.250.0030.04714.65
5.3.240.0070.06314.66
5.3.230.0030.04014.63
5.3.220.0030.04014.57
5.3.210.0030.08014.73
5.3.200.0000.04314.57
5.3.190.0000.04014.57
5.3.180.0070.07014.57
5.3.170.0130.02714.57
5.3.160.0100.07314.63
5.3.150.0100.07014.63
5.3.140.0100.07014.57
5.3.130.0130.06714.71
5.3.120.0130.06714.61
5.3.110.0070.07714.57
5.3.100.0130.06714.10
5.3.90.0100.07314.20
5.3.80.0030.07314.21
5.3.70.0170.06714.20
5.3.60.0130.03714.03
5.3.50.0100.07014.02
5.3.40.0100.07313.99
5.3.30.0000.03713.92
5.3.20.0000.04013.78
5.3.10.0070.04013.70
5.3.00.0130.06313.70
5.2.170.0000.03711.32
5.2.160.0070.02711.12
5.2.150.0030.03011.18
5.2.140.0030.04011.32
5.2.130.0070.05011.12
5.2.120.0000.04011.18
5.2.110.0070.04011.18
5.2.100.0100.05711.19
5.2.90.0070.06011.03
5.2.80.0030.04711.06
5.2.70.0130.05311.10
5.2.60.0100.05711.02
5.2.50.0000.06311.04
5.2.40.0070.06011.15
5.2.30.0070.04310.98
5.2.20.0070.06311.04
5.2.10.0030.06010.91
5.2.00.0070.04310.77
5.1.60.0030.0339.98
5.1.50.0000.03010.07
5.1.40.0000.0479.96
5.1.30.0000.04310.36
5.1.20.0100.05010.36
5.1.10.0070.05710.11
5.1.00.0030.05310.07
5.0.50.0030.0308.54
5.0.40.0030.0278.41
5.0.30.0070.0608.30
5.0.20.0000.0238.21
5.0.10.0030.0438.25
5.0.00.0030.0678.16
4.4.90.0030.0277.87
4.4.80.0070.0337.87
4.4.70.0000.0337.87
4.4.60.0070.0237.87
4.4.50.0070.0307.87
4.4.40.0000.0307.87
4.4.30.0070.0337.87
4.4.20.0030.0237.87
4.4.10.0070.0237.87
4.4.00.0000.0477.87
4.3.110.0000.0377.87
4.3.100.0070.0237.87
4.3.90.0000.0337.87
4.3.80.0070.0507.87
4.3.70.0030.0237.87
4.3.60.0070.0177.87
4.3.50.0070.0307.87
4.3.40.0070.0437.87
4.3.30.0000.0337.87
4.3.20.0000.0277.87
4.3.10.0000.0407.87
4.3.00.0000.0337.87

preferences:
54.45 ms | 400 KiB | 5 Q