3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $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]+/u', $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.75
8.3.50.0060.00916.63
8.3.40.0110.00718.88
8.3.30.0140.00018.84
8.3.20.0040.00420.20
8.3.10.0000.00823.71
8.3.00.0040.00422.13
8.2.180.0070.00718.68
8.2.170.0120.00622.96
8.2.160.0070.01019.21
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00221.11
8.2.120.0040.00426.35
8.2.110.0060.00322.36
8.2.100.0060.00617.86
8.2.90.0030.00619.27
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0000.00818.04
8.2.50.0000.00818.10
8.2.40.0040.00420.60
8.2.30.0060.00320.93
8.2.20.0070.00017.89
8.2.10.0040.00418.06
8.2.00.0000.00918.05
8.1.280.0160.00325.92
8.1.270.0050.00222.19
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.79
8.1.230.0040.00823.89
8.1.220.0040.00417.75
8.1.210.0050.00318.77
8.1.200.0060.00317.60
8.1.190.0030.00617.35
8.1.180.0070.00418.10
8.1.170.0050.00318.91
8.1.160.0070.00019.03
8.1.150.0070.00018.92
8.1.140.0000.00719.63
8.1.130.0000.00718.95
8.1.120.0000.00817.62
8.1.110.0040.00417.55
8.1.100.0040.00417.64
8.1.90.0040.00417.49
8.1.80.0070.00017.59
8.1.70.0000.00717.43
8.1.60.0030.00617.76
8.1.50.0000.00717.49
8.1.40.0030.00517.53
8.1.30.0040.00417.75
8.1.20.0040.00417.82
8.1.10.0060.00317.73
8.1.00.0030.00617.59
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.37
8.0.270.0030.00317.18
8.0.260.0000.00717.02
8.0.250.0070.00017.09
8.0.240.0030.00317.21
8.0.230.0070.00017.23
8.0.220.0070.00017.09
8.0.210.0070.00017.13
8.0.200.0060.00017.20
8.0.190.0040.00417.10
8.0.180.0030.00617.16
8.0.170.0040.00417.20
8.0.160.0070.00017.08
8.0.150.0000.00717.12
8.0.140.0040.00417.12
8.0.130.0030.00313.57
8.0.120.0000.00717.02
8.0.110.0000.00716.97
8.0.100.0050.00217.10
8.0.90.0070.00016.98
8.0.80.0040.01317.15
8.0.70.0070.00017.04
8.0.60.0080.00017.12
8.0.50.0000.00816.96
8.0.30.0100.00517.34
8.0.20.0080.01117.40
8.0.10.0000.00717.03
8.0.00.0190.00316.98
7.4.330.0040.00415.55
7.4.320.0000.00716.81
7.4.300.0030.00316.62
7.4.290.0050.00316.73
7.4.280.0030.00516.64
7.4.270.0000.00716.69
7.4.260.0080.00016.64
7.4.250.0040.00416.66
7.4.240.0000.00716.73
7.4.230.0000.00716.71
7.4.220.0030.01416.81
7.4.210.0090.00616.86
7.4.200.0030.00316.96
7.4.160.0080.00816.59
7.4.150.0100.00717.40
7.4.140.0130.00717.86
7.4.130.0070.01116.59
7.4.120.0100.00916.54
7.3.330.0030.00313.47
7.3.320.0030.00313.42
7.3.310.0030.00316.71
7.3.300.0000.00716.43
7.3.290.0000.00716.49
7.3.280.0080.00916.54
7.3.270.0110.00717.40
7.3.260.0120.01016.45
7.3.250.0140.00516.58
7.3.240.0120.00816.46
7.1.70.0070.00717.28

preferences:
58.45 ms | 401 KiB | 5 Q