3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT Павел как дела Дуров 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.60.0060.01317.00
8.3.50.0090.01216.33
8.3.40.0040.01119.10
8.3.30.0000.01518.96
8.3.20.0040.00420.16
8.3.10.0090.00023.53
8.3.00.0040.00421.92
8.2.180.0100.00716.63
8.2.170.0070.00722.96
8.2.160.0000.01419.34
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00721.26
8.2.120.0070.00026.35
8.2.110.0050.00519.45
8.2.100.0040.00818.03
8.2.90.0040.00419.25
8.2.80.0080.00017.97
8.2.70.0000.01117.75
8.2.60.0050.00317.80
8.2.50.0090.00018.10
8.2.40.0020.00520.38
8.2.30.0060.00321.03
8.2.20.0040.00418.21
8.2.10.0070.00018.32
8.2.00.0070.00018.10
8.1.280.0090.00925.92
8.1.270.0050.00222.14
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0070.00321.37
8.1.230.0070.00319.16
8.1.220.0080.00017.78
8.1.210.0050.00318.77
8.1.200.0030.00717.48
8.1.190.0000.00817.61
8.1.180.0060.00318.10
8.1.170.0060.00318.82
8.1.160.0000.00819.19
8.1.150.0040.00420.76
8.1.140.0000.00719.68
8.1.130.0040.00418.93
8.1.120.0040.00417.62
8.1.110.0060.00317.48
8.1.100.0040.00417.64
8.1.90.0030.00517.51
8.1.80.0030.00317.65
8.1.70.0040.00417.59
8.1.60.0040.00417.74
8.1.50.0000.00717.56
8.1.40.0040.00417.66
8.1.30.0030.00517.84
8.1.20.0060.00317.85
8.1.10.0000.00817.65
8.1.00.0000.00717.63
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0000.00818.58
8.0.270.0040.00417.37
8.0.260.0070.00017.05
8.0.250.0000.00717.36
8.0.240.0030.00317.34
8.0.230.0070.00017.40
8.0.220.0000.00717.27
8.0.210.0040.00417.38
8.0.200.0040.00417.38
8.0.190.0050.00317.22
8.0.180.0000.00917.28
8.0.170.0070.00017.39
8.0.160.0030.00317.37
8.0.150.0000.00717.24
8.0.140.0040.00417.10
8.0.130.0070.00313.73
8.0.120.0030.00517.18
8.0.110.0000.00817.29
8.0.100.0050.00217.34
8.0.90.0050.00317.34
8.0.80.0170.00317.31
8.0.70.0040.00417.30
8.0.60.0000.00717.34
8.0.50.0040.00417.31
8.0.30.0070.01117.38
8.0.20.0110.00917.40
8.0.10.0000.00817.25
8.0.00.0110.00617.11
7.4.330.0030.00315.55
7.4.320.0000.00616.69
7.4.300.0000.00716.80
7.4.290.0040.00416.74
7.4.280.0000.00716.93
7.4.270.0030.00316.80
7.4.260.0070.00016.84
7.4.250.0040.00416.83
7.4.240.0040.00416.91
7.4.230.0000.00716.64
7.4.220.0070.01416.83
7.4.210.0060.00916.84
7.4.200.0040.00416.79
7.4.160.0110.00416.84
7.4.150.0160.00317.40
7.4.140.0150.00917.86
7.4.130.0060.01116.87
7.4.120.0100.00916.81
7.4.110.0060.01216.80
7.4.100.0090.00916.76
7.4.90.0120.00916.87
7.4.80.0120.00419.39
7.4.70.0090.00616.82
7.4.60.0060.01116.77
7.4.50.0050.01016.63
7.4.40.0060.01016.66
7.4.30.0100.00716.86
7.4.00.0030.01615.26
7.3.330.0040.00313.36
7.3.320.0050.00013.36
7.3.310.0000.00816.60
7.3.300.0000.00716.60
7.3.290.0030.00316.70
7.3.280.0080.00916.63
7.3.270.0040.01517.40
7.3.260.0130.00416.64
7.3.250.0080.00916.68
7.3.240.0070.01116.56
7.3.230.0090.00916.67
7.3.210.0160.00316.70
7.3.200.0100.00616.74
7.3.190.0130.00316.61
7.3.180.0080.00816.68
7.3.170.0070.01016.59
7.3.160.0070.01016.53
7.3.120.0000.01615.13
7.3.110.0080.00815.03
7.3.100.0100.00414.79
7.3.90.0100.00014.84
7.3.80.0110.00015.11
7.3.70.0060.00315.15
7.3.60.0060.00814.91
7.3.50.0080.00815.00
7.3.40.0030.01014.98
7.3.30.0090.00615.00
7.3.20.0070.00716.62
7.3.10.0110.00216.61
7.3.00.0040.00916.79
7.2.330.0040.01416.79
7.2.320.0030.01316.72
7.2.310.0080.00916.79
7.2.300.0090.00916.74
7.2.290.0080.01216.80
7.2.250.0000.01515.13
7.2.240.0030.01615.21
7.2.230.0040.01115.20
7.2.220.0050.00815.24
7.2.210.0070.00714.95
7.2.200.0040.00715.35
7.2.190.0150.00015.10
7.2.180.0040.00815.21
7.2.170.0060.00915.26
7.2.130.0070.00917.00
7.2.120.0160.00516.93
7.2.110.0100.00516.88
7.2.100.0070.00816.96
7.2.90.0080.01016.27
7.2.80.0480.00616.28
7.2.70.0280.00416.39
7.2.60.0160.00616.32
7.2.50.0100.00616.41
7.2.40.0480.00216.47
7.2.30.0130.00516.20
7.2.20.0420.00716.49
7.2.10.0220.00616.16
7.2.00.0150.00716.25
7.1.330.0070.00715.96
7.1.320.0040.01116.14
7.1.310.0070.00716.01
7.1.300.0030.01016.18
7.1.290.0030.00916.06
7.1.280.0030.00616.11
7.1.270.0060.00616.02
7.1.260.0030.00716.05
7.1.250.0090.00415.88
7.1.210.0080.00813.87
7.1.200.1500.01014.17
7.1.190.1040.00014.16
7.1.180.0450.00914.16
7.1.170.0100.01014.17
7.1.160.1420.00014.05
7.1.150.0220.00914.03
7.1.140.0890.00314.00
7.1.130.0110.00414.09
7.1.120.0440.00313.82
7.1.110.1220.01014.11
7.1.100.0320.01014.13
7.1.90.0110.01013.99
7.1.80.0170.00313.93
7.1.70.0930.01013.75
7.1.60.0190.02632.16
7.1.50.1570.00731.91
7.1.40.1610.01031.52
7.1.30.1770.01331.66
7.1.20.1280.01031.66
7.1.10.1030.00314.09
7.1.00.1580.01013.99
7.0.310.0330.01113.81
7.0.300.0050.01013.80
7.0.290.2930.01013.64
7.0.280.0990.00313.66
7.0.270.0050.00913.58
7.0.260.1040.00313.67
7.0.250.0410.00613.64
7.0.240.0160.00813.89
7.0.230.0100.00713.30
7.0.220.0290.00913.46
7.0.210.0080.01213.65
7.0.200.0600.00713.61
7.0.190.0990.00313.69
7.0.180.1170.00614.00
7.0.170.1630.00713.62
7.0.160.1250.01414.05
7.0.150.1260.01013.96
7.0.140.1300.01013.69
7.0.130.1320.01013.64
7.0.120.1520.00314.01
7.0.110.1220.00714.08
7.0.100.0040.00814.04
7.0.90.0030.01313.80
7.0.80.1080.00013.89
7.0.70.0980.00613.70
7.0.60.0170.00414.02
7.0.50.1160.00013.91
7.0.40.0060.00613.84
7.0.30.0080.00813.84
7.0.20.0100.00713.89
7.0.10.0140.00013.95
7.0.00.0100.01013.89

preferences:
41.52 ms | 401 KiB | 5 Q