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]+/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.0110.00416.75
8.3.50.0150.00016.57
8.3.40.0060.01118.93
8.3.30.0120.00319.02
8.3.20.0070.00020.25
8.3.10.0070.00023.48
8.3.00.0040.00422.14
8.2.180.0120.00318.66
8.2.170.0070.00722.96
8.2.160.0180.00319.06
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00421.13
8.2.120.0000.00826.35
8.2.110.0030.00622.24
8.2.100.0080.00417.88
8.2.90.0080.00019.05
8.2.80.0060.00317.97
8.2.70.0060.00317.75
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0080.00020.42
8.2.30.0040.00420.98
8.2.20.0040.00418.11
8.2.10.0070.00018.04
8.2.00.0040.00418.18
8.1.280.0150.01125.92
8.1.270.0040.00422.10
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00824.03
8.1.230.0060.00623.91
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0000.00917.48
8.1.190.0060.00317.38
8.1.180.0030.00618.10
8.1.170.0000.00718.91
8.1.160.0070.00019.07
8.1.150.0070.00019.04
8.1.140.0000.00719.72
8.1.130.0060.00318.91
8.1.120.0070.00017.48
8.1.110.0000.00817.62
8.1.100.0000.00817.53
8.1.90.0050.00317.57
8.1.80.0030.00517.53
8.1.70.0000.00717.66
8.1.60.0040.00417.81
8.1.50.0040.00417.69
8.1.40.0040.00417.61
8.1.30.0080.00017.68
8.1.20.0040.00417.85
8.1.10.0040.00417.67
8.1.00.0040.00417.70
8.0.300.0030.00618.77
8.0.290.0000.00717.00
8.0.280.0030.00518.53
8.0.270.0030.00317.30
8.0.260.0000.00717.03
8.0.250.0030.00317.11
8.0.240.0000.00717.14
8.0.230.0030.00417.14
8.0.220.0040.00417.25
8.0.210.0070.00017.17
8.0.200.0030.00317.13
8.0.190.0000.00817.11
8.0.180.0110.00017.17
8.0.170.0040.00417.21
8.0.160.0040.00417.22
8.0.150.0030.00517.12
8.0.140.0040.00317.15
8.0.130.0040.00413.55
8.0.120.0070.00017.14
8.0.110.0040.00417.24
8.0.100.0000.00817.07
8.0.90.0000.00717.23
8.0.80.0070.01417.13
8.0.70.0000.00817.29
8.0.60.0050.00317.02
8.0.50.0000.00717.18
8.0.30.0070.00817.21
8.0.20.0120.00917.40
8.0.10.0000.00717.09
8.0.00.0070.01116.93
7.4.330.0000.00515.55
7.4.320.0030.00316.82
7.4.300.0000.00616.80
7.4.290.0040.00416.68
7.4.280.0000.00816.67
7.4.270.0030.00316.75
7.4.260.0000.00716.73
7.4.250.0040.00416.75
7.4.240.0000.00716.74
7.4.230.0000.00716.54
7.4.220.0050.01416.89
7.4.210.0120.00516.85
7.4.200.0040.00417.00
7.4.160.0070.01216.58
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0140.00316.86
7.4.120.0070.01216.67
7.3.330.0050.00013.32
7.3.320.0060.00013.31
7.3.310.0040.00416.57
7.3.300.0000.00716.48
7.3.290.0030.00316.49
7.3.280.0070.00916.59
7.3.270.0110.00717.40
7.3.260.0120.01116.46
7.3.250.0060.01216.53
7.3.240.0120.00716.41
7.1.70.0030.01017.06

preferences:
33.65 ms | 401 KiB | 5 Q