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('/[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.0040.01116.50
8.3.50.0070.00716.34
8.3.40.0100.00618.67
8.3.30.0120.00318.89
8.3.20.0070.00020.29
8.3.10.0000.00823.70
8.3.00.0040.00422.04
8.2.180.0070.00718.55
8.2.170.0080.00822.96
8.2.160.0170.00318.86
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0020.00521.11
8.2.120.0070.00026.35
8.2.110.0090.00022.43
8.2.100.0000.01117.84
8.2.90.0050.00319.05
8.2.80.0060.00318.03
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0060.00318.10
8.2.40.0040.00420.52
8.2.30.0030.00521.02
8.2.20.0000.00818.11
8.2.10.0000.00818.03
8.2.00.0000.00718.17
8.1.280.0100.01025.92
8.1.270.0070.00022.27
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00320.99
8.1.230.0070.00419.21
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00617.47
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0070.00018.96
8.1.160.0030.00319.03
8.1.150.0050.00218.91
8.1.140.0040.00419.59
8.1.130.0030.00319.00
8.1.120.0050.00317.49
8.1.110.0030.00617.52
8.1.100.0020.00517.56
8.1.90.0020.00517.52
8.1.80.0040.00417.40
8.1.70.0030.00317.49
8.1.60.0030.00517.68
8.1.50.0050.00317.60
8.1.40.0000.00817.59
8.1.30.0090.00017.66
8.1.20.0040.00417.61
8.1.10.0060.00317.50
8.1.00.0090.00017.44
8.0.300.0070.00020.07
8.0.290.0050.00216.88
8.0.280.0080.00018.54
8.0.270.0000.00717.31
8.0.260.0030.00316.89
8.0.250.0070.00017.04
8.0.240.0030.00317.02
8.0.230.0070.00016.95
8.0.220.0020.00517.11
8.0.210.0050.00217.00
8.0.200.0000.00617.05
8.0.190.0080.00017.08
8.0.180.0000.00817.09
8.0.170.0020.00517.03
8.0.160.0070.00016.98
8.0.150.0030.00316.87
8.0.140.0080.00016.95
8.0.130.0030.00313.46
8.0.120.0070.00016.98
8.0.110.0050.00516.89
8.0.100.0000.00717.08
8.0.90.0040.00416.89
8.0.80.0060.01416.98
8.0.70.0080.00016.80
8.0.60.0070.00016.94
8.0.50.0070.00017.11
8.0.30.0050.01317.02
8.0.20.0070.01217.40
8.0.10.0000.00717.07
8.0.00.0060.01316.79
7.4.330.0000.00615.55
7.4.320.0000.00816.68
7.4.300.0060.00016.64
7.4.290.0000.00716.60
7.4.280.0030.00516.64
7.4.270.0050.00316.55
7.4.260.0040.00416.55
7.4.250.0070.00016.54
7.4.240.0040.00416.55
7.4.230.0000.00716.54
7.4.220.0140.00316.65
7.4.210.0050.00916.60
7.4.200.0080.00016.71
7.4.160.0060.01016.39
7.4.150.0070.01017.40
7.4.140.0100.01117.86
7.4.130.0130.00316.39
7.4.120.0130.00516.53
7.3.330.0030.00313.25
7.3.320.0000.00613.16
7.3.310.0000.00716.14
7.3.300.0030.00416.25
7.3.290.0000.00716.23
7.3.280.0070.00916.30
7.3.270.0070.01017.40
7.3.260.0070.01316.29
7.3.250.0080.01016.29
7.3.240.0100.00716.37
7.1.70.0040.01117.13

preferences:
78.86 ms | 400 KiB | 5 Q