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.0040.01616.75
8.3.50.0150.00322.18
8.3.40.0080.00818.79
8.3.30.0120.00319.15
8.3.20.0050.00320.39
8.3.10.0040.00423.70
8.3.00.0000.00819.20
8.2.180.0040.01818.41
8.2.170.0070.01022.96
8.2.160.0100.00720.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0030.00620.80
8.2.110.0030.00622.27
8.2.100.0060.00617.91
8.2.90.0030.00519.25
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0080.00018.05
8.2.50.0080.00018.07
8.2.40.0000.00819.09
8.2.30.0000.00818.20
8.2.20.0000.00817.86
8.2.10.0040.00418.02
8.2.00.0000.00817.85
8.1.280.0100.00725.92
8.1.270.0070.00024.01
8.1.260.0070.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00322.06
8.1.230.0040.00718.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0000.00918.10
8.1.170.0040.00418.65
8.1.160.0040.00421.91
8.1.150.0000.00718.75
8.1.140.0040.00417.55
8.1.130.0000.00717.81
8.1.120.0050.00217.61
8.1.110.0000.00817.54
8.1.100.0050.00217.46
8.1.90.0070.00017.48
8.1.80.0000.00817.60
8.1.70.0000.00717.39
8.1.60.0040.00417.63
8.1.50.0090.00017.55
8.1.40.0000.00917.52
8.1.30.0040.00417.59
8.1.20.0030.00517.70
8.1.10.0040.00417.73
8.1.00.0070.00717.60
8.0.300.0040.00418.77
8.0.290.0030.00617.14
8.0.280.0000.00718.48
8.0.270.0040.00417.17
8.0.260.0000.00617.29
8.0.250.0070.00017.11
8.0.240.0040.00417.13
8.0.230.0040.00416.97
8.0.220.0070.00016.92
8.0.210.0070.00016.93
8.0.200.0030.00317.04
8.0.190.0040.00416.95
8.0.180.0000.00717.06
8.0.170.0030.00516.89
8.0.160.0000.00716.94
8.0.150.0000.00716.83
8.0.140.0000.00716.98
8.0.130.0060.00013.39
8.0.120.0040.00416.97
8.0.110.0000.00816.89
8.0.100.0040.00416.84
8.0.90.0000.00716.87
8.0.80.0090.00616.97
8.0.70.0040.00416.95
8.0.60.0000.00716.85
8.0.50.0070.00016.80
8.0.30.0100.00817.00
8.0.20.0060.01217.40
8.0.10.0040.00417.05
8.0.00.0090.01417.04
7.4.330.0050.00015.00
7.4.320.0070.00016.79
7.4.300.0030.00316.75
7.4.290.0070.00016.59
7.4.280.0000.00716.68
7.4.270.0000.00716.63
7.4.260.0030.00316.63
7.4.250.0000.00816.64
7.4.240.0040.00416.77
7.4.230.0000.00816.87
7.4.220.0140.00416.65
7.4.210.0120.00316.75
7.4.200.0000.00716.79
7.4.190.0040.00416.92
7.4.160.0110.00316.50
7.4.150.0090.01017.40
7.4.140.0100.00717.86
7.4.130.0130.00516.73
7.4.120.0030.01316.59
7.4.110.0100.01016.54
7.4.100.0150.00616.77
7.4.90.0130.00316.63
7.4.80.0110.00819.39
7.4.70.0080.01116.68
7.4.60.0040.00116.58
7.4.50.0040.00016.43
7.4.40.0120.00616.77
7.4.30.0140.00316.55
7.4.00.0070.01114.78
7.3.330.0000.00613.21
7.3.320.0030.00313.02
7.3.310.0030.00316.20
7.3.300.0000.00716.22
7.3.290.0090.00916.34
7.3.280.0110.00916.34
7.3.270.0070.01117.40
7.3.260.0090.00916.41
7.3.250.0050.01216.54
7.3.240.0140.00516.41
7.3.230.0100.00716.50
7.3.210.0110.00716.32
7.3.200.0080.01519.39
7.3.190.0000.01716.35
7.3.180.0110.00716.63
7.3.170.0070.01016.55
7.3.160.0160.00616.62
7.3.120.0090.00614.82
7.2.330.0000.01716.58
7.2.320.0080.01616.70
7.2.310.0030.01416.67
7.2.300.0070.01016.70
7.2.290.0090.00816.63
7.2.00.0040.00819.29
7.1.100.0110.00418.27
7.1.70.0000.01017.33
7.1.60.0030.02119.46
7.1.50.0090.00916.77
7.1.00.0070.07322.46
7.0.200.0000.00916.58
7.0.140.0070.07022.16
7.0.100.0200.06021.87
7.0.90.0100.08319.86
7.0.80.0170.08020.13
7.0.70.0130.07319.92
7.0.60.0100.07719.96
7.0.50.0230.07320.34
7.0.40.0100.07720.07
7.0.30.0130.07720.11
7.0.20.0100.07319.95
7.0.10.0030.07720.08
7.0.00.0030.06320.09
5.6.280.0000.07721.10
5.6.250.0030.08320.50
5.6.240.0030.06020.66
5.6.230.0100.06720.60
5.6.220.0170.06720.66
5.6.210.0070.07320.77
5.6.200.0100.08321.05
5.6.190.0130.07321.11
5.6.180.0170.05721.09
5.6.170.0100.08020.95
5.6.160.0030.08721.08
5.6.150.0030.09320.94
5.6.140.0070.06721.02
5.6.130.0130.07321.05
5.6.120.0070.08320.96
5.6.110.0070.04720.95
5.6.100.0070.06320.94
5.6.90.0070.08320.93
5.6.80.0130.07320.42
5.6.70.0070.07720.45
5.6.60.0100.04020.38
5.6.50.0070.08320.40
5.6.40.0070.08320.44
5.6.30.0030.05720.50
5.6.20.0100.03720.37
5.6.10.0070.07320.34
5.6.00.0070.06720.45
5.5.380.0100.06720.50
5.5.370.0130.07020.51
5.5.360.0070.04020.39
5.5.350.0100.07720.33
5.5.340.0130.08020.64
5.5.330.0130.04320.86
5.5.320.0070.08320.83
5.5.310.0130.06720.89
5.5.300.0170.06720.80
5.5.290.0030.08320.91
5.5.280.0070.07720.86
5.5.270.0130.08020.86
5.5.260.0100.06320.91
5.5.250.0070.05020.61
5.5.240.0030.08020.27
5.5.230.0070.06320.27
5.5.220.0000.08320.11
5.5.210.0070.07320.28
5.5.200.0070.07720.27
5.5.190.0030.06720.21
5.5.180.0170.07020.14
5.5.160.0070.04020.17
5.5.150.0100.04720.23
5.5.140.0030.07020.13
5.5.130.0130.07320.20
5.5.120.0100.08020.17
5.5.110.0070.08320.17
5.5.100.0130.04719.95
5.5.90.0000.07320.16
5.5.80.0030.05020.12
5.5.70.0070.04720.10
5.5.60.0230.06020.03
5.5.50.0070.04320.14
5.5.40.0070.03720.05
5.5.30.0070.03720.07
5.5.20.0070.04720.05
5.5.10.0100.03320.05
5.5.00.0070.03719.99
5.4.450.0170.06319.37
5.4.440.0100.08019.35
5.4.430.0030.05319.35
5.4.420.0030.05319.39
5.4.410.0070.06019.16
5.4.400.0100.07319.20
5.4.390.0030.05719.07
5.4.380.0000.07318.81
5.4.370.0100.07019.03
5.4.360.0030.08019.25
5.4.350.0170.06318.98
5.4.340.0100.07018.95
5.4.320.0070.07718.98
5.4.310.0100.04719.07
5.4.300.0130.06719.14
5.4.290.0070.04318.98
5.4.280.0130.04019.04
5.4.270.0030.05318.80
5.4.260.0170.06719.03
5.4.250.0100.07318.80
5.4.240.0130.06018.89
5.4.230.0170.06319.08
5.4.220.0100.07319.23
5.4.210.0170.06018.96
5.4.200.0030.04718.84
5.4.190.0070.03319.02
5.4.180.0100.03319.09
5.4.170.0070.04319.09
5.4.160.0000.04019.23
5.4.150.0070.05019.02
5.4.140.0100.04316.34
5.4.130.0000.03716.32
5.4.120.0070.04316.34
5.4.110.0100.07016.27
5.4.100.0100.02716.29
5.4.90.0100.06016.48
5.4.80.0070.03016.31
5.4.70.0070.04316.41
5.4.60.0030.04316.32
5.4.50.0070.03316.21
5.4.40.0000.03716.44
5.4.30.0030.03316.23
5.4.20.0030.03316.34
5.4.10.0000.03016.41
5.4.00.0000.03715.57
5.3.290.0030.05014.53
5.3.280.0000.08314.45
5.3.270.0030.03714.57
5.3.260.0000.04314.45
5.3.250.0000.05714.56
5.3.240.0000.04314.60
5.3.230.0100.05014.62
5.3.220.0030.06314.43
5.3.210.0070.07014.54
5.3.200.0030.04014.44
5.3.190.0030.05314.50
5.3.180.0000.04014.51
5.3.170.0100.03014.41
5.3.160.0030.03714.42
5.3.150.0000.04014.57
5.3.140.0000.04014.52
5.3.130.0070.03314.40
5.3.120.0100.02714.54
5.3.110.0000.03314.53
5.3.100.0000.04014.02
5.3.90.0070.03313.86
5.3.80.0130.02014.02
5.3.70.0000.03314.01
5.3.60.0030.06013.87
5.3.50.0100.03013.94
5.3.40.0070.07013.88
5.3.30.0030.03313.89
5.3.20.0000.07313.68
5.3.10.0100.06313.65
5.3.00.0030.07713.63
5.2.170.0030.02710.94
5.2.160.0000.02310.98
5.2.150.0070.04310.95
5.2.140.0070.06011.09
5.2.130.0070.05311.13
5.2.120.0030.03010.94
5.2.110.0070.06010.92
5.2.100.0070.06311.09
5.2.90.0030.06011.09
5.2.80.0000.06311.05
5.2.70.0030.06311.12
5.2.60.0030.04010.97
5.2.50.0030.04010.81
5.2.40.0000.03710.99
5.2.30.0130.02710.96
5.2.20.0130.05010.99
5.2.10.0100.04310.98
5.2.00.0030.06010.84
5.1.60.0130.0479.86
5.1.50.0030.05310.10
5.1.40.0030.0539.99
5.1.30.0100.05010.27
5.1.20.0070.05710.28
5.1.10.0030.05710.17
5.1.00.0030.05310.12
5.0.50.0030.0438.57
5.0.40.0030.0438.49
5.0.30.0000.0438.12
5.0.20.0070.0308.31
5.0.10.0030.0438.29
5.0.00.0000.0638.02
4.4.90.0000.0377.85
4.4.80.0000.0377.85
4.4.70.0030.0337.85
4.4.60.0030.0237.85
4.4.50.0000.0277.85
4.4.40.0000.0507.85
4.4.30.0030.0277.85
4.4.20.0030.0307.85
4.4.10.0070.0307.85
4.4.00.0070.0437.85
4.3.110.0000.0377.85
4.3.100.0000.0337.85
4.3.90.0070.0307.85
4.3.80.0000.0507.85
4.3.70.0000.0337.85
4.3.60.0000.0207.85
4.3.50.0070.0307.85
4.3.40.0030.0507.85
4.3.30.0000.0307.85
4.3.20.0070.0337.85
4.3.10.0030.0307.85
4.3.00.0070.0307.85

preferences:
41.05 ms | 401 KiB | 5 Q