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.0070.01116.75
8.3.50.0070.00716.45
8.3.40.0140.00018.70
8.3.30.0060.00918.49
8.3.20.0040.00420.47
8.3.10.0040.00422.03
8.3.00.0050.00321.89
8.2.180.0000.01918.29
8.2.170.0000.01422.96
8.2.160.0100.01018.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.13
8.2.120.0070.00026.35
8.2.110.0160.00620.52
8.2.100.0040.00817.91
8.2.90.0040.00418.98
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0050.00317.80
8.2.50.0050.00318.10
8.2.40.0030.00620.59
8.2.30.0000.00820.91
8.2.20.0040.00417.95
8.2.10.0040.00418.05
8.2.00.0040.00418.14
8.1.280.0070.01325.92
8.1.270.0040.00422.20
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.86
8.1.230.0110.00017.66
8.1.220.0090.00317.75
8.1.210.0050.00318.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0070.00318.10
8.1.170.0000.00819.03
8.1.160.0040.00419.21
8.1.150.0080.00019.00
8.1.140.0000.00719.66
8.1.130.0030.00619.10
8.1.120.0040.00417.48
8.1.110.0090.00017.52
8.1.100.0030.00517.61
8.1.90.0040.00417.51
8.1.80.0000.00717.53
8.1.70.0000.00817.48
8.1.60.0040.00417.55
8.1.50.0030.00517.62
8.1.40.0060.00317.62
8.1.30.0080.00017.73
8.1.20.0000.00717.75
8.1.10.0030.00617.65
8.1.00.0060.00317.41
8.0.300.0030.00618.77
8.0.290.0050.00316.75
8.0.280.0050.00318.40
8.0.270.0030.00317.25
8.0.260.0030.00316.84
8.0.250.0000.00617.14
8.0.240.0070.00017.16
8.0.230.0080.00017.11
8.0.220.0030.00317.06
8.0.210.0030.00517.13
8.0.200.0000.00717.14
8.0.190.0000.00817.05
8.0.180.0040.00716.93
8.0.170.0000.00716.95
8.0.160.0070.00017.00
8.0.150.0000.00716.96
8.0.140.0080.00016.94
8.0.130.0030.00313.46
8.0.120.0000.00716.91
8.0.110.0070.00016.99
8.0.100.0000.00717.11
8.0.90.0040.00416.88
8.0.80.0130.00916.97
8.0.70.0020.00517.04
8.0.60.0070.00017.04
8.0.50.0000.00716.81
8.0.30.0130.00317.07
8.0.20.0130.00517.40
8.0.10.0030.00616.89
8.0.00.0100.01416.82
7.4.330.0000.00615.55
7.4.320.0020.00516.70
7.4.300.0000.00616.59
7.4.290.0080.00016.63
7.4.280.0060.00216.69
7.4.270.0000.00716.56
7.4.260.0040.00416.71
7.4.250.0040.00416.61
7.4.240.0030.00316.50
7.4.230.0030.00316.60
7.4.220.0130.01116.75
7.4.210.0030.01116.61
7.4.200.0030.00316.69
7.4.160.0080.00816.48
7.4.150.0110.00617.40
7.4.140.0100.00817.86
7.4.130.0090.00916.54
7.4.120.0110.00916.57
7.3.330.0000.00613.27
7.3.320.0030.00313.23
7.3.310.0040.00416.32
7.3.300.0040.00416.14
7.3.290.0030.00316.37
7.3.280.0070.01016.34
7.3.270.0080.00917.40
7.3.260.0140.00916.28
7.3.250.0100.00816.33
7.3.240.0070.01316.47
7.1.70.0080.00517.20

preferences:
49.58 ms | 401 KiB | 5 Q