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]+/uisU', $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.40.0070.00718.96
8.3.30.0070.00718.96
8.3.20.0050.00320.16
8.3.10.0050.00323.61
8.3.00.0070.00021.98
8.2.170.0100.01022.96
8.2.160.0000.01419.04
8.2.150.0100.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00421.30
8.2.120.0090.00026.35
8.2.110.0000.00922.25
8.2.100.0040.00817.91
8.2.90.0000.00919.09
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0050.00220.42
8.2.30.0030.00521.10
8.2.20.0040.00417.98
8.2.10.0040.00418.04
8.2.00.0000.00818.09
8.1.270.0040.01122.17
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00323.86
8.1.230.0110.00023.89
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0120.00017.36
8.1.190.0090.00017.47
8.1.180.0070.00318.10
8.1.170.0050.00218.96
8.1.160.0040.00419.18
8.1.150.0000.00820.70
8.1.140.0000.00719.77
8.1.130.0000.00719.05
8.1.120.0000.00717.63
8.1.110.0050.00417.63
8.1.100.0050.00317.71
8.1.90.0040.00417.64
8.1.80.0070.00017.63
8.1.70.0040.00417.65
8.1.60.0030.00517.78
8.1.50.0030.00517.71
8.1.40.0000.00817.69
8.1.30.0040.00417.74
8.1.20.0030.00517.66
8.1.10.0060.00317.58
8.1.00.0030.00517.66
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0000.00718.51
8.0.270.0000.00717.34
8.0.260.0070.00017.02
8.0.250.0030.00517.30
8.0.240.0050.00317.27
8.0.230.0000.00717.18
8.0.220.0070.00017.24
8.0.210.0000.00717.27
8.0.200.0030.00317.28
8.0.190.0060.00317.23
8.0.180.0040.00717.23
8.0.170.0000.00817.18
8.0.160.0040.00417.16
8.0.150.0040.00417.20
8.0.140.0000.00817.17
8.0.130.0030.00313.61
8.0.120.0070.00017.24
8.0.110.0040.00417.05
8.0.100.0040.00417.21
8.0.90.0080.00017.30
8.0.80.0070.01317.30
8.0.70.0020.00517.27
8.0.60.0040.00417.05
8.0.50.0040.00417.28
8.0.30.0130.00617.30
8.0.20.0080.01217.41
8.0.10.0000.00717.27
8.0.00.0180.00016.90
7.4.330.0000.00615.55
7.4.320.0030.00316.90
7.4.300.0000.00616.70
7.4.290.0040.00416.84
7.4.280.0000.00916.93
7.4.270.0030.00316.79
7.4.260.0040.00416.70
7.4.250.0000.00716.86
7.4.240.0040.00416.71
7.4.230.0000.00716.96
7.4.220.0100.01016.97
7.4.210.0100.00616.79
7.4.200.0070.00016.78
7.4.160.0070.00916.60
7.4.150.0130.00317.40
7.4.140.0150.00617.86
7.4.130.0080.01216.53
7.4.120.0070.01116.76
7.3.330.0030.00313.43
7.3.320.0060.00013.32
7.3.310.0070.00016.43
7.3.300.0030.00316.47
7.3.290.0070.00016.44
7.3.280.0080.00816.57
7.3.270.0030.02017.40
7.3.260.0090.00916.58
7.3.250.0120.00916.62
7.3.240.0140.00316.53
7.1.70.0090.00917.32

preferences:
50.39 ms | 400 KiB | 5 Q