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-x1F]+', $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.0060.01016.50
8.3.50.0110.00416.38
8.3.40.0150.00018.70
8.3.30.0090.00618.68
8.3.20.0070.00020.29
8.3.10.0030.00623.45
8.3.00.0080.00022.27
8.2.180.0140.00418.54
8.2.170.0040.01122.96
8.2.160.0120.00319.04
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0000.00721.19
8.2.120.0040.00426.35
8.2.110.0000.01021.00
8.2.100.0080.00317.59
8.2.90.0040.00419.26
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0030.00517.93
8.2.50.0000.00818.10
8.2.40.0050.00320.59
8.2.30.0030.00621.16
8.2.20.0000.00718.07
8.2.10.0000.00818.01
8.2.00.0000.00718.23
8.1.280.0130.01325.92
8.1.270.0040.00422.14
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0030.00721.12
8.1.230.0030.00724.01
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0050.00817.48
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0050.00318.90
8.1.160.0060.00319.21
8.1.150.0080.00019.11
8.1.140.0070.00019.66
8.1.130.0060.00319.10
8.1.120.0000.00717.57
8.1.110.0060.00317.47
8.1.100.0050.00317.49
8.1.90.0040.00417.58
8.1.80.0000.00717.45
8.1.70.0040.00417.63
8.1.60.0040.00417.71
8.1.50.0040.00417.54
8.1.40.0030.00517.58
8.1.30.0030.00617.76
8.1.20.0050.00217.80
8.1.10.0000.00917.57
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.44
8.0.270.0000.00717.34
8.0.260.0040.00416.96
8.0.250.0030.00317.09
8.0.240.0000.00717.05
8.0.230.0070.00017.09
8.0.220.0070.00017.02
8.0.210.0000.00717.04
8.0.200.0070.00017.09
8.0.190.0040.00417.07
8.0.180.0030.00617.11
8.0.170.0000.00717.02
8.0.160.0040.00417.04
8.0.150.0030.00417.00
8.0.140.0040.00416.91
8.0.130.0030.00313.42
8.0.120.0040.00416.94
8.0.110.0070.00016.91
8.0.100.0000.00816.89
8.0.90.0000.00817.08
8.0.80.0120.00417.02
8.0.70.0040.00417.00
8.0.60.0050.00316.91
8.0.50.0070.00017.14
8.0.30.0060.01117.17
8.0.20.0100.01117.41
8.0.10.0050.00316.98
8.0.00.0050.01817.08
7.4.330.0050.00315.55
7.4.320.0070.00016.69
7.4.300.0030.00316.47
7.4.290.0060.00316.49
7.4.280.0050.00316.61
7.4.270.0030.00316.57
7.4.260.0000.00716.69
7.4.250.0000.00816.63
7.4.240.0070.00016.72
7.4.230.0000.00716.47
7.4.220.0130.00716.68
7.4.210.0070.01116.68
7.4.200.0050.00316.70
7.4.160.0060.00916.48
7.4.150.0060.01217.40
7.4.140.0090.01217.86
7.4.130.0110.00716.47
7.4.120.0150.00416.55
7.3.330.0000.00513.11
7.3.320.0030.00313.24
7.3.310.0030.00316.40
7.3.300.0070.00016.35
7.3.290.0030.00516.36
7.3.280.0060.01016.35
7.3.270.0100.00717.40
7.3.260.0120.01116.30
7.3.250.0070.01216.42
7.3.240.0070.01116.40
7.1.70.0000.01417.28

preferences:
46.2 ms | 400 KiB | 5 Q