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 = mb_split('[x00-x20]+', $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.0100.00716.50
8.3.50.0030.01216.24
8.3.40.0080.00818.59
8.3.30.0070.00718.70
8.3.20.0040.00420.49
8.3.10.0070.00023.75
8.3.00.0040.00422.04
8.2.180.0150.00618.66
8.2.170.0140.00022.96
8.2.160.0140.00719.04
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0070.00021.00
8.2.120.0040.00426.35
8.2.110.0080.00322.11
8.2.100.0080.00417.84
8.2.90.0050.00319.23
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0000.00817.93
8.2.50.0080.00018.10
8.2.40.0040.00420.33
8.2.30.0000.00821.05
8.2.20.0040.00418.04
8.2.10.0000.00718.02
8.2.00.0070.00018.15
8.1.280.0130.01025.92
8.1.270.0040.00421.93
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.82
8.1.230.0030.00723.95
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.47
8.1.190.0000.00817.38
8.1.180.0060.00318.10
8.1.170.0040.00419.02
8.1.160.0040.00419.18
8.1.150.0040.00419.07
8.1.140.0080.00019.71
8.1.130.0030.00318.97
8.1.120.0000.00717.46
8.1.110.0040.00417.49
8.1.100.0080.00017.54
8.1.90.0070.00017.44
8.1.80.0000.00717.60
8.1.70.0070.00017.54
8.1.60.0080.00017.59
8.1.50.0040.00417.57
8.1.40.0050.00317.62
8.1.30.0050.00317.81
8.1.20.0000.00717.71
8.1.10.0080.00017.61
8.1.00.0000.00717.45
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0030.00318.52
8.0.270.0030.00317.38
8.0.260.0030.00316.96
8.0.250.0030.00317.14
8.0.240.0030.00317.05
8.0.230.0000.00717.06
8.0.220.0000.00817.07
8.0.210.0000.00717.09
8.0.200.0040.00417.08
8.0.190.0000.00717.02
8.0.180.0110.00017.07
8.0.170.0000.00717.06
8.0.160.0000.00717.03
8.0.150.0000.00716.96
8.0.140.0040.00416.99
8.0.130.0000.00613.42
8.0.120.0040.00316.99
8.0.110.0000.00716.90
8.0.100.0070.00016.99
8.0.90.0040.00416.93
8.0.80.0090.00617.06
8.0.70.0000.00717.05
8.0.60.0000.00816.99
8.0.50.0030.00316.95
8.0.30.0070.01017.10
8.0.20.0140.00417.40
8.0.10.0030.00717.05
8.0.00.0120.00916.92
7.4.330.0060.00015.55
7.4.320.0050.00316.60
7.4.300.0000.00616.61
7.4.290.0080.00016.68
7.4.280.0040.00416.66
7.4.270.0000.00716.50
7.4.260.0000.00716.66
7.4.250.0030.00616.64
7.4.240.0000.00816.57
7.4.230.0070.00016.58
7.4.220.0040.01516.60
7.4.210.0080.00716.61
7.4.200.0030.00316.34
7.4.160.0090.00816.52
7.4.150.0080.00817.40
7.4.140.0100.00917.86
7.4.130.0120.00616.74
7.4.120.0110.00716.50
7.3.330.0000.00613.24
7.3.320.0030.00313.26
7.3.310.0070.00016.38
7.3.300.0000.00716.34
7.3.290.0000.00716.36
7.3.280.0080.00916.34
7.3.270.0090.00917.40
7.3.260.0100.01316.31
7.3.250.0080.00916.31
7.3.240.0100.01016.39
7.1.70.0060.00617.22

preferences:
42.86 ms | 401 KiB | 5 Q