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]+/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.0120.00916.63
8.3.50.0070.00716.30
8.3.40.0110.00418.82
8.3.30.0090.00618.70
8.3.20.0040.00420.37
8.3.10.0040.00422.03
8.3.00.0040.00422.07
8.2.180.0070.01016.63
8.2.170.0140.00322.96
8.2.160.0120.00319.08
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00721.04
8.2.120.0050.00326.35
8.2.110.0050.00522.20
8.2.100.0100.00017.84
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0050.00318.10
8.2.40.0040.00420.39
8.2.30.0000.00720.95
8.2.20.0030.00517.94
8.2.10.0000.00718.04
8.2.00.0000.00718.12
8.1.280.0120.00325.92
8.1.270.0050.00322.27
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00424.05
8.1.230.0080.00323.93
8.1.220.0040.00417.77
8.1.210.0090.00018.77
8.1.200.0110.00017.35
8.1.190.0080.00017.48
8.1.180.0060.00618.10
8.1.170.0000.00719.06
8.1.160.0020.00519.15
8.1.150.0000.00818.88
8.1.140.0040.00419.51
8.1.130.0000.00819.02
8.1.120.0030.00617.52
8.1.110.0040.00417.40
8.1.100.0000.00717.46
8.1.90.0050.00217.51
8.1.80.0000.00717.52
8.1.70.0000.00717.53
8.1.60.0080.00017.56
8.1.50.0040.00417.53
8.1.40.0000.00817.55
8.1.30.0040.00417.73
8.1.20.0000.00817.58
8.1.10.0030.00617.65
8.1.00.0050.00317.55
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0040.00418.52
8.0.270.0070.00017.22
8.0.260.0030.00316.95
8.0.250.0070.00017.13
8.0.240.0040.00417.09
8.0.230.0030.00317.12
8.0.220.0000.00717.08
8.0.210.0030.00317.10
8.0.200.0000.00617.10
8.0.190.0000.00817.03
8.0.180.0030.00717.03
8.0.170.0040.00417.10
8.0.160.0040.00417.01
8.0.150.0040.00416.97
8.0.140.0000.00817.01
8.0.130.0030.00313.43
8.0.120.0070.00017.02
8.0.110.0050.00316.88
8.0.100.0070.00016.89
8.0.90.0050.00316.86
8.0.80.0100.00716.96
8.0.70.0000.00816.97
8.0.60.0040.00416.98
8.0.50.0040.00416.88
8.0.30.0100.00617.14
8.0.20.0110.00817.40
8.0.10.0000.00817.04
8.0.00.0120.00616.89
7.4.330.0070.00015.55
7.4.320.0000.00616.58
7.4.300.0000.00616.48
7.4.290.0070.00016.70
7.4.280.0040.00416.67
7.4.270.0000.00716.51
7.4.260.0030.00316.67
7.4.250.0030.00316.51
7.4.240.0030.00316.71
7.4.230.0070.00016.48
7.4.220.0140.00716.58
7.4.210.0110.00616.63
7.4.200.0030.00316.46
7.4.160.0070.00916.64
7.4.150.0120.00417.40
7.4.140.0120.00817.86
7.4.130.0040.01316.61
7.4.120.0120.00816.57
7.3.330.0000.00513.09
7.3.320.0000.00613.08
7.3.310.0000.00716.53
7.3.300.0030.00316.32
7.3.290.0040.00316.35
7.3.280.0090.00916.34
7.3.270.0170.00017.40
7.3.260.0140.00616.36
7.3.250.0120.00816.35
7.3.240.0030.01416.47
7.1.70.0090.00617.22

preferences:
47.4 ms | 400 KiB | 5 Q