3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT Павел как дела Дуров1 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);

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.70.0090.01218.56
8.3.60.0040.01516.88
8.3.50.0100.01016.79
8.3.40.0060.00918.91
8.3.30.0070.00718.96
8.3.20.0040.00422.10
8.3.10.0060.00321.73
8.3.00.0050.00322.05
8.2.180.0190.00016.75
8.2.170.0000.01522.96
8.2.160.0150.00019.30
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0100.00021.19
8.2.120.0040.00426.35
8.2.110.0110.00021.03
8.2.100.0060.00618.16
8.2.90.0000.00819.11
8.2.80.0080.00017.97
8.2.70.0050.00317.88
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0040.00420.43
8.2.30.0040.00421.05
8.2.20.0000.00818.20
8.2.10.0090.00018.28
8.2.00.0040.00418.12
8.1.280.0070.00725.92
8.1.270.0050.00222.14
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00922.05
8.1.230.0060.00617.83
8.1.220.0060.00317.77
8.1.210.0080.00018.77
8.1.200.0060.00317.60
8.1.190.0040.00417.38
8.1.180.0070.00618.10
8.1.170.0040.00418.78
8.1.160.0040.00419.20
8.1.150.0040.00419.10
8.1.140.0050.00219.64
8.1.130.0030.00319.11
8.1.120.0000.00717.65
8.1.110.0040.00417.61
8.1.100.0030.00617.69
8.1.90.0040.00417.62
8.1.80.0070.00017.59
8.1.70.0080.00017.66
8.1.60.0040.00417.75
8.1.50.0050.00217.70
8.1.40.0050.00317.73
8.1.30.0030.00517.82
8.1.20.0040.00417.81
8.1.10.0000.00817.62
8.1.00.0040.00417.72
8.0.300.0070.00018.77
8.0.290.0000.01016.88
8.0.280.0040.00418.55
8.0.270.0040.00417.35
8.0.260.0000.00717.08
8.0.250.0030.00317.39
8.0.240.0070.00017.39
8.0.230.0030.00317.33
8.0.220.0000.00717.37
8.0.210.0080.00017.39
8.0.200.0000.00717.42
8.0.190.0080.00017.26
8.0.180.0030.00617.22
8.0.170.0000.00717.22
8.0.160.0040.00417.30
8.0.150.0050.00317.17
8.0.140.0000.00717.21
8.0.130.0030.00313.67
8.0.120.0040.00417.23
8.0.110.0000.00717.31
8.0.100.0080.00017.32
8.0.90.0000.00717.36
8.0.80.0000.01817.27
8.0.70.0040.00417.11
8.0.60.0000.00717.41
8.0.50.0000.00717.13
8.0.30.0150.00517.38
8.0.20.0090.01017.40
8.0.10.0040.00417.35
8.0.00.0070.01017.08
7.4.330.0000.00715.55
7.4.320.0000.00616.70
7.4.300.0060.00016.93
7.4.290.0040.00416.88
7.4.280.0000.00816.79
7.4.270.0000.00716.88
7.4.260.0040.00416.88
7.4.250.0080.00016.69
7.4.240.0030.00316.75
7.4.230.0030.00316.91
7.4.220.0200.01016.92
7.4.210.0070.00816.79
7.4.200.0040.00416.70
7.4.160.0100.00816.67
7.4.150.0160.00717.40
7.4.140.0120.00917.86
7.4.130.0060.01116.71
7.4.120.0090.00916.72
7.4.110.0100.00716.69
7.4.100.0100.01016.67
7.4.90.0170.00516.54
7.4.80.0140.00719.39
7.4.70.0060.00916.71
7.4.60.0100.00716.83
7.4.50.0090.00616.81
7.4.40.0060.01016.84
7.4.30.0040.01216.88
7.4.00.0070.00715.36
7.3.330.0000.00613.45
7.3.320.0060.00013.44
7.3.310.0040.00416.54
7.3.300.0070.00016.47
7.3.290.0070.00016.60
7.3.280.0080.00916.59
7.3.270.0100.00617.40
7.3.260.0100.00716.58
7.3.250.0100.00916.67
7.3.240.0090.01016.54
7.3.230.0070.01316.56
7.3.210.0100.00716.59
7.3.200.0060.01016.51
7.3.190.0130.00316.56
7.3.180.0100.00716.66
7.3.170.0060.01016.54
7.3.160.0060.01516.71
7.3.120.0100.00715.30
7.3.110.0100.00715.07
7.3.100.0140.00314.94
7.3.90.0030.00615.09
7.3.80.0060.00615.00
7.3.70.0100.00615.05
7.3.60.0060.00615.20
7.3.50.0080.00415.00
7.3.40.0060.00614.95
7.3.30.0090.00314.91
7.3.20.0120.00316.98
7.3.10.0110.00716.73
7.3.00.0080.00616.91
7.2.330.0090.00916.92
7.2.320.0100.00716.66
7.2.310.0100.00616.82
7.2.300.0150.00316.78
7.2.290.0110.00716.81
7.2.250.0030.01615.04
7.2.240.0100.01015.27
7.2.230.0060.00315.35
7.2.220.0070.00315.23
7.2.210.0040.01115.18
7.2.200.0000.01815.21
7.2.190.0000.01015.11
7.2.180.0100.00315.29
7.2.170.0070.00715.23
7.2.110.0280.00716.84
7.2.90.0680.00315.07
7.2.80.0510.00614.92
7.2.70.0590.00615.47
7.2.60.0570.01015.17
7.2.50.0570.01015.20
7.2.40.0520.01514.80
7.2.30.0830.00615.16
7.2.20.0620.00315.11
7.2.10.0130.00715.10
7.2.00.0810.01015.29
7.1.330.0030.01216.09
7.1.320.0140.00016.16
7.1.310.0070.00415.75
7.1.300.0040.00816.19
7.1.290.0040.01115.83
7.1.280.0000.01216.05
7.1.270.0040.01115.67
7.1.260.0030.00615.98
7.1.210.0580.00913.72
7.1.200.0620.00014.16
7.1.190.0600.00914.15
7.1.180.0510.00713.79
7.1.170.0620.00313.72
7.1.160.0500.00913.99
7.1.150.1210.00614.12
7.1.140.0660.01614.21
7.1.130.0570.00314.12
7.1.120.0720.00014.20
7.1.110.0030.01414.09
7.1.100.0130.01314.18
7.1.90.0120.00414.25
7.1.80.0530.00713.92
7.1.70.0350.00413.94
7.1.60.0280.01031.94
7.1.50.1600.01632.28
7.1.40.1060.01031.61
7.1.30.0870.01031.57
7.1.20.0890.01531.73
7.1.10.1000.00914.12
7.1.00.0210.00614.20
7.0.310.0530.00613.82
7.0.300.0510.00713.49
7.0.290.0610.00913.55
7.0.280.1330.01313.77
7.0.270.0790.00613.98
7.0.260.0110.00813.87
7.0.250.0120.00813.57
7.0.240.0760.01013.93
7.0.230.0480.00313.89
7.0.220.1120.00714.00
7.0.210.0460.00613.72
7.0.200.0710.00713.73
7.0.190.0780.00013.55
7.0.180.0740.00614.02
7.0.170.0860.00013.70
7.0.160.1380.00313.82
7.0.150.0920.00713.66
7.0.140.0330.01013.91
7.0.130.1630.01013.50
7.0.120.1370.00713.96
7.0.110.0300.00713.83
7.0.100.0410.00713.66
7.0.90.0250.00613.71
7.0.80.1260.00313.95
7.0.70.0890.00713.43
7.0.60.1300.00613.83
7.0.50.1240.00313.67
7.0.40.0040.01413.82
7.0.30.0110.00713.72
7.0.20.0590.00713.76
7.0.10.0070.00713.62
7.0.00.0110.00413.61

preferences:
55.85 ms | 401 KiB | 5 Q