3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = <<<URLS /ru949-mlc /ru949-mlc/ //ru949-mlc/ /fff/ru949-mlc /fff/ru949-mlc/ /fff/ru949-mlc/dededede URLS; // should match only last two urls $regex = <<<REGEX /(?!(^\/[a-z]{2}\d{3}\-[a-z]{3}\/))(\/(?<sku>[a-z]{2}\d{3}\-[a-z]{3})\/)/x REGEX; foreach (explode("\n", $urls) as $url) { $match = preg_match($regex, $url, $matches); print_r([$url, $match, $matches['sku'] ?? null]); } //

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.4.140.0110.00917.43
8.4.130.0130.00417.99
8.4.120.0130.00622.60
8.4.110.0090.01119.02
8.4.100.0130.00817.93
8.4.90.0110.00918.23
8.4.80.0100.01018.02
8.4.70.0110.00917.99
8.4.60.0100.01117.77
8.4.50.0110.00517.96
8.4.40.0140.00717.83
8.4.30.0120.00919.41
8.4.20.0090.00919.58
8.4.10.0090.00019.82
8.3.270.0090.01116.84
8.3.260.0130.00816.43
8.3.250.0120.00719.11
8.3.240.0120.00716.80
8.3.230.0130.00616.63
8.3.220.0120.00717.23
8.3.210.0130.00616.65
8.3.200.0100.01018.81
8.3.190.0090.01016.58
8.3.180.0110.00916.64
8.3.170.0070.01118.99
8.3.160.0090.00916.81
8.3.150.0070.00717.21
8.3.140.0080.00319.01
8.3.130.0090.00618.48
8.3.120.0060.00318.43
8.3.110.0080.00818.36
8.3.100.0110.00716.77
8.3.90.0080.00018.55
8.3.80.0060.00318.68
8.3.70.0090.00916.50
8.3.60.0140.00416.63
8.3.50.0130.00617.63
8.3.40.0160.00018.89
8.3.30.0070.00718.97
8.3.20.0080.00020.21
8.3.10.0040.00422.14
8.3.00.0040.00423.56
8.2.290.0120.00720.62
8.2.280.0110.00816.85
8.2.270.0040.01517.45
8.2.260.0070.01116.89
8.2.250.0040.00416.61
8.2.240.0140.00319.33
8.2.230.0000.00920.94
8.2.220.0130.00624.06
8.2.210.0050.00326.77
8.2.200.0040.00416.88
8.2.190.0000.01516.88
8.2.180.0140.00016.50
8.2.170.0070.00722.96
8.2.160.0110.00820.32
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0000.00722.41
8.2.120.0050.00326.35
8.2.110.0060.00321.06
8.2.100.0070.00417.97
8.2.90.0040.00419.30
8.2.80.0050.00317.97
8.2.70.0050.00317.73
8.2.60.0030.00518.05
8.2.50.0000.00818.22
8.2.40.0070.00020.66
8.2.30.0040.00419.29
8.2.20.0050.00318.08
8.2.10.0040.00418.04
8.2.00.0030.00618.04
8.1.330.0110.00816.66
8.1.320.0090.01016.36
8.1.310.0000.00918.65
8.1.300.0070.01118.03
8.1.290.0030.00618.88
8.1.280.0090.00625.92
8.1.270.0080.00024.02
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00423.92
8.1.230.0110.00020.32
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00917.48
8.1.190.0000.00917.48
8.1.180.0040.00420.24
8.1.170.0030.00618.65
8.1.160.0000.00718.93
8.1.150.0040.00420.18
8.1.140.0080.00017.74
8.1.130.0040.00419.10
8.1.120.0040.00417.62
8.1.110.0040.00417.50
8.1.100.0050.00217.60
8.1.90.0030.00517.56
8.1.80.0000.00817.51
8.1.70.0000.00717.57
8.1.60.0000.00717.70
8.1.50.0060.00317.61
8.1.40.0060.00317.59
8.1.30.0000.00817.79
8.1.20.0000.01017.79
8.1.10.0090.00017.71
8.1.00.0060.00317.66
8.0.300.0090.00018.77
8.0.290.0000.00716.88
8.0.280.0000.00718.54
8.0.270.0030.00317.20
8.0.260.0040.00418.58
8.0.250.0030.00617.08
8.0.240.0030.00317.21
8.0.230.0070.00017.21
8.0.220.0070.00017.10
8.0.210.0030.00517.09
8.0.200.0000.00717.10
8.0.190.0080.00017.08
8.0.180.0000.00717.14
8.0.170.0040.00417.15
8.0.160.0000.00917.18
8.0.150.0040.00416.98
8.0.140.0040.00417.06
8.0.130.0000.00613.53
8.0.120.0030.00517.07
8.0.110.0040.00417.11
8.0.100.0000.00717.02
8.0.90.0000.00917.02
8.0.80.0100.00717.05
8.0.70.0040.00416.98
8.0.60.0000.00817.02
8.0.50.0030.00516.97
8.0.30.0080.01217.24
8.0.20.0120.00717.43
8.0.10.0030.00517.04
8.0.00.0070.01316.71
7.4.330.0000.00515.55
7.4.320.0000.00616.68
7.4.300.0030.00316.61
7.4.290.0030.00316.77
7.4.280.0000.00716.72
7.4.270.0040.00416.77
7.4.260.0040.00216.63
7.4.250.0000.00716.70
7.4.240.0000.00716.65
7.4.230.0080.00016.89
7.4.220.0030.01616.62
7.4.210.0130.00316.59
7.4.200.0030.00316.83
7.4.160.0150.00316.79
7.4.150.0180.00317.40
7.4.140.0110.01017.86
7.4.130.0130.01016.67
7.4.120.0080.00916.79
7.4.110.0080.00816.88
7.4.100.0090.01516.91
7.4.90.0100.00716.64
7.4.80.0100.00719.39
7.4.70.0160.00616.86
7.4.60.0120.01016.83
7.4.50.0070.01016.85
7.4.40.0100.00716.68
7.4.30.0050.01116.60
7.4.00.0070.00715.11
7.3.330.0000.00513.38
7.3.320.0030.00513.52
7.3.310.0070.00016.39
7.3.300.0030.00316.54
7.3.290.0080.00616.65
7.3.280.0090.00816.55
7.3.270.0170.00317.40
7.3.260.0110.00616.55
7.3.250.0090.00916.46
7.3.240.0100.00716.71
7.3.230.0060.01216.82
7.3.210.0120.00616.59
7.3.200.0140.00716.69
7.3.190.0030.01316.65
7.3.180.0120.00416.65
7.3.170.0130.00316.72
7.3.160.0060.01816.49
7.2.330.0070.01116.80
7.2.320.0070.01116.71
7.2.310.0060.01316.77
7.2.300.0110.01116.75
7.2.290.0060.01016.95
7.2.60.0160.01017.16
7.1.200.0040.00716.16
7.1.100.0100.01018.49
7.1.90.1860.01716.28
7.1.80.1110.01116.74
7.1.70.1270.01017.42
7.1.60.0270.00935.43
7.1.50.0190.00934.91
7.1.40.0320.01034.81
7.1.30.0210.02234.73
7.1.20.0080.00534.68
7.1.10.0100.00916.75
7.1.00.0040.01117.10
7.0.240.0120.01018.20
7.0.230.1510.01316.36
7.0.220.1310.00318.02
7.0.210.0030.01216.87
7.0.200.0030.01016.88
7.0.190.0100.00617.04
7.0.180.0030.01616.52
7.0.170.0090.01116.49
7.0.160.0100.00816.29
7.0.150.0100.00316.30
7.0.140.0080.00516.41
7.0.130.0030.01016.71
7.0.120.0070.00716.71
7.0.110.0040.01216.43
7.0.100.0030.01416.42
7.0.90.0000.01616.45
7.0.80.0070.01416.50
7.0.70.0070.01416.41
7.0.60.0130.00616.49
7.0.50.0100.01016.45
7.0.40.0040.01116.70
7.0.30.0060.00916.61
7.0.20.0040.01116.55
7.0.10.0040.01116.52
7.0.00.0040.01216.75

preferences:
32.1 ms | 403 KiB | 5 Q