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-x20]+/uis', $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.0160.00616.63
8.3.50.0110.00316.08
8.3.40.0070.01418.70
8.3.30.0070.00718.72
8.3.20.0070.00020.34
8.3.10.0050.00321.80
8.3.00.0060.00322.08
8.2.180.0180.00016.88
8.2.170.0070.01022.96
8.2.160.0040.01218.94
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00421.08
8.2.120.0040.00426.35
8.2.110.0090.00022.37
8.2.100.0070.00417.78
8.2.90.0080.00019.22
8.2.80.0080.00017.97
8.2.70.0050.00317.38
8.2.60.0000.00818.03
8.2.50.0030.00518.10
8.2.40.0000.00820.62
8.2.30.0030.00521.10
8.2.20.0030.00519.78
8.2.10.0040.00418.18
8.2.00.0070.00018.27
8.1.280.0090.00625.92
8.1.270.0030.00522.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0080.00324.03
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0070.00417.48
8.1.190.0030.00517.35
8.1.180.0030.00618.10
8.1.170.0060.00319.03
8.1.160.0000.00719.15
8.1.150.0040.00418.91
8.1.140.0040.00419.71
8.1.130.0050.00519.03
8.1.120.0030.00517.50
8.1.110.0070.00017.41
8.1.100.0000.00817.52
8.1.90.0040.00417.51
8.1.80.0000.00717.43
8.1.70.0030.00517.52
8.1.60.0030.00517.62
8.1.50.0040.00417.58
8.1.40.0000.00817.55
8.1.30.0000.00817.63
8.1.20.0000.00717.73
8.1.10.0040.00417.55
8.1.00.0000.00817.55
8.0.300.0000.00718.77
8.0.290.0060.00316.88
8.0.280.0000.00818.45
8.0.270.0000.00817.25
8.0.260.0000.00616.81
8.0.250.0000.00617.08
8.0.240.0030.00617.11
8.0.230.0040.00417.13
8.0.220.0070.00017.02
8.0.210.0050.00217.10
8.0.200.0030.00317.03
8.0.190.0030.00617.05
8.0.180.0030.00716.95
8.0.170.0070.00017.06
8.0.160.0070.00016.93
8.0.150.0000.00717.01
8.0.140.0070.00017.05
8.0.130.0000.00613.42
8.0.120.0000.00716.94
8.0.110.0040.00416.98
8.0.100.0040.00416.98
8.0.90.0000.00816.98
8.0.80.0030.02116.93
8.0.70.0020.00516.89
8.0.60.0070.00016.94
8.0.50.0040.00417.14
8.0.30.0070.01017.24
8.0.20.0120.00817.40
8.0.10.0000.00816.96
8.0.00.0100.00716.78
7.4.330.0080.00015.55
7.4.320.0000.00716.57
7.4.300.0000.00616.55
7.4.290.0070.00016.70
7.4.280.0080.00016.74
7.4.270.0000.00716.60
7.4.260.0040.00416.74
7.4.250.0050.00216.63
7.4.240.0070.00016.62
7.4.230.0070.00016.47
7.4.220.0130.00516.68
7.4.210.0070.00716.66
7.4.200.0070.00016.50
7.4.160.0090.00616.66
7.4.150.0120.00617.40
7.4.140.0130.00617.86
7.4.130.0110.00616.47
7.4.120.0110.00816.66
7.3.330.0030.00313.24
7.3.320.0030.00313.23
7.3.310.0030.00316.55
7.3.300.0000.00616.40
7.3.290.0060.00016.25
7.3.280.0080.00916.32
7.3.270.0090.00917.40
7.3.260.0140.00716.46
7.3.250.0100.00816.39
7.3.240.0110.00516.40
7.1.70.0030.01016.90

preferences:
40.45 ms | 400 KiB | 5 Q