3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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); $text = str_replace(" a ", "", $text); return $text; } echo parseStopWords('¿Qué ha sido de nuestra niñez?');

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.0070.01418.81
8.3.50.0110.00822.26
8.3.40.0090.00918.96
8.3.30.0180.00418.87
8.3.20.0150.00420.27
8.3.10.0030.00621.96
8.3.00.0040.00422.30
8.2.180.0110.01116.48
8.2.170.0110.00422.96
8.2.160.0040.01620.95
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0030.00526.16
8.2.120.0060.00317.72
8.2.110.0040.00721.11
8.2.100.0000.01118.28
8.2.90.0030.00519.30
8.2.80.0060.00318.00
8.2.70.0040.00417.73
8.2.60.0030.00617.90
8.2.50.0030.00618.22
8.2.40.0000.00920.61
8.2.30.0040.00421.09
8.2.20.0040.00417.90
8.2.10.0040.00418.05
8.2.00.0040.00417.99
8.1.280.0200.00725.92
8.1.270.0080.00022.05
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0040.00720.85
8.1.230.0110.00020.49
8.1.220.0000.00917.79
8.1.210.0080.00018.77
8.1.200.0030.00617.60
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0030.00618.79
8.1.160.0040.00418.87
8.1.150.0040.00420.16
8.1.140.0050.00217.54
8.1.130.0000.00717.81
8.1.120.0040.00417.63
8.1.110.0000.00717.58
8.1.100.0040.00417.66
8.1.90.0040.00417.56
8.1.80.0020.00517.58
8.1.70.0040.00417.67
8.1.60.0000.00917.81
8.1.50.0040.00417.75
8.1.40.0030.00617.71
8.1.30.0040.00417.76
8.1.20.0030.00617.86
8.1.10.0040.00417.63
8.1.00.0050.00317.63
8.0.300.0040.00419.15
8.0.290.0000.00817.00
8.0.280.0040.00418.46
8.0.270.0000.00817.25
8.0.260.0000.00916.90
8.0.250.0070.00017.17
8.0.240.0000.00817.19
8.0.230.0070.00017.09
8.0.220.0000.00717.01
8.0.210.0080.00017.06
8.0.200.0040.00417.08
8.0.190.0040.00417.18
8.0.180.0030.00517.17
8.0.170.0000.00817.13
8.0.160.0040.00417.06
8.0.150.0070.00017.03
8.0.140.0000.00816.96
8.0.130.0000.00613.52
8.0.120.0080.00017.09
8.0.110.0050.00317.05
8.0.100.0030.00617.09
8.0.90.0040.00416.92
8.0.80.0070.01017.11
8.0.70.0070.00017.14
8.0.60.0090.00017.07
8.0.50.0040.00417.12
8.0.30.0170.01017.23
8.0.20.0170.00317.41
8.0.10.0050.00317.01
8.0.00.0050.01516.96
7.4.330.0000.00515.04
7.4.320.0000.00816.79
7.4.300.0000.00616.70
7.4.290.0020.00516.78
7.4.280.0080.00016.82
7.4.270.0030.00316.92
7.4.260.0040.00416.87
7.4.250.0000.00716.74
7.4.240.0040.00416.78
7.4.230.0040.00416.85
7.4.220.0130.01316.91
7.4.210.0060.00816.84
7.4.200.0000.00816.60
7.4.190.0000.00816.92
7.4.160.0110.00816.77
7.4.150.0160.00417.40
7.4.140.0120.00817.86
7.4.130.0130.00416.73
7.4.120.0120.00616.81
7.4.110.0090.01516.89
7.4.100.0090.00916.56
7.4.90.0070.01116.73
7.4.80.0050.01419.39
7.4.70.0060.01216.76
7.4.60.0140.00316.74
7.4.50.0040.00416.65
7.4.40.0120.00622.77
7.4.30.0110.00816.80
7.4.00.0030.01315.29
7.3.330.0000.00913.50
7.3.320.0000.00513.23
7.3.310.0040.00416.53
7.3.300.0070.00016.54
7.3.290.0120.00416.46
7.3.280.0090.00916.44
7.3.270.0080.01017.40
7.3.260.0060.01216.63
7.3.250.0070.01016.81
7.3.240.0090.00916.54
7.3.230.0030.01416.85
7.3.210.0150.00616.88
7.3.200.0140.01019.39
7.3.190.0090.00916.49
7.3.180.0130.01016.55
7.3.170.0060.01216.93
7.3.160.0040.01816.77
7.3.120.0060.00815.15
7.3.110.0090.00914.82
7.3.100.0140.00314.89
7.3.90.0080.00815.13
7.3.80.0070.00715.00
7.3.70.0070.01115.05
7.3.60.0000.01414.87
7.3.50.0030.00915.17
7.3.40.0030.01315.04
7.3.30.0090.00315.12
7.3.20.0040.00816.79
7.3.10.0060.00616.87
7.3.00.0030.01016.64
7.2.330.0070.01116.94
7.2.320.0100.01016.96
7.2.310.0150.00616.80
7.2.300.0140.00416.93
7.2.290.0060.01016.90
7.2.250.0060.01015.01
7.2.240.0040.01215.21
7.2.230.0030.01015.33
7.2.220.0040.01115.13
7.2.210.0100.00715.23
7.2.200.0030.01215.30
7.2.190.0070.00715.04
7.2.180.0150.00415.30
7.2.170.0060.01014.99
7.2.00.0000.01019.91
7.1.330.0100.00716.11
7.1.320.0100.01016.02
7.1.310.0060.00615.93
7.1.300.0110.00415.87
7.1.290.0060.01015.91
7.1.280.0060.01015.94
7.1.270.0000.01216.17
7.1.260.0110.00416.00
7.1.100.0030.01018.08
7.1.70.0070.00317.46
7.1.60.0140.01119.82
7.1.50.0100.02134.56
7.1.00.0000.08022.34
7.0.200.0080.00016.97
7.0.140.0100.06721.99
7.0.60.0000.04320.10
7.0.50.0070.03718.03
7.0.40.0100.08320.03
7.0.30.0170.05020.13
7.0.20.0200.09020.30
7.0.10.0230.07320.29
7.0.00.0130.04320.29
5.6.280.0030.07721.13
5.6.210.0170.05720.50
5.6.200.0030.04018.28
5.6.190.0070.04020.46
5.6.180.3770.04020.54
5.6.170.0370.06720.53
5.6.160.0030.04320.52
5.6.150.0200.05018.30
5.6.140.0100.07318.14
5.6.130.0030.08318.15
5.6.120.0170.07721.01
5.6.110.0070.07321.02
5.6.100.0130.08021.12
5.6.90.0070.06320.98
5.6.80.0170.07320.45
5.6.70.0270.04720.41
5.5.350.0030.07020.46
5.5.340.0100.05318.10
5.5.330.0070.04020.48
5.5.320.0200.06320.58
5.5.310.0330.05320.42
5.5.300.0100.08318.09
5.5.290.0070.08718.08
5.5.280.0130.06720.81
5.5.270.0000.09320.64
5.5.260.0100.08020.65
5.5.250.0030.08720.59
5.5.240.0130.07320.24
5.4.450.0270.05319.47
5.4.440.0330.07019.18
5.4.430.0270.05719.55
5.4.420.0200.05319.55
5.4.410.0330.06319.37
5.4.400.0200.07019.23
5.4.390.0370.07018.86
5.4.380.0270.07319.19
5.4.370.0330.06719.32
5.4.360.0300.05019.23
5.4.350.0330.06319.00
5.4.340.0330.03019.23
5.4.320.0370.06719.14
5.4.310.0300.06018.95
5.4.300.0330.04018.95
5.4.290.0230.04319.07
5.4.280.0330.03719.16
5.4.270.0230.07019.14
5.4.260.0270.05319.14
5.4.250.0330.06019.16
5.4.240.0300.06018.85
5.4.230.0330.06719.23
5.4.220.0330.07019.10
5.4.210.0370.06018.95
5.4.200.0230.07319.24
5.4.190.0300.07019.13
5.4.180.0270.04018.99
5.4.170.0300.05319.15
5.4.160.0270.03318.87
5.4.150.0230.03718.84
5.4.140.0300.06016.37
5.4.130.0200.04716.46
5.4.120.0170.04016.32
5.4.110.0230.05016.56
5.4.100.0270.04016.36
5.4.90.0300.05316.46
5.4.80.0370.04016.34
5.4.70.0330.03716.48
5.4.60.0170.04316.51
5.4.50.0270.03016.24
5.4.40.0270.05016.38
5.4.30.0230.05016.50
5.4.20.0400.04316.24
5.4.10.0230.04716.52
5.4.00.0270.03015.79
5.3.290.0270.04314.66
5.3.280.0330.07014.65
5.3.270.0200.05014.69
5.3.260.0330.03314.62
5.3.250.0270.06714.59
5.3.240.0330.06714.83
5.3.230.0300.03714.62
5.3.220.0200.03714.48
5.3.210.0200.05314.59
5.3.200.0230.05714.58
5.3.190.0270.06014.65
5.3.180.0330.05314.48
5.3.170.0300.03314.49
5.3.160.0200.04014.49
5.3.150.0230.03714.55
5.3.140.0230.03714.79
5.3.130.0230.04014.57
5.3.120.0200.04014.48
5.3.110.0130.05014.45
5.3.100.0270.03314.02
5.3.90.0230.03714.11
5.3.80.0300.06313.95
5.3.70.0330.06014.04
5.3.60.0270.07013.93
5.3.50.0200.05013.97
5.3.40.0230.04013.98
5.3.30.0270.03314.03
5.3.20.0300.06713.75
5.3.10.0300.07313.57
5.3.00.0300.03713.56
5.2.170.0300.05312.02
5.2.160.0230.03312.02
5.2.150.0200.03312.02
5.2.140.0170.03312.02
5.2.130.0200.06012.02
5.2.120.0230.04712.02
5.2.110.0300.05312.02
5.2.100.0170.05012.02
5.2.90.0230.06312.02
5.2.80.0230.03712.02
5.2.70.0200.05012.02
5.2.60.0130.04012.02
5.2.50.0200.04712.02
5.2.40.0270.04012.02
5.2.30.0170.04712.02
5.2.20.0200.05712.02
5.2.10.0200.03312.02
5.2.00.0230.03712.02
5.1.60.0200.02312.02
5.1.50.0170.03012.02
5.1.40.0170.04312.02
5.1.30.0270.04712.02
5.1.20.0170.05012.02
5.1.10.0270.04712.02
5.1.00.0330.02312.02
5.0.50.0130.03012.02
5.0.40.0170.02012.02
5.0.30.0100.06312.02
5.0.20.0130.03312.02
5.0.10.0130.03312.02
5.0.00.0100.04012.02
4.4.90.0100.01712.02
4.4.80.0130.03312.02
4.4.70.0100.03312.02
4.4.60.0100.03712.02
4.4.50.0130.02712.02
4.4.40.0070.03312.02
4.4.30.0170.03012.02
4.4.20.0170.03012.02
4.4.10.0130.01312.02
4.4.00.0130.02712.02
4.3.110.0100.02712.02
4.3.100.0130.02312.02
4.3.90.0130.03012.02
4.3.80.0070.05012.02
4.3.70.0100.02312.02
4.3.60.0100.03312.02
4.3.50.0100.02312.02
4.3.40.0100.05712.02
4.3.30.0070.03312.02
4.3.20.0000.02012.02
4.3.10.0030.02312.02
4.3.00.0070.03312.02

preferences:
47.23 ms | 401 KiB | 5 Q