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.0160.00319.02
8.3.30.0110.00418.96
8.3.20.0080.00020.16
8.3.10.0040.00423.70
8.3.00.0000.00818.96
8.2.170.0070.00722.96
8.2.160.0030.01020.47
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.75
8.2.110.0000.00922.14
8.2.100.0080.00417.91
8.2.90.0040.00419.13
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0080.00417.89
8.2.50.0030.00618.07
8.2.40.0030.00521.30
8.2.30.0080.00018.30
8.2.20.0000.00817.99
8.2.10.0040.00418.30
8.2.00.0040.00418.04
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0070.00322.05
8.1.230.0060.00619.10
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00817.38
8.1.190.0080.00017.48
8.1.180.0030.00618.10
8.1.170.0060.00318.84
8.1.160.0040.00422.11
8.1.150.0040.00418.87
8.1.140.0000.00817.71
8.1.130.0040.00417.88
8.1.120.0050.00217.70
8.1.110.0030.00517.66
8.1.100.0030.00517.65
8.1.90.0040.00417.49
8.1.80.0000.00817.67
8.1.70.0040.00417.64
8.1.60.0080.00017.67
8.1.50.0000.00817.71
8.1.40.0000.00917.70
8.1.30.0040.00417.89
8.1.20.0000.00817.81
8.1.10.0040.00417.71
8.1.00.0060.00317.51
8.0.300.0050.00318.77
8.0.290.0030.00617.18
8.0.280.0030.00318.49
8.0.270.0040.00417.16
8.0.260.0030.00317.27
8.0.250.0040.00417.02
8.0.240.0030.00617.14
8.0.230.0070.00017.04
8.0.220.0070.00017.09
8.0.210.0000.00717.00
8.0.200.0030.00317.09
8.0.190.0030.00517.13
8.0.180.0040.00417.09
8.0.170.0040.00416.95
8.0.160.0000.00717.14
8.0.150.0050.00217.03
8.0.140.0070.00317.00
8.0.130.0060.00013.52
8.0.120.0040.00417.04
8.0.110.0080.00016.98
8.0.100.0040.00417.03
8.0.90.0050.00317.05
8.0.80.0150.00017.03
8.0.70.0000.00816.97
8.0.60.0070.00017.02
8.0.50.0040.00417.11
8.0.30.0100.01017.24
8.0.20.0090.01017.40
8.0.10.0000.00917.06
8.0.00.0120.00617.03
7.4.330.0030.00315.16
7.4.320.0030.00316.80
7.4.300.0000.00616.84
7.4.290.0050.00316.86
7.4.280.0050.00516.71
7.4.270.0000.00716.68
7.4.260.0000.00816.80
7.4.250.0050.00216.76
7.4.240.0030.00416.79
7.4.230.0070.00016.86
7.4.220.0090.00916.84
7.4.210.0040.01116.74
7.4.200.0050.00316.74
7.4.190.0070.00016.93
7.4.160.0110.00616.50
7.4.150.0100.01317.40
7.4.140.0110.00717.86
7.4.130.0110.00716.79
7.4.120.0040.01316.76
7.4.110.0030.01516.77
7.4.100.0120.01216.79
7.4.90.0070.01016.58
7.4.80.0120.00619.39
7.4.70.0100.01016.71
7.4.60.0060.01216.66
7.4.50.0030.00316.84
7.4.40.0070.01116.88
7.4.30.0140.00316.59
7.4.10.0080.01215.28
7.4.00.0070.01015.15
7.3.330.0070.00013.48
7.3.320.0060.00013.25
7.3.310.0000.00716.58
7.3.300.0000.00716.46
7.3.290.0140.00016.44
7.3.280.0100.00716.51
7.3.270.0030.01317.40
7.3.260.0060.01216.74
7.3.250.0060.01216.57
7.3.240.0070.01716.54
7.3.230.0120.00616.79
7.3.210.0140.01016.68
7.3.200.0040.01819.39
7.3.190.0130.00316.60
7.3.180.0100.00716.55
7.3.170.0030.01416.80
7.3.160.0050.01116.57
7.3.130.0110.00715.40
7.3.120.0070.00815.13
7.3.110.0100.00714.98
7.3.100.0050.00714.91
7.3.90.0070.00514.84
7.3.80.0050.00615.22
7.3.70.0050.01015.12
7.3.60.0050.00814.88
7.3.50.0080.00914.98
7.3.40.0080.00715.17
7.3.30.0080.00815.01
7.3.20.0100.00416.97
7.3.10.0040.00816.81
7.3.00.0060.00716.90
7.2.330.0070.01116.82
7.2.320.0030.01516.89
7.2.310.0090.01416.88
7.2.300.0090.00916.81
7.2.290.0090.00916.95
7.2.260.0060.01215.26
7.2.250.0100.01015.16
7.2.240.0070.00815.40
7.2.230.0070.00915.50
7.2.220.0030.01315.28
7.2.210.0050.00615.49
7.2.200.0050.01115.37
7.2.190.0020.01215.17
7.2.180.0060.00715.28
7.2.170.0090.00315.39
7.2.160.0020.01115.33
7.2.150.0070.00717.20
7.2.140.0100.00617.22
7.2.130.0090.00617.12
7.2.120.0090.00717.26
7.2.110.0080.00717.11
7.2.100.0050.00717.05
7.2.90.0060.01017.07
7.2.80.0090.00917.23
7.2.70.0070.00917.18
7.2.60.0050.00917.03
7.2.50.0060.01017.21
7.2.40.0100.00417.10
7.2.30.0060.00917.05
7.2.20.0050.01217.05
7.2.10.0020.01217.06
7.2.00.0080.00917.68
7.1.330.0020.00916.04
7.1.320.0090.00416.01
7.1.310.0000.01415.92
7.1.300.0100.00316.03
7.1.290.0020.01215.98
7.1.280.0030.00916.04
7.1.270.0050.00515.96
7.1.260.0110.00315.94
7.1.250.0050.00716.14
7.1.240.0040.01215.84
7.1.230.0070.01015.99
7.1.220.0040.01215.81
7.1.210.0070.00815.98
7.1.200.0100.00215.82
7.1.190.0050.01115.92
7.1.180.0060.00716.10
7.1.170.0030.00715.83
7.1.160.0030.01215.97
7.1.150.0050.01016.07
7.1.140.0020.01116.04
7.1.130.0050.00815.91
7.1.120.0050.01015.99
7.1.110.0050.00815.88
7.1.100.0060.01116.79
7.1.90.0070.00816.04
7.1.80.0000.01315.82
7.1.70.0070.00716.44
7.1.60.0100.00617.17
7.1.50.0050.00816.35
7.1.40.0020.01016.06
7.1.30.0020.00815.97
7.1.20.0020.00815.90
7.1.10.0050.00816.06
7.1.00.0040.03218.15
7.0.330.0090.00515.42
7.0.320.0020.01115.59
7.0.310.0050.00915.60
7.0.300.0060.00915.50
7.0.290.0070.00515.52
7.0.280.0090.00515.73
7.0.270.0060.00815.54
7.0.260.0050.00515.52
7.0.250.0000.01315.66
7.0.240.0060.00615.72
7.0.230.0080.00715.79
7.0.220.0070.00415.70
7.0.210.0080.00515.67
7.0.200.0050.00716.15
7.0.190.0050.01015.67
7.0.180.0050.01015.59
7.0.170.0060.00615.71
7.0.160.0060.00615.57
7.0.150.0020.01015.48
7.0.140.0070.02417.69
7.0.130.0030.01215.49
7.0.120.0020.00915.67
7.0.110.0040.00815.59
7.0.100.0070.00715.70
7.0.90.0040.01115.73
7.0.80.0060.03317.00
7.0.70.0080.03117.05
7.0.60.0250.02917.04
7.0.50.0220.03217.36
7.0.40.0060.01815.84
7.0.30.0060.01915.82
7.0.20.0080.03215.84
7.0.10.0070.03015.78
7.0.00.0030.03615.87
5.6.400.0080.00514.39
5.6.390.0100.00714.22
5.6.380.0030.01014.47
5.6.370.0050.01114.62
5.6.360.0060.00914.49
5.6.350.0030.00614.30
5.6.340.0020.00914.37
5.6.330.0050.00414.55
5.6.320.0020.01014.59
5.6.310.0000.01014.37
5.6.300.0080.00514.42
5.6.290.0030.01014.26
5.6.280.0080.02616.55
5.6.270.0020.00814.32
5.6.260.0060.00914.53
5.6.250.0050.01014.49
5.6.240.0020.01014.40
5.6.230.0040.02116.52
5.6.220.0060.03016.35
5.6.210.0050.02616.58
5.6.200.0080.03016.50
5.6.190.0050.02416.62
5.6.180.0070.02516.53
5.6.170.0060.03216.56
5.6.160.0030.02816.61
5.6.150.0040.03416.65
5.6.140.0060.02916.70
5.6.130.0080.02016.51
5.6.120.0040.03016.74
5.6.110.0040.03516.63
5.6.100.0070.03516.58
5.6.90.0140.02916.70
5.6.80.0020.03316.38
5.6.70.0060.03216.31
5.6.60.0060.03116.40
5.6.50.0040.03116.38
5.6.40.0080.02816.31
5.6.30.0050.01916.34
5.6.20.0060.03416.48
5.6.10.0100.02616.36
5.6.00.0060.02116.27
5.5.380.0080.00412.76
5.5.370.0060.02315.34
5.5.360.0060.03115.51
5.5.350.0060.02115.30
5.5.340.0060.02915.44
5.5.330.0030.02815.47
5.5.320.0050.02715.52
5.5.310.0100.02715.44
5.5.300.0080.01615.47
5.5.290.0050.01915.43
5.5.280.0070.03115.45
5.5.270.0060.02215.39
5.5.260.0080.01615.37
5.5.250.0030.02115.31
5.5.240.0020.02315.31
5.5.230.0080.02715.32
5.5.220.0080.01815.18
5.5.210.0070.01915.23
5.5.200.0050.01915.13
5.5.190.0050.03415.12
5.5.180.0000.02715.14
5.5.170.0020.01012.75
5.5.160.0060.03015.24
5.5.150.0070.02515.21
5.5.140.0040.01915.20
5.5.130.0010.02315.21
5.5.120.0040.01915.17
5.5.110.0070.01915.19
5.5.100.0040.02015.17
5.5.90.0070.01815.10
5.5.80.0030.01815.26
5.5.70.0070.01615.22
5.5.60.0050.01615.26
5.5.50.0040.02015.30
5.5.40.0070.01615.20
5.5.30.0010.02315.11
5.5.20.0030.01915.25
5.5.10.0060.01715.11
5.5.00.0050.01715.29
5.4.450.0070.02914.69
5.4.440.0060.03314.67
5.4.430.0020.02014.75
5.4.420.0060.01914.76
5.4.410.0060.01614.63
5.4.400.0030.02714.58
5.4.390.0060.03014.59
5.4.380.0020.03014.71
5.4.370.0060.02614.69
5.4.360.0030.02214.63
5.4.350.0050.02414.65
5.4.340.0050.01514.61
5.4.330.0030.00612.39
5.4.320.0030.03014.61
5.4.310.0030.02014.70
5.4.300.0030.03014.63
5.4.290.0050.02314.64
5.4.280.0030.02014.64
5.4.270.0040.01714.64
5.4.260.0030.01614.55
5.4.250.0010.01914.54
5.4.240.0050.01514.63
5.4.230.0040.01514.64
5.4.220.0040.01614.54
5.4.210.0050.02314.54
5.4.200.0050.01414.63
5.4.190.0040.01614.65
5.4.180.0020.01914.63
5.4.170.0050.01514.67
5.4.160.0030.01814.56
5.4.150.0050.01514.60
5.4.140.0050.01613.66
5.4.130.0050.01613.73
5.4.120.0060.01413.68
5.4.110.0060.01513.77
5.4.100.0040.01713.72
5.4.90.0040.01513.72
5.4.80.0010.01813.76
5.4.70.0020.01613.77
5.4.60.0040.01613.77
5.4.50.0040.01413.77
5.4.40.0050.01513.74
5.4.30.0050.01713.78
5.4.20.0010.01813.74
5.4.10.0050.01513.70
5.4.00.0010.01913.56
5.3.290.0040.02013.15
5.3.280.0030.01813.13
5.3.270.0050.01413.16
5.3.260.0010.01913.14
5.3.250.0040.01513.13
5.3.240.0030.01613.17
5.3.230.0040.01713.18
5.3.220.0040.02513.16
5.3.210.0020.02013.11
5.3.200.0030.01713.12
5.3.190.0020.02113.17
5.3.180.0070.01413.12
5.3.170.0060.01413.15
5.3.160.0010.01813.12
5.3.150.0010.01913.13
5.3.140.0040.01813.12
5.3.130.0020.01913.13
5.3.120.0020.01913.11
5.3.110.0050.01513.11
5.3.100.0060.01312.97
5.3.90.0020.02312.96
5.3.80.0060.02012.94
5.3.70.0020.01712.94
5.3.60.0020.01912.96
5.3.50.0020.01812.96
5.3.40.0010.01812.89
5.3.30.0020.01712.92
5.3.20.0020.01912.80
5.3.10.0040.01712.84
5.3.00.0040.01412.78
5.2.170.0020.02211.43
5.2.160.0040.02511.43
5.2.150.0040.03211.43
5.2.140.0010.01611.43
5.2.130.0040.02011.43
5.2.120.0030.01511.43
5.2.110.0030.01511.43
5.2.100.0050.02211.43
5.2.90.0030.01811.43
5.2.80.0030.01611.43
5.2.70.0100.02711.43
5.2.60.0010.01811.43
5.2.50.0070.02811.43
5.2.40.0070.02811.43
5.2.30.0070.03211.43
5.2.20.0030.02411.43
5.2.10.0020.03111.43
5.2.00.0030.02211.43
5.1.60.0050.02811.43
5.1.50.0080.02611.43
5.1.40.0030.02611.43
5.1.30.0030.03111.43
5.1.20.0060.02711.43
5.1.10.0030.03111.43
5.1.00.0050.02711.43
5.0.50.0050.02111.43
5.0.40.0030.02311.43
5.0.30.0030.03311.43
5.0.20.0030.02211.43
5.0.10.0000.02511.43
5.0.00.0020.03411.43
4.4.90.0030.00811.43
4.4.80.0020.01911.43
4.4.70.0020.01811.43
4.4.60.0030.01911.43
4.4.50.0030.02011.43
4.4.40.0020.03011.43
4.4.30.0030.01811.43
4.4.20.0030.01311.43
4.4.10.0030.01811.43
4.4.00.0030.02011.43
4.3.110.0040.01811.43
4.3.100.0060.01511.43
4.3.90.0020.01511.43
4.3.80.0010.01611.43
4.3.70.0000.01411.43
4.3.60.0030.01811.43
4.3.50.0050.01311.43
4.3.40.0050.02311.43
4.3.30.0020.01811.43
4.3.20.0030.01811.43
4.3.10.0040.01811.43
4.3.00.0020.01611.43

preferences:
50.77 ms | 400 KiB | 5 Q