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 = mb_split('\s+', $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.00616.46
8.3.50.0110.00316.59
8.3.40.0040.01118.52
8.3.30.0110.00418.67
8.3.20.0050.00320.52
8.3.10.0040.00423.64
8.3.00.0040.00422.27
8.2.180.0210.00416.75
8.2.170.0120.00322.96
8.2.160.0070.01019.13
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00021.12
8.2.120.0080.00026.35
8.2.110.0060.00321.23
8.2.100.0040.00718.32
8.2.90.0000.00819.21
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.92
8.2.50.0040.00418.10
8.2.40.0040.00420.77
8.2.30.0040.00421.05
8.2.20.0040.00418.14
8.2.10.0040.00418.10
8.2.00.0000.00718.28
8.1.280.0080.00825.92
8.1.270.0000.00821.94
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.89
8.1.230.0030.00719.09
8.1.220.0030.00517.78
8.1.210.0080.00018.77
8.1.200.0030.00717.48
8.1.190.0080.00017.47
8.1.180.0090.00318.10
8.1.170.0040.00419.16
8.1.160.0040.00419.08
8.1.150.0030.00319.07
8.1.140.0040.00419.62
8.1.130.0110.00019.11
8.1.120.0050.00217.47
8.1.110.0000.00817.48
8.1.100.0030.00517.55
8.1.90.0000.00817.56
8.1.80.0000.00717.55
8.1.70.0030.00317.61
8.1.60.0000.00917.69
8.1.50.0050.00317.58
8.1.40.0040.00417.50
8.1.30.0030.00617.74
8.1.20.0040.00417.60
8.1.10.0060.00317.44
8.1.00.0080.00017.45
8.0.300.0040.00418.77
8.0.290.0070.00017.00
8.0.280.0070.00018.44
8.0.270.0070.00017.39
8.0.260.0030.00316.86
8.0.250.0070.00017.15
8.0.240.0040.00317.16
8.0.230.0070.00017.19
8.0.220.0000.00717.16
8.0.210.0000.00717.18
8.0.200.0040.00417.07
8.0.190.0040.00417.13
8.0.180.0080.00016.93
8.0.170.0040.00417.07
8.0.160.0040.00417.14
8.0.150.0000.00716.94
8.0.140.0040.00417.03
8.0.130.0000.00513.49
8.0.120.0050.00316.96
8.0.110.0000.00717.15
8.0.100.0040.00417.02
8.0.90.0000.00916.96
8.0.80.0130.00417.03
8.0.70.0040.00417.03
8.0.60.0000.00716.96
8.0.50.0030.00516.99
8.0.30.0100.00817.25
8.0.20.0080.01117.40
8.0.10.0080.00017.16
8.0.00.0180.00616.93
7.4.330.0060.00015.55
7.4.320.0060.00016.68
7.4.300.0030.00316.73
7.4.290.0000.00716.70
7.4.280.0040.00416.52
7.4.270.0030.00316.59
7.4.260.0000.00716.50
7.4.250.0030.00316.65
7.4.240.0050.00316.72
7.4.230.0000.00716.64
7.4.220.0140.01416.75
7.4.210.0080.01116.67
7.4.200.0020.00516.46
7.4.160.0060.01016.61
7.4.150.0070.01117.40
7.4.140.0110.00817.86
7.4.130.0130.00316.54
7.4.120.0090.00916.55
7.3.330.0000.00613.29
7.3.320.0000.00513.29
7.3.310.0000.00716.24
7.3.300.0060.00016.23
7.3.290.0000.00716.41
7.3.280.0090.00816.41
7.3.270.0120.00817.40
7.3.260.0090.01216.51
7.3.250.0110.00616.38
7.3.240.0120.00516.38
7.1.70.0070.00716.93

preferences:
33.27 ms | 400 KiB | 5 Q