3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['this is', 'array nr array', 'an array', 'test no array']; $stop = array('diens', 'dezer', 'dezes', 'nr', 'no', 'wij', 'ik', 'jij'}; $pattern = '/('.join(')|(', $stop).')/'; $array = array_filter($array, function($x) use ($pattern) { return !preg_match($pattern, $x); }); var_dump($array);

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)
5.4.270.0030.05718.91
5.4.260.0130.04718.91
5.4.250.0030.05718.88
5.4.240.0100.04719.05
5.4.230.0170.05018.73
5.4.220.0030.06018.72
5.4.210.0070.05718.91
5.4.200.0100.05018.88
5.4.190.0100.04718.95
5.4.180.0030.05718.72
5.4.170.0170.05318.77
5.4.160.0070.05318.86
5.4.150.0070.05318.75
5.4.140.0130.04316.36
5.4.130.0000.05316.38
5.4.120.0030.05316.39
5.4.110.0070.05016.33
5.4.100.0100.04716.45
5.4.90.0130.04016.61
5.4.80.0170.03716.55
5.4.70.0070.05716.39
5.4.60.0100.04716.48
5.4.50.0100.06716.48
5.4.40.0030.05316.48
5.4.30.0030.05016.33
5.4.20.0130.05016.57
5.4.10.0170.04016.50
5.4.00.0100.04316.03
5.3.280.0100.05014.75
5.3.270.0100.05314.70
5.3.260.0130.05714.70
5.3.250.0000.06014.61
5.3.240.0100.04714.30
5.3.230.0070.05014.37
5.3.220.0070.05014.27
5.3.210.0030.05314.72
5.3.200.0070.05014.66
5.3.190.0030.06314.66
5.3.180.0100.04714.58
5.3.170.0030.05014.56
5.3.160.0100.04314.34
5.3.150.0100.05314.58
5.3.140.0030.06014.58
5.3.130.0030.05314.43
5.3.120.0170.06314.54
5.3.110.0100.05014.57
5.3.100.0170.05013.81
5.3.90.0070.05013.87
5.3.80.0030.05014.01
5.3.70.0030.05014.00
5.3.60.0100.05713.87
5.3.50.0130.04313.89
5.3.40.0070.07013.97
5.3.30.0070.04713.68
5.3.20.0130.04013.54
5.3.10.0130.05013.51
5.3.00.0100.06013.65
5.2.170.0100.03711.29
5.2.160.0070.04011.09
5.2.150.0030.04311.15
5.2.140.0070.03711.14
5.2.130.0070.04011.01
5.2.120.0070.03711.11
5.2.110.0000.04311.11
5.2.100.0100.03311.11
5.2.90.0000.05010.98
5.2.80.0130.05011.09
5.2.70.0130.05311.00
5.2.60.0170.03010.96
5.2.50.0000.04710.92
5.2.40.0030.04011.00
5.2.30.0130.03011.13
5.2.20.0070.04010.97
5.2.10.0100.03310.79
5.2.00.0100.03710.48
5.1.60.0070.04310.14
5.1.50.0000.04010.05
5.1.40.0030.0409.87
5.1.30.0130.02710.48
5.1.20.0070.03710.53
5.1.10.0000.0409.98
5.1.00.0030.03710.09
5.0.50.0030.0308.73
5.0.40.0030.0378.17
5.0.30.0100.0478.13
5.0.20.0070.0238.10
5.0.10.0070.0277.99
5.0.00.0030.0408.14
4.4.90.0000.0237.33
4.4.80.0030.0207.33
4.4.70.0070.0177.33
4.4.60.0030.0237.33
4.4.50.0000.0237.33
4.4.40.0100.0307.33
4.4.30.0000.0307.33
4.4.20.0100.0177.33
4.4.10.0070.0177.33
4.4.00.0030.0307.33
4.3.110.0070.0207.33
4.3.100.0100.0207.33
4.3.90.0070.0177.33
4.3.80.0000.0377.33
4.3.70.0070.0177.33
4.3.60.0070.0177.33
4.3.50.0030.0207.33
4.3.40.0000.0337.33
4.3.30.0000.0237.33
4.3.20.0030.0207.33
4.3.10.0000.0237.33
4.3.00.0130.0276.77

preferences:
148.22 ms | 1394 KiB | 7 Q