3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '"¡Á É Ñ Elaskar me mandaba flores pero atña yo creía que eran de Fñariña 7!", dijo Dominique Pestaña'; function parseStopWords($text){ $text = preg_replace('/[^a-zA-Z0-9áéíóúñÁÉÍÓÚÑ¡\', ]/i','',$text); $stopwords = array('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; } echo parseStopWords($text); die;

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.0120.00919.14
8.3.30.0000.01518.87
8.3.20.0050.00318.91
8.3.10.0030.00521.09
8.3.00.0030.00519.56
8.2.170.0090.00622.96
8.2.160.0120.00320.57
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00721.19
8.2.110.0030.00622.20
8.2.100.0060.00617.96
8.2.90.0000.00819.04
8.2.80.0050.00319.38
8.2.70.0040.00417.88
8.2.60.0050.00518.05
8.2.50.0030.00618.07
8.2.40.0030.00518.16
8.2.30.0000.00821.18
8.2.20.0040.00417.91
8.2.10.0040.00417.91
8.2.00.0040.00817.94
8.1.270.0050.00323.99
8.1.260.0090.00926.35
8.1.250.0000.00828.09
8.1.240.0060.00322.55
8.1.230.0090.00320.99
8.1.220.0050.00318.77
8.1.210.0030.00519.00
8.1.200.0070.00317.60
8.1.190.0030.00617.54
8.1.180.0000.00818.10
8.1.170.0040.00418.69
8.1.160.0000.00718.96
8.1.150.0030.00518.79
8.1.140.0030.00617.69
8.1.130.0050.00217.90
8.1.120.0050.00217.55
8.1.110.0030.00517.59
8.1.100.0050.00317.54
8.1.90.0080.00017.64
8.1.80.0020.00517.62
8.1.70.0000.00717.60
8.1.60.0000.00817.75
8.1.50.0050.00317.61
8.1.40.0000.00817.71
8.1.30.0040.00417.84
8.1.20.0030.00617.75
8.1.10.0000.00817.72
8.1.00.0090.00017.63
8.0.300.0000.00820.16
8.0.290.0040.00417.18
8.0.280.0040.00418.43
8.0.270.0000.00717.23
8.0.260.0030.00617.07
8.0.250.0080.00017.25
8.0.240.0030.00517.14
8.0.230.0000.00817.10
8.0.220.0040.00417.09
8.0.210.0050.00317.05
8.0.200.0030.00317.10
8.0.190.0030.00617.15
8.0.180.0000.00817.18
8.0.170.0070.00017.19
8.0.160.0030.00517.26
8.0.150.0040.00417.02
8.0.140.0020.00517.15
8.0.130.0030.00413.60
8.0.120.0080.00017.20
8.0.110.0040.00417.08
8.0.100.0040.00417.18
8.0.90.0000.00817.12
8.0.80.0060.00917.13
8.0.70.0040.00417.10
8.0.60.0000.00817.09
8.0.50.0030.00517.21
8.0.30.0100.00917.23
8.0.20.0100.00917.40
8.0.10.0040.00417.09
8.0.00.0110.01116.96
7.4.330.0020.00216.89
7.4.320.0040.00416.86
7.4.300.0030.00316.83
7.4.290.0000.00716.78
7.4.280.0050.00316.87
7.4.270.0040.00416.88
7.4.260.0000.00613.50
7.4.250.0000.00816.78
7.4.240.0030.00516.66
7.4.230.0000.00716.68
7.4.220.0030.01416.91
7.4.210.0090.01016.76
7.4.200.0040.00416.97
7.4.190.0000.00916.63
7.4.160.0130.01016.82
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0070.01216.96
7.4.120.0080.01116.82
7.4.110.0030.01916.80
7.4.100.0120.01216.73
7.4.90.0030.01616.84
7.4.80.0100.00719.39
7.4.70.0070.01116.79
7.4.60.0100.00716.66
7.4.50.0040.00416.68
7.4.40.0030.01222.77
7.4.30.0070.01016.76
7.4.00.0030.01315.27
7.3.330.0030.00313.52
7.3.320.0000.00613.30
7.3.310.0000.00716.54
7.3.300.0070.00016.55
7.3.290.0040.01116.54
7.3.280.0090.01116.56
7.3.270.0150.00317.40
7.3.260.0150.00418.24
7.3.250.0120.01216.81
7.3.240.0120.00616.88
7.3.230.0120.00416.78
7.3.210.0080.01216.82
7.3.200.0050.01319.39
7.3.190.0070.01416.56
7.3.180.0110.01116.52
7.3.170.0070.01016.55
7.3.160.0110.00616.82
7.3.120.0000.01215.23
7.2.330.0120.00617.03
7.2.320.0060.01316.91
7.2.310.0060.01216.98
7.2.300.0110.00616.76
7.2.290.0090.00616.88
7.2.60.0060.01017.07
7.2.00.0130.01019.61
7.1.200.0030.01315.66
7.1.100.0000.01418.41
7.1.70.0030.01017.40
7.1.60.0070.00717.66
7.1.50.0030.00917.23
7.1.40.0060.01916.98
7.1.30.0060.00616.90
7.1.20.0030.00917.11
7.1.10.0000.00916.80
7.1.00.0060.00917.05
7.0.200.0040.00416.61
7.0.190.0030.00916.80
7.0.180.0000.01116.55
7.0.170.0030.00516.48
7.0.160.0030.00516.64
7.0.150.0000.00916.54
7.0.140.0030.00616.89
7.0.130.0080.00016.73
7.0.120.0040.00416.86
7.0.110.0040.00416.77
7.0.100.0000.00916.57
7.0.90.0050.00516.72
7.0.80.0040.00416.63
7.0.70.0070.00716.63
7.0.60.0000.00816.67
7.0.50.0040.00416.67
7.0.40.0040.00414.88
7.0.30.0000.00814.88
7.0.20.0000.01214.88
7.0.10.0000.00814.88
7.0.00.0050.00514.88
5.6.300.0070.04320.75
5.6.290.0070.06420.78
5.6.280.0070.05020.99
5.6.270.0000.06020.87
5.6.260.0070.04321.05
5.6.250.0100.03721.04
5.6.240.0030.04820.81
5.6.230.0130.07320.86
5.6.220.0040.03920.96
5.6.210.0030.04120.98
5.6.200.0060.03920.83
5.6.190.0070.04120.74
5.6.180.0170.04320.82
5.6.170.0060.03521.01
5.6.160.0060.04220.99
5.6.150.0130.04720.86
5.6.140.0030.04421.05
5.6.130.0030.08520.77
5.6.120.0030.04621.02
5.6.110.0000.04720.80
5.6.100.0030.05820.85
5.6.90.0060.03820.84
5.6.80.0000.04420.42
5.6.70.0030.09020.33
5.6.60.0000.06220.21
5.6.50.0030.03920.38
5.6.40.0030.03720.38
5.6.30.0000.04220.19
5.6.20.0070.04820.15
5.6.10.0100.03720.18
5.6.00.0070.03920.28
5.5.380.0030.03817.58
5.5.370.0030.08517.53
5.5.360.0000.04817.52
5.5.350.0000.04217.46
5.5.340.0070.04018.04
5.5.330.0000.04618.07
5.5.320.0240.03718.05
5.5.310.0100.03918.04
5.5.300.0070.06418.01
5.5.290.0030.05818.06
5.5.280.0030.04418.06
5.5.270.0210.03818.10
5.5.260.0030.04217.71
5.5.250.0030.03917.91
5.5.240.0000.04317.40
5.5.230.0030.08117.48
5.5.220.0030.03717.55
5.5.210.0000.04317.50
5.5.200.0030.03817.43
5.5.190.0000.04117.45
5.5.180.0030.07217.22
5.5.160.0030.03617.48
5.5.150.0040.03917.50
5.5.140.0070.03317.45
5.5.130.0000.04117.45
5.5.120.0000.04417.48
5.5.110.0100.03717.44
5.5.100.0680.02317.35
5.5.90.0070.03317.35
5.5.80.0200.03617.34
5.5.70.0000.04516.99
5.5.60.0230.03917.30
5.5.50.0000.04517.42
5.5.40.0060.03717.25
5.5.30.0000.04217.10
5.5.20.0030.03917.28
5.5.10.0030.04216.94
5.5.00.0000.04617.41
5.4.450.0070.03919.54
5.4.440.0030.04219.46
5.4.430.0000.04719.30
5.4.420.0030.04419.53
5.4.410.0030.03819.36
5.4.400.0000.05118.99
5.4.390.0030.08019.08
5.4.380.0030.04618.88
5.4.370.0030.04219.09
5.4.360.0040.04218.93
5.4.350.0000.04318.98
5.4.340.0000.04618.98
5.4.320.0000.04118.99
5.4.310.0100.03218.95
5.4.300.0040.03619.21
5.4.290.0030.04018.93
5.4.280.0040.04018.89
5.4.270.0060.03618.98
5.4.260.0070.04219.09
5.4.250.0030.03719.16
5.4.240.0070.06919.07
5.4.230.0000.04319.21
5.4.220.0070.03919.08
5.4.210.0000.03819.06
5.4.200.0000.04419.23
5.4.190.0000.04318.98
5.4.180.0040.03519.13
5.4.170.0040.03919.20
5.4.160.0030.03919.12
5.4.150.0000.04418.87
5.4.140.0040.03516.54
5.4.130.0000.04116.53
5.4.120.0070.03016.60
5.4.110.0060.03216.70
5.4.100.0000.04216.61
5.4.90.0030.03516.75
5.4.80.0060.03516.76
5.4.70.0030.05816.57
5.4.60.0030.03516.70
5.4.50.0030.03816.72
5.4.40.0100.02916.51
5.4.30.0070.03016.45
5.4.20.0000.03716.71
5.4.10.0030.03816.48
5.4.00.0070.03116.08
5.3.290.0000.04015.04
5.3.280.0090.03114.88
5.3.270.0030.04914.89
5.3.260.0070.03714.88
5.3.250.0040.04014.91
5.3.240.0060.03714.89
5.3.230.0000.03914.89
5.3.220.0000.03814.88
5.3.210.0070.04914.88
5.3.200.0040.03914.88
5.3.190.0030.03514.88
5.3.180.0030.03714.88
5.3.170.0100.03214.88
5.3.160.0060.03614.88
5.3.150.0040.04614.88
5.3.140.0000.04014.88
5.3.130.0030.05814.88
5.3.120.0030.03614.88
5.3.110.0000.05014.88
5.3.100.0030.03614.88
5.3.90.0000.04814.88
5.3.80.0000.03714.88
5.3.70.0000.05214.88
5.3.60.0000.03914.88
5.3.50.0130.03714.88
5.3.40.0030.03814.88
5.3.30.0030.03314.88
5.3.20.0000.04314.88
5.3.10.0030.04514.88
5.3.00.0040.03214.88
5.2.170.0100.03314.88
5.2.160.0130.03314.88
5.2.150.0070.02714.88
5.2.140.0030.03014.88
5.2.130.0070.02514.88
5.2.120.0070.05314.88
5.2.110.0030.03314.88
5.2.100.0070.05014.88
5.2.90.0030.03214.88
5.2.80.0000.03314.88
5.2.70.0100.03014.88
5.2.60.0000.03514.88
5.2.50.0030.04114.88
5.2.40.0000.03314.88
5.2.30.0070.02714.88
5.2.20.0000.03214.88
5.2.10.0030.02914.88
5.2.00.0000.03414.88
5.1.60.0000.02614.88
5.1.50.0000.03814.88
5.1.40.0000.02814.88
5.1.30.0160.02514.88
5.1.20.0030.03214.88
5.1.10.0030.03714.88
5.1.00.0000.04714.88
5.0.50.0000.03914.88
5.0.40.0000.03414.88
5.0.30.0000.03514.88
5.0.20.0030.02414.88
5.0.10.0030.02214.88
5.0.00.0030.03214.88
4.4.90.0000.01814.88
4.4.80.0000.01814.88
4.4.70.0000.01714.88
4.4.60.0000.03214.88
4.4.50.0000.01714.88
4.4.40.0030.02514.88
4.4.30.0000.01614.88
4.4.20.0000.01614.88
4.4.10.0070.02014.88
4.4.00.0070.05014.88
4.3.110.0030.01614.88
4.3.100.0000.02114.88
4.3.90.0000.01614.88
4.3.80.0030.02814.88
4.3.70.0030.01314.88
4.3.60.0000.01714.88
4.3.50.0060.01214.88
4.3.40.0000.02414.88
4.3.30.0030.01614.88
4.3.20.0040.01514.88
4.3.10.0060.01314.88
4.3.00.0040.01914.88

preferences:
31.05 ms | 400 KiB | 5 Q