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 = preg_split('/[x00-x20]+/uis', $text, -1, PREG_SPLIT_NO_EMPTY); // $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.0180.00416.88
8.3.50.0040.01116.63
8.3.40.0000.01518.86
8.3.30.0120.00318.93
8.3.20.0040.00420.21
8.3.10.0040.00421.85
8.3.00.0080.00021.88
8.2.180.0110.00716.75
8.2.170.0090.00922.96
8.2.160.0070.00719.24
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00021.16
8.2.120.0080.00026.35
8.2.110.0060.00322.14
8.2.100.0090.00318.09
8.2.90.0000.00819.22
8.2.80.0080.00018.04
8.2.70.0000.00817.63
8.2.60.0030.00517.68
8.2.50.0000.00818.10
8.2.40.0040.00420.61
8.2.30.0040.00421.16
8.2.20.0040.00418.15
8.2.10.0040.00418.02
8.2.00.0040.00418.05
8.1.280.0040.01125.92
8.1.270.0040.00422.11
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.80
8.1.230.0030.00723.91
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0060.00617.60
8.1.190.0000.00817.63
8.1.180.0030.00618.10
8.1.170.0000.00718.84
8.1.160.0030.00419.27
8.1.150.0000.00719.10
8.1.140.0080.00019.62
8.1.130.0030.00618.98
8.1.120.0040.00417.51
8.1.110.0040.00417.56
8.1.100.0000.00817.52
8.1.90.0050.00317.64
8.1.80.0050.00217.61
8.1.70.0000.00717.63
8.1.60.0000.00917.77
8.1.50.0050.00317.57
8.1.40.0080.00017.55
8.1.30.0030.00617.77
8.1.20.0030.00617.86
8.1.10.0000.00817.58
8.1.00.0020.00517.48
8.0.300.0040.00418.77
8.0.290.0050.00317.00
8.0.280.0040.00418.42
8.0.270.0040.00417.28
8.0.260.0000.00717.01
8.0.250.0030.00317.26
8.0.240.0070.00017.25
8.0.230.0000.00717.16
8.0.220.0000.00717.23
8.0.210.0000.00717.29
8.0.200.0040.00417.23
8.0.190.0080.00017.09
8.0.180.0060.00317.16
8.0.170.0070.00017.21
8.0.160.0000.00717.05
8.0.150.0040.00417.11
8.0.140.0000.00717.09
8.0.130.0030.00313.55
8.0.120.0040.00417.17
8.0.110.0000.00717.29
8.0.100.0000.00817.23
8.0.90.0000.00717.27
8.0.80.0000.01617.29
8.0.70.0030.00317.02
8.0.60.0040.00417.20
8.0.50.0000.00717.27
8.0.30.0090.00917.18
8.0.20.0110.01217.40
8.0.10.0060.00317.22
8.0.00.0130.00917.00
7.4.330.0000.00615.55
7.4.320.0030.00316.90
7.4.300.0000.00616.78
7.4.290.0040.00416.86
7.4.280.0030.00516.75
7.4.270.0000.00716.70
7.4.260.0000.00716.86
7.4.250.0040.00416.85
7.4.240.0000.00716.89
7.4.230.0000.00716.71
7.4.220.0090.01016.90
7.4.210.0070.01016.83
7.4.200.0030.00316.62
7.4.160.0050.01116.67
7.4.150.0130.00717.40
7.4.140.0100.01117.86
7.4.130.0120.00616.81
7.4.120.0070.01016.74
7.3.330.0030.00313.29
7.3.320.0050.00013.27
7.3.310.0030.00316.41
7.3.300.0070.00016.45
7.3.290.0050.00216.40
7.3.280.0090.00916.54
7.3.270.0060.01617.40
7.3.260.0070.01416.54
7.3.250.0110.00816.66
7.3.240.0110.00616.61
7.1.70.0070.00717.29

preferences:
40.63 ms | 401 KiB | 5 Q