3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = '/P-36396-0-A1-stephan-regis-eurl.html'; $str2 = '/stephan-regis-eurl.html'; $str3 = '/stephan-regis-eurl'; $str4 = '/stephan-regis-eurl.html?modif_ok=1'; echo preg_match("#^/([A-Z0-9\-]*\-)?.*(\.html)?^(\?.*)$#", $str1); echo preg_match("#^/([A-Z0-9\-]*\-)?.*(\.html)?^(\?.*)$#", $str2); echo preg_match("#^/([A-Z0-9\-]*\-)?.*(\.html)?^(\?.*)$#", $str3); echo preg_match("#^/([A-Z0-9\-]*\-)?.*(\.html)?^(\?.*)$#", $str4); echo "\n"; echo preg_match("#^/([A-Z0-9\-]*\-)?.*(\.html)?[^\?]$#", $str1); echo preg_match("#^/([A-Z0-9\-]*\-)?.*(\.html)?[^\?]$#", $str4);

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.0070.00718.41
8.3.50.0090.01122.05
8.3.40.0140.00018.96
8.3.30.0090.01218.96
8.3.20.0050.00518.90
8.3.10.0050.00321.14
8.3.00.0040.00421.76
8.2.180.0100.01016.63
8.2.170.0090.01222.96
8.2.160.0080.00620.23
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00321.16
8.2.110.0120.00019.39
8.2.100.0040.00718.03
8.2.90.0060.00619.19
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0080.00018.03
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0040.00419.38
8.2.20.0050.00217.82
8.2.10.0040.00417.67
8.2.00.0100.00017.72
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0040.00421.23
8.1.230.0090.00317.52
8.1.220.0060.00317.78
8.1.210.0060.00318.77
8.1.200.0040.00717.35
8.1.190.0050.00317.25
8.1.180.0030.00618.10
8.1.170.0000.00818.71
8.1.160.0000.00718.83
8.1.150.0060.00318.68
8.1.140.0030.00517.54
8.1.130.0070.00017.80
8.1.120.0040.00417.55
8.1.110.0000.00817.47
8.1.100.0080.00017.57
8.1.90.0080.00017.57
8.1.80.0050.00317.54
8.1.70.0000.00717.50
8.1.60.0030.00617.61
8.1.50.0070.00017.49
8.1.40.0000.00717.66
8.1.30.0030.00517.74
8.1.20.0040.00417.69
8.1.10.0000.00817.68
8.1.00.0000.00817.50
8.0.300.0050.00218.77
8.0.290.0040.00716.75
8.0.280.0000.00718.48
8.0.270.0040.00416.85
8.0.260.0000.00717.02
8.0.250.0050.00317.12
8.0.240.0050.00317.07
8.0.230.0040.00417.03
8.0.220.0070.00016.85
8.0.210.0030.00316.87
8.0.200.0080.00017.08
8.0.190.0030.00317.09
8.0.180.0000.00717.05
8.0.170.0000.00817.07
8.0.160.0050.00216.90
8.0.150.0070.00016.94
8.0.140.0050.00316.93
8.0.130.0000.00613.43
8.0.120.0030.00516.93
8.0.110.0030.00716.78
8.0.100.0070.00016.80
8.0.90.0040.00417.03
8.0.80.0150.00616.95
8.0.70.0040.00416.79
8.0.60.0040.00417.11
8.0.50.0040.00417.00
8.0.30.0110.00917.30
8.0.20.0090.01417.40
8.0.10.0040.00417.14
8.0.00.0110.00816.86
7.4.330.0020.00216.76
7.4.320.0000.00716.67
7.4.300.0060.00016.71
7.4.290.0030.00516.77
7.4.280.0030.00316.80
7.4.270.0080.00016.75
7.4.260.0030.00313.46
7.4.250.0000.00816.64
7.4.240.0070.00016.79
7.4.230.0030.00316.78
7.4.220.0110.01216.79
7.4.210.0060.01216.73
7.4.200.0030.00316.84
7.4.190.0040.00416.48
7.4.160.0100.00616.60
7.4.150.0140.00317.40
7.4.140.0100.00917.86
7.4.130.0060.01216.80
7.4.120.0080.01016.69
7.4.110.0070.01116.56
7.4.100.0090.01016.60
7.4.90.0130.00916.55
7.4.80.0090.00919.39
7.4.70.0140.00616.71
7.4.60.0070.01516.60
7.4.50.0060.00016.71
7.4.40.0030.01322.77
7.4.30.0070.01716.68
7.4.00.0030.01215.13
7.3.330.0000.00513.20
7.3.320.0030.00313.20
7.3.310.0000.00716.24
7.3.300.0030.00316.29
7.3.290.0110.00416.29
7.3.280.0100.00916.26
7.3.270.0150.00617.40
7.3.260.0130.00818.24
7.3.250.0080.01016.42
7.3.240.0170.00316.36
7.3.230.0140.00716.65
7.3.210.0090.00916.64
7.3.200.0140.00419.39
7.3.190.0150.00416.37
7.3.180.0120.00316.30
7.3.170.0100.00616.56
7.3.160.0060.01016.54
7.3.120.0060.01014.94
7.3.110.0050.01014.93
7.3.100.0050.01115.06
7.3.90.0040.01014.96
7.3.80.0090.00614.75
7.3.70.0070.00414.76
7.3.60.0070.00814.85
7.3.50.0050.00714.83
7.3.40.0040.01214.87
7.3.30.0080.00514.88
7.3.20.0100.00216.84
7.3.10.0050.00916.90
7.3.00.0100.00516.71
7.2.330.0070.01016.73
7.2.320.0040.01516.84
7.2.310.0060.01216.58
7.2.300.0120.00916.46
7.2.290.0070.01016.68
7.2.250.0080.01014.99
7.2.240.0100.01015.18
7.2.230.0070.00915.13
7.2.220.0050.01015.04
7.2.210.0050.00915.14
7.2.200.0020.00815.06
7.2.190.0080.01015.15
7.2.180.0050.01314.95
7.2.170.0050.00714.98
7.2.00.0000.01219.66
7.1.330.0030.01015.91
7.1.320.0020.01216.06
7.1.310.0020.01115.90
7.1.300.0110.00315.79
7.1.290.0030.01215.78
7.1.280.0030.01015.80
7.1.270.0040.00915.82
7.1.260.0050.00515.88
7.1.100.0040.00818.50
7.1.70.0060.00617.36
7.1.60.0100.01319.40
7.1.50.0090.01517.12
7.1.00.0000.03722.36
7.0.200.0090.00415.06
7.0.140.0030.07321.99
7.0.100.0230.07020.05
7.0.90.0130.07319.93
7.0.80.0130.07319.85
7.0.70.0130.06319.85
7.0.60.0230.06320.07
7.0.50.0130.07720.20
7.0.40.0000.09320.10
7.0.30.0070.05320.00
7.0.20.0070.08319.96
7.0.10.0130.07720.04
7.0.00.0070.08020.13
5.6.280.0030.07320.90
5.6.250.0100.04320.66
5.6.240.0000.09020.68
5.6.230.0100.08020.50
5.6.220.0070.08320.61
5.6.210.0100.08320.61
5.6.200.0170.06321.17
5.6.190.0030.09321.07
5.6.180.0170.07721.09
5.6.170.0130.06321.02
5.6.160.0030.05321.04
5.6.150.0130.07720.98
5.6.140.0070.05320.93
5.6.130.0170.06721.00
5.6.120.0100.08321.09
5.6.110.0130.06720.93
5.6.100.0200.06721.01
5.6.90.0070.08021.00
5.6.80.0030.08320.49
5.6.70.0100.08020.42
5.6.60.0130.06020.31
5.6.50.0100.07320.49
5.6.40.0070.07320.43
5.6.30.0170.06720.39
5.6.20.0100.07320.51
5.6.10.0100.07020.44
5.6.00.0070.07720.47
5.5.380.0070.06320.45
5.5.370.0070.08320.50
5.5.360.0130.07320.34
5.5.350.0070.08720.46
5.5.340.0130.07320.83
5.5.330.0200.07020.89
5.5.320.0130.07320.88
5.5.310.0030.07720.75
5.5.300.0100.08020.92
5.5.290.0070.08020.86
5.5.280.0170.07320.87
5.5.270.0070.08720.87
5.5.260.0130.08720.86
5.5.250.0100.04720.70
5.5.240.0200.06720.10
5.5.230.0170.06320.26
5.5.220.0200.06720.13
5.5.210.0030.07320.29
5.5.200.0170.07319.99
5.5.190.0070.08020.25
5.5.180.0070.08320.21
5.5.160.0100.07720.27
5.5.150.0130.06720.23
5.5.140.0170.07320.23
5.5.130.0070.07720.16
5.5.120.0000.08719.98
5.5.110.0100.07020.21
5.5.100.0030.05020.16
5.5.90.0070.07320.17
5.5.80.0000.08320.09
5.5.70.0030.05020.03
5.5.60.0100.07320.05
5.5.50.0070.07020.05
5.5.40.0130.07320.05
5.5.30.0070.06020.04
5.5.20.0070.08020.13
5.5.10.0100.06720.03
5.5.00.0100.07320.03
5.4.450.0070.08019.43
5.4.440.0070.08019.46
5.4.430.0170.06719.55
5.4.420.0070.08019.12
5.4.410.0170.07019.30
5.4.400.0100.04019.13
5.4.390.0170.04718.95
5.4.380.0100.07319.15
5.4.370.0070.07319.14
5.4.360.0030.08719.07
5.4.350.0200.06319.03
5.4.340.0100.07318.81
5.4.320.0130.07018.97
5.4.310.0000.08319.15
5.4.300.0170.06319.13
5.4.290.0170.06719.11
5.4.280.0030.07319.04
5.4.270.0070.07719.03
5.4.260.0070.06719.03
5.4.250.0100.04318.96
5.4.240.0070.05018.97
5.4.230.0070.07718.98
5.4.220.0070.07319.09
5.4.210.0070.07318.81
5.4.200.0030.08019.06
5.4.190.0100.07719.06
5.4.180.0070.07318.80
5.4.170.0070.05018.89
5.4.160.0170.06319.10
5.4.150.0130.07019.02
5.4.140.0070.06716.07
5.4.130.0100.06716.36
5.4.120.0130.06716.35
5.4.110.0170.07016.29
5.4.100.0030.07716.27
5.4.90.0130.06716.42
5.4.80.0130.06016.45
5.4.70.0030.08016.25
5.4.60.0200.05716.40
5.4.50.0070.07316.36
5.4.40.0130.03716.42
5.4.30.0100.07016.33
5.4.20.0130.02716.42
5.4.10.0000.08016.18
5.4.00.0070.07715.68
5.3.290.0170.07014.63
5.3.280.0070.08314.53
5.3.270.0100.06714.43
5.3.260.0100.07714.46
5.3.250.0070.08014.55
5.3.240.0100.07314.55
5.3.230.0100.07714.55
5.3.220.0070.06714.54
5.3.210.0170.07014.56
5.3.200.0070.07314.41
5.3.190.0100.07014.43
5.3.180.0170.06314.41
5.3.170.0100.07714.54
5.3.160.0100.07014.57
5.3.150.0070.07714.48
5.3.140.0070.07014.56
5.3.130.0070.07314.41
5.3.120.0130.06714.51
5.3.110.0130.07014.51
5.3.100.0100.04314.02
5.3.90.0030.07313.99
5.3.80.0100.07013.78
5.3.70.0170.05713.93
5.3.60.0070.04313.98
5.3.50.0070.07013.93
5.3.40.0200.04713.73
5.3.30.0000.04013.86
5.3.20.0030.03713.67
5.3.10.0070.03313.43
5.3.00.0030.03713.60
5.2.170.0030.04711.13
5.2.160.0070.05011.21
5.2.150.0030.03010.96
5.2.140.0000.03010.96
5.2.130.0070.04011.14
5.2.120.0000.03011.09
5.2.110.0000.03311.15
5.2.100.0070.02310.94
5.2.90.0030.03311.15
5.2.80.0030.03311.09
5.2.70.0070.02311.09
5.2.60.0030.03011.04
5.2.50.0100.02010.81
5.2.40.0030.02710.97
5.2.30.0000.03010.90
5.2.20.0000.03010.85
5.2.10.0030.02710.93
5.2.00.0000.03010.60
5.1.60.0030.0239.89
5.1.50.0100.03710.01
5.1.40.0070.04010.06
5.1.30.0030.05010.39
5.1.20.0070.04010.43
5.1.10.0000.03010.14
5.1.00.0000.04710.11
5.0.50.0030.0479.30
5.0.40.0070.0409.30
5.0.30.0030.0339.30
5.0.20.0100.0109.30
5.0.10.0000.0209.30
5.0.00.0070.0509.30
4.4.90.0000.0179.30
4.4.80.0030.0139.30
4.4.70.0000.0179.30
4.4.60.0000.0139.30
4.4.50.0000.0139.30
4.4.40.0070.0279.30
4.4.30.0000.0339.30
4.4.20.0000.0379.30
4.4.10.0000.0379.30
4.4.00.0000.0479.30
4.3.110.0030.0239.30
4.3.100.0000.0209.30
4.3.90.0030.0179.30
4.3.80.0000.0379.30
4.3.70.0000.0309.30
4.3.60.0030.0179.30
4.3.50.0000.0179.30
4.3.40.0030.0209.30
4.3.30.0070.0239.30
4.3.20.0000.0209.30
4.3.10.0000.0179.30
4.3.00.0000.0179.30

preferences:
51.84 ms | 401 KiB | 5 Q