3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT Павел Дуров fsdf sdf sdf TEXT; $filter = 'Павел Дуров'; $filter = mb_strtolower($filter); $parts = explode(' ', $filter); $parts = array_map('trim', $parts); $parts = array_map('preg_quote', $parts); $filter = implode('.*', $parts); // echo preg_match("~{$filter}~uis", $text); $a = preg_split('/[x00-x20]+/uis', $text); // $a = array_map('trim', $a); // $a = array_filter($a); print_r($a);

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.0090.01216.99
8.3.50.0070.01116.56
8.3.40.0110.00418.92
8.3.30.0140.00018.96
8.3.20.0070.00020.28
8.3.10.0080.00023.69
8.3.00.0080.00021.91
8.2.180.0160.00616.75
8.2.170.0160.00622.96
8.2.160.0130.00719.27
8.2.150.0030.01224.18
8.2.140.0000.00824.66
8.2.130.0070.00021.15
8.2.120.0000.00826.35
8.2.110.0030.00720.54
8.2.100.0060.00618.13
8.2.90.0080.00019.21
8.2.80.0000.00917.97
8.2.70.0000.00817.75
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0000.00720.59
8.2.30.0050.00321.13
8.2.20.0000.00718.09
8.2.10.0000.00818.05
8.2.00.0030.00518.13
8.1.280.0180.00425.92
8.1.270.0100.00322.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.84
8.1.230.0120.00019.20
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00717.60
8.1.190.0030.00617.48
8.1.180.0090.00318.10
8.1.170.0060.00318.96
8.1.160.0070.00019.09
8.1.150.0040.00420.87
8.1.140.0040.00419.63
8.1.130.0000.00719.09
8.1.120.0040.00417.62
8.1.110.0000.00817.50
8.1.100.0030.00517.63
8.1.90.0070.00017.59
8.1.80.0040.00417.62
8.1.70.0040.00417.61
8.1.60.0050.00317.64
8.1.50.0050.00317.58
8.1.40.0050.00317.66
8.1.30.0000.00817.81
8.1.20.0000.00817.80
8.1.10.0000.01017.57
8.1.00.0000.00817.48
8.0.300.0030.00518.77
8.0.290.0070.00017.00
8.0.280.0000.00718.46
8.0.270.0070.00017.17
8.0.260.0000.00816.98
8.0.250.0050.00317.12
8.0.240.0000.00717.24
8.0.230.0030.00317.25
8.0.220.0070.00017.19
8.0.210.0000.00717.30
8.0.200.0000.00717.23
8.0.190.0060.00317.16
8.0.180.0100.00017.06
8.0.170.0040.00417.16
8.0.160.0040.00417.24
8.0.150.0030.00517.08
8.0.140.0000.00717.14
8.0.130.0050.00013.60
8.0.120.0050.00217.07
8.0.110.0000.00717.07
8.0.100.0040.00417.13
8.0.90.0070.00017.23
8.0.80.0120.00917.21
8.0.70.0030.00517.23
8.0.60.0040.00417.02
8.0.50.0040.00417.08
8.0.30.0120.00517.12
8.0.20.0160.00617.40
8.0.10.0080.00017.09
8.0.00.0140.00317.07
7.4.330.0030.00315.55
7.4.320.0050.00316.88
7.4.300.0000.00616.77
7.4.290.0040.00416.76
7.4.280.0030.00516.75
7.4.270.0000.00716.68
7.4.260.0040.00416.62
7.4.250.0080.00016.71
7.4.240.0070.00016.92
7.4.230.0000.00716.58
7.4.220.0110.00716.74
7.4.210.0090.00916.87
7.4.200.0070.00016.53
7.4.160.0110.00816.71
7.4.150.0100.00717.40
7.4.140.0110.01017.86
7.4.130.0080.01116.75
7.4.120.0100.00816.77
7.3.330.0030.00313.29
7.3.320.0020.00313.36
7.3.310.0030.00316.63
7.3.300.0030.00316.41
7.3.290.0040.00316.40
7.3.280.0090.00816.53
7.3.270.0110.00617.40
7.3.260.0080.01216.75
7.3.250.0100.01116.56
7.3.240.0110.00916.60
7.1.70.0000.01417.52

preferences:
42.98 ms | 401 KiB | 5 Q