3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '"¡Á É Ñ Elaskar me mandaba flores pero ñato 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('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; } 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.0100.00719.04
8.3.30.0120.00318.92
8.3.20.0040.00418.81
8.3.10.0080.00020.78
8.3.00.0050.00317.75
8.2.170.0120.00322.96
8.2.160.0090.00522.11
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00320.08
8.2.110.0000.00921.20
8.2.100.0000.01217.97
8.2.90.0080.00019.08
8.2.80.0000.00818.05
8.2.70.0070.00317.75
8.2.60.0000.00818.04
8.2.50.0030.00618.07
8.2.40.0060.00318.09
8.2.30.0030.00618.30
8.2.20.0060.00317.79
8.2.10.0000.00818.06
8.2.00.0060.00318.00
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00722.58
8.1.230.0080.00321.02
8.1.220.0040.00418.77
8.1.210.0000.00918.98
8.1.200.0030.00717.48
8.1.190.0000.00817.66
8.1.180.0050.00318.10
8.1.170.0040.00418.83
8.1.160.0000.00818.87
8.1.150.0030.00618.82
8.1.140.0080.00017.71
8.1.130.0040.00417.90
8.1.120.0040.00417.58
8.1.110.0040.00417.55
8.1.100.0040.00417.64
8.1.90.0050.00317.50
8.1.80.0040.00417.67
8.1.70.0080.00017.58
8.1.60.0040.00417.77
8.1.50.0040.00417.57
8.1.40.0040.00417.61
8.1.30.0040.00417.84
8.1.20.0030.00617.82
8.1.10.0000.00817.75
8.1.00.0060.00317.67
8.0.300.0070.00020.02
8.0.290.0040.00417.00
8.0.280.0040.00418.51
8.0.270.0000.00717.28
8.0.260.0030.00316.95
8.0.250.0040.00417.24
8.0.240.0060.00617.18
8.0.230.0000.00817.11
8.0.220.0000.00717.19
8.0.210.0070.00016.97
8.0.200.0030.00317.23
8.0.190.0000.00817.25
8.0.180.0040.00417.10
8.0.170.0060.00317.18
8.0.160.0050.00217.14
8.0.150.0030.00517.16
8.0.140.0090.00317.12
8.0.130.0000.00713.54
8.0.120.0000.00817.11
8.0.110.0060.00317.14
8.0.100.0050.00217.14
8.0.90.0080.00016.95
8.0.80.0060.00917.18
8.0.70.0000.00817.00
8.0.60.0000.00717.04
8.0.50.0090.00017.09
8.0.30.0090.01217.36
8.0.20.0060.01117.22
8.0.10.0000.00817.26
8.0.00.0100.01117.04
7.4.330.0070.00015.09
7.4.320.0060.00016.77
7.4.300.0060.00016.89
7.4.290.0000.00716.79
7.4.280.0050.00616.78
7.4.270.0000.00816.74
7.4.260.0050.00013.55
7.4.250.0030.00616.77
7.4.240.0040.00416.69
7.4.230.0000.00716.93
7.4.220.0140.00716.87
7.4.210.0060.00916.88
7.4.200.0000.00816.67
7.4.190.0040.00416.96
7.4.160.0090.00616.66
7.4.150.0040.01517.07
7.4.140.0060.01117.41
7.4.130.0080.00916.85
7.4.120.0070.01016.65
7.4.110.0090.00916.80
7.4.100.0090.01616.81
7.4.90.0090.00916.88
7.4.80.0090.00918.80
7.4.70.0100.00716.53
7.4.60.0040.01516.68
7.4.50.0030.00616.58
7.4.40.0070.00722.27
7.4.30.0060.01216.59
7.4.00.0030.01415.04
7.3.330.0040.00313.51
7.3.320.0060.00013.30
7.3.310.0080.00016.60
7.3.300.0000.00716.57
7.3.290.0110.00416.55
7.3.280.0100.00716.54
7.3.270.0110.00817.07
7.3.260.0060.01318.24
7.3.250.0130.00416.70
7.3.240.0070.01016.62
7.3.230.0040.01416.69
7.3.210.0060.01216.98
7.3.200.0170.00619.39
7.3.190.0150.00916.56
7.3.180.0070.01116.73
7.3.170.0080.00816.83
7.3.160.0040.01216.74
7.3.120.0110.00715.21
7.2.330.0090.00916.87
7.2.320.0160.00716.89
7.2.310.0180.03016.88
7.2.300.0130.00316.88
7.2.290.0030.01417.08
7.2.00.0070.00719.63
7.1.100.0040.01218.59
7.1.70.0060.00317.33
7.1.60.0060.01619.40
7.1.50.0070.01117.20
7.1.00.0030.04722.49
7.0.200.0050.00316.98
7.0.140.0070.06722.03
7.0.60.0030.08720.04
7.0.50.0030.04017.93
7.0.40.0130.05020.12
7.0.30.0230.08320.15
7.0.20.0400.08020.14
7.0.10.0070.06020.39
7.0.00.0100.05020.14
5.6.280.0070.07021.13
5.6.210.0130.05020.48
5.6.200.0070.05318.17
5.6.190.0070.08320.68
5.6.180.0530.05320.46
5.6.170.0330.07720.40
5.6.160.0100.03320.50
5.6.150.0030.05018.18
5.6.140.0070.03718.19
5.6.130.0000.04318.25
5.6.120.0000.04320.99
5.6.110.0070.06720.90
5.6.100.0130.07721.03
5.6.90.0070.08321.01
5.6.80.0070.08320.37
5.5.350.0070.04320.36
5.5.340.0070.03717.95
5.5.330.0030.08720.14
5.5.320.0230.04320.36
5.5.310.0330.06320.52
5.5.300.0030.05317.98
5.5.290.0170.07317.96
5.5.280.0130.05320.97
5.5.270.0170.05020.90
5.5.260.0130.06720.87
5.5.250.0300.07320.78
5.5.240.0130.05720.16
5.4.450.0100.08019.18
5.4.440.0070.03719.49
5.4.430.0100.05719.57
5.4.420.0070.08019.57
5.4.410.0100.07319.34
5.4.400.0070.05318.86
5.4.390.0100.03318.85
5.4.380.0070.07718.88
5.4.370.0100.07318.93
5.4.360.0130.07319.09
5.4.350.0000.04319.17
5.4.340.0000.08018.98
5.4.320.0030.04018.86
5.4.310.0000.04019.02
5.4.300.0030.03719.25
5.4.290.0070.03319.25
5.4.280.0030.04019.24
5.4.270.0030.03719.03
5.4.260.0000.04019.15
5.4.250.0000.04018.86
5.4.240.0030.03718.98
5.4.230.0070.03319.15
5.4.220.0100.03019.16
5.4.210.0030.03718.96
5.4.200.0070.03318.97
5.4.190.0000.04019.02
5.4.180.0000.04019.16
5.4.170.0100.03018.85
5.4.160.0030.03718.86
5.4.150.0030.03718.96
5.4.140.0070.03016.29
5.4.130.0030.03316.32
5.4.120.0030.03716.30
5.4.110.0070.03316.53
5.4.100.0030.03316.47
5.4.90.0000.03716.43
5.4.80.0000.04016.47
5.4.70.0070.03016.47
5.4.60.0000.03716.27
5.4.50.0030.05016.40
5.4.40.0030.04016.39
5.4.30.0100.03016.64
5.4.20.0100.06316.36
5.4.10.0030.07716.64
5.4.00.0070.05315.98
5.3.290.0000.05014.83
5.3.280.0070.04014.66
5.3.270.0030.03714.66
5.3.260.0030.03714.61
5.3.250.0000.04714.65
5.3.240.0100.03014.69
5.3.230.0070.04014.60
5.3.220.0100.03014.58
5.3.210.0000.04014.57
5.3.200.0100.02714.57
5.3.190.0000.04014.50
5.3.180.0030.04714.59
5.3.170.0030.03714.58
5.3.160.0100.03014.63
5.3.150.0070.03314.59
5.3.140.0030.07714.56
5.3.130.0030.06314.57
5.3.120.0100.03714.59
5.3.110.0070.05014.55
5.3.100.0070.04014.20
5.3.90.0000.05314.21
5.3.80.0070.03714.03
5.3.70.0100.05014.06
5.3.60.0070.04314.02
5.3.50.0000.04713.96
5.3.40.0070.04713.98
5.3.30.0030.04013.89
5.3.20.0170.06013.73
5.3.10.0070.03313.71
5.3.00.0130.06313.70
5.2.170.0000.03711.23
5.2.160.0070.06011.21
5.2.150.0030.04011.17
5.2.140.0070.02711.19
5.2.130.0100.04711.08
5.2.120.0130.03011.13
5.2.110.0100.04711.11
5.2.100.0070.06011.00
5.2.90.0070.05011.15
5.2.80.0030.06311.11
5.2.70.0030.03711.15
5.2.60.0070.03011.11
5.2.50.0070.04311.02
5.2.40.0130.02011.02
5.2.30.0170.04711.06
5.2.20.0030.03710.86
5.2.10.0070.04710.79
5.2.00.0100.06310.69
5.1.60.0000.0339.99
5.1.50.0070.0309.99
5.1.40.0070.0239.99
5.1.30.0030.04710.34
5.1.20.0030.03010.25
5.1.10.0000.05310.15
5.1.00.0030.04710.15
5.0.50.0070.0438.63
5.0.40.0070.0408.49
5.0.30.0000.0378.27
5.0.20.0100.0408.22
5.0.10.0000.0308.16
5.0.00.0000.0408.32
4.4.90.0000.0207.42
4.4.80.0070.0177.42
4.4.70.0000.0207.42
4.4.60.0030.0337.42
4.4.50.0030.0277.42
4.4.40.0000.0477.42
4.4.30.0000.0407.42
4.4.20.0000.0277.42
4.4.10.0030.0307.42
4.4.00.0030.0307.42
4.3.110.0030.0237.42
4.3.100.0030.0137.42
4.3.90.0000.0377.42
4.3.80.0000.0307.42
4.3.70.0030.0377.42
4.3.60.0100.0207.42
4.3.50.0000.0277.42
4.3.40.0030.0407.42
4.3.30.0030.0137.42
4.3.20.0030.0137.42
4.3.10.0000.0307.42
4.3.00.0000.0207.42

preferences:
39.08 ms | 400 KiB | 5 Q