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.0110.01116.63
8.3.50.0100.00918.23
8.3.40.0110.00418.98
8.3.30.0070.00718.84
8.3.20.0040.00418.94
8.3.10.0040.00420.61
8.3.00.0000.00819.50
8.2.180.0100.01016.63
8.2.170.0090.00622.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0090.00026.16
8.2.120.0080.00020.89
8.2.110.0030.00620.91
8.2.100.0080.00417.84
8.2.90.0050.00519.52
8.2.80.0000.00719.27
8.2.70.0000.00817.75
8.2.60.0040.00417.68
8.2.50.0080.00018.07
8.2.40.0060.00318.22
8.2.30.0070.00317.96
8.2.20.0000.00919.44
8.2.10.0000.00817.70
8.2.00.0070.00017.77
8.1.280.0090.00625.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0040.01128.09
8.1.240.0030.00622.59
8.1.230.0070.00420.95
8.1.220.0030.00517.79
8.1.210.0030.00618.91
8.1.200.0000.00917.36
8.1.190.0000.00817.41
8.1.180.0090.00018.10
8.1.170.0030.00520.59
8.1.160.0030.00618.87
8.1.150.0070.00018.62
8.1.140.0030.00617.49
8.1.130.0070.00017.84
8.1.120.0040.00417.57
8.1.110.0040.00417.46
8.1.100.0000.00717.50
8.1.90.0040.00417.46
8.1.80.0000.00717.58
8.1.70.0000.00717.49
8.1.60.0070.00017.70
8.1.50.0030.00517.60
8.1.40.0000.00717.61
8.1.30.0030.00517.72
8.1.20.0040.00417.60
8.1.10.0020.00517.56
8.1.00.0070.00017.63
8.0.300.0080.00019.98
8.0.290.0040.00416.88
8.0.280.0030.00318.47
8.0.270.0080.00017.34
8.0.260.0080.00017.04
8.0.250.0050.00217.13
8.0.240.0040.00417.09
8.0.230.0030.00317.01
8.0.220.0000.00716.95
8.0.210.0070.00016.98
8.0.200.0040.00417.09
8.0.190.0040.00416.93
8.0.180.0040.00416.95
8.0.170.0030.00616.96
8.0.160.0040.00416.93
8.0.150.0000.01016.89
8.0.140.0040.00416.94
8.0.130.0000.00613.49
8.0.120.0030.00616.96
8.0.110.0000.00716.95
8.0.100.0030.00516.77
8.0.90.0040.00417.01
8.0.80.0070.00717.04
8.0.70.0080.00017.00
8.0.60.0070.00016.84
8.0.50.0000.00817.05
8.0.30.0070.01017.02
8.0.20.0120.00617.18
8.0.10.0040.00416.93
8.0.00.0110.01416.79
7.4.330.0000.00513.18
7.4.320.0000.00616.79
7.4.300.0040.00516.77
7.4.290.0070.00016.67
7.4.280.0040.00316.64
7.4.270.0000.00716.82
7.4.260.0050.00013.38
7.4.250.0000.00816.69
7.4.240.0070.00016.55
7.4.230.0000.00716.56
7.4.220.0070.01416.61
7.4.210.0060.00916.70
7.4.200.0000.00716.49
7.4.190.0040.00416.55
7.4.160.0080.00816.53
7.4.150.0120.01216.73
7.4.140.0160.00816.74
7.4.130.0120.00616.58
7.4.120.0130.00316.77
7.4.110.0090.00916.64
7.4.100.0090.00916.50
7.4.90.0100.00716.67
7.4.80.0130.00319.39
7.4.70.0070.01016.72
7.4.60.0030.01316.62
7.4.50.0050.00316.45
7.4.40.0070.01016.66
7.4.30.0060.00916.88
7.4.00.0070.00715.25
7.3.330.0040.00413.23
7.3.320.0030.00313.07
7.3.310.0040.00416.07
7.3.300.0030.00316.20
7.3.290.0070.00816.29
7.3.280.0080.01016.33
7.3.270.0070.01016.50
7.3.260.0150.00416.46
7.3.250.0150.00516.44
7.3.240.0130.00616.65
7.3.230.0060.01216.37
7.3.210.0080.00816.71
7.3.200.0100.00616.33
7.3.190.0120.00916.55
7.3.180.0120.00416.55
7.3.170.0110.00816.57
7.3.160.0060.00916.48
7.3.120.0090.00615.12
7.2.330.0200.02316.54
7.2.320.0160.00416.54
7.2.310.0070.01016.49
7.2.300.0130.01016.70
7.2.290.0030.01316.54
7.2.60.0060.00916.66
7.2.00.0070.01019.16
7.1.200.0100.00015.71
7.1.100.0040.00718.07
7.1.70.0030.00617.02
7.1.60.0110.00719.31
7.1.50.0150.00616.99
7.1.00.0030.06722.56
7.0.200.0040.00416.89
7.0.140.0000.07721.95
7.0.120.0000.07722.13
7.0.60.0030.09019.86
7.0.50.0070.06017.84
7.0.40.0070.04317.71
7.0.30.0070.07717.78
7.0.20.0070.06017.67
7.0.10.0000.08717.82
7.0.00.0070.08017.79
5.6.280.0030.07320.89
5.6.210.0170.07020.70
5.6.200.0030.08718.09
5.6.190.0070.07718.18
5.6.180.0170.07318.13
5.6.170.0130.08018.11
5.6.160.0130.06318.18
5.6.150.0000.07018.09
5.6.140.0100.06718.07
5.6.130.0030.08318.18
5.6.120.0100.08018.11
5.6.110.0030.08318.12
5.6.100.0070.07718.21
5.6.90.0070.08318.19
5.6.80.0030.04717.60
5.6.70.0100.06317.59
5.6.60.0070.06717.46
5.6.50.0030.06017.56
5.6.40.0070.04017.47
5.6.30.0030.03717.43
5.6.20.0030.04717.50
5.6.10.0070.03317.54
5.6.00.0030.03717.46
5.5.350.0330.08020.33
5.5.340.0070.08018.00
5.5.330.0100.04717.95
5.5.320.0070.03717.93
5.5.310.0030.08718.03
5.5.300.0130.07017.88
5.5.290.0170.06317.96
5.5.280.0130.07317.96
5.5.270.0130.04317.88
5.5.260.0030.06017.96
5.5.250.0070.06717.78
5.5.240.0100.07317.35
5.5.230.0070.08017.39
5.5.220.0070.08317.29
5.5.210.0000.04317.33
5.5.200.0070.03717.38
5.5.190.0000.04017.29
5.5.180.0030.03717.33
5.5.160.0030.03717.30
5.5.150.0070.03717.30
5.5.140.0030.03717.27
5.5.130.0070.03317.28
5.5.120.0070.03317.37
5.5.110.0030.03717.25
5.5.100.0030.03717.28
5.5.90.0000.03717.27
5.5.80.0070.03317.25
5.5.70.0030.04017.21
5.5.60.0030.03717.21
5.5.50.0030.03717.18
5.5.40.0000.03717.22
5.5.30.0000.04017.14
5.5.20.0000.04017.19
5.5.10.0000.04017.24
5.5.00.0130.03717.25
5.4.450.0170.05019.45
5.4.440.0000.07719.28
5.4.430.0100.07719.39
5.4.420.0100.07719.35
5.4.410.0070.07019.09
5.4.400.0100.07018.99
5.4.390.0030.06318.98
5.4.380.0070.05718.82
5.4.370.0100.07319.07
5.4.360.0000.04019.05
5.4.350.0270.02318.82
5.4.340.0030.03718.99
5.4.320.0070.03318.99
5.4.310.0070.03319.13
5.4.300.0000.04019.09
5.4.290.0030.03718.98
5.4.280.0000.04019.00
5.4.270.0070.04018.98
5.4.260.0000.04019.20
5.4.250.0030.03719.11
5.4.240.0030.03718.98
5.4.230.0000.04019.00
5.4.220.0000.04018.98
5.4.210.0070.03018.96
5.4.200.0070.03719.11
5.4.190.0030.03719.02
5.4.180.0000.04018.97
5.4.170.0070.03319.04
5.4.160.0070.04719.07
5.4.150.0000.04019.05
5.4.140.0070.03716.32
5.4.130.0030.05016.31
5.4.120.0030.07716.21
5.4.110.0070.06316.41
5.4.100.0030.05016.30
5.4.90.0070.05716.48
5.4.80.0100.07716.37
5.4.70.0100.06716.26
5.4.60.0070.05316.23
5.4.50.0030.05016.25
5.4.40.0030.07716.30
5.4.30.0030.07716.24
5.4.20.0000.07716.28
5.4.10.0070.08016.49
5.4.00.0100.06715.69
5.3.290.0130.03014.64
5.3.280.0030.04014.45
5.3.270.0030.04014.58
5.3.260.0000.04714.46
5.3.250.0070.03014.46
5.3.240.0070.05314.48
5.3.230.0030.07714.52
5.3.220.0030.05714.52
5.3.210.0030.03714.53
5.3.200.0070.07714.54
5.3.190.0030.06314.54
5.3.180.0000.05314.53
5.3.170.0070.08014.38
5.3.160.0100.07014.55
5.3.150.0070.07014.34
5.3.140.0070.07314.54
5.3.130.0100.06714.51
5.3.120.0070.06014.54
5.3.110.0030.06014.50
5.3.100.0030.07314.02
5.3.90.0100.06713.98
5.3.80.0070.05013.79
5.3.70.0100.06713.86
5.3.60.0130.04713.96
5.3.50.0070.07713.72
5.3.40.0000.04713.88
5.3.30.0000.07713.88
5.3.20.0100.05313.65
5.3.10.0030.04713.62
5.3.00.0070.04713.60
5.2.170.0000.05311.13
5.2.160.0030.05310.98
5.2.150.0070.05011.07
5.2.140.0100.05711.09
5.2.130.0130.05011.07
5.2.120.0030.05311.11
5.2.110.0000.03311.09
5.2.100.0000.03711.07
5.2.90.0000.03011.24
5.2.80.0030.06011.05
5.2.70.0030.06711.03
5.2.60.0030.03011.01
5.2.50.0070.05710.96
5.2.40.0000.05011.14
5.2.30.0070.05011.00
5.2.20.0070.03710.77
5.2.10.0030.04710.93
5.2.00.0030.06010.74
5.1.60.0100.05010.09
5.1.50.0000.0479.99
5.1.40.0030.0239.98
5.1.30.0070.02710.30
5.1.20.0070.02310.42
5.1.10.0100.03010.18
5.1.00.0030.04310.13
5.0.50.0070.0409.48
5.0.40.0030.0479.48
5.0.30.0070.0539.48
5.0.20.0070.0409.48
5.0.10.0030.0379.48
5.0.00.0000.0709.48
4.4.90.0000.0209.48
4.4.80.0000.0379.48
4.4.70.0030.0379.48
4.4.60.0000.0309.48
4.4.50.0070.0339.48
4.4.40.0070.0479.48
4.4.30.0030.0179.48
4.4.20.0030.0209.48
4.4.10.0000.0179.48
4.4.00.0000.0609.48
4.3.110.0070.0239.48
4.3.100.0000.0209.48
4.3.90.0030.0339.48
4.3.80.0030.0539.48
4.3.70.0000.0239.48
4.3.60.0030.0179.48
4.3.50.0000.0379.48
4.3.40.0000.0409.48
4.3.30.0000.0409.48
4.3.20.0030.0209.48
4.3.10.0070.0339.48
4.3.00.0000.0339.48

preferences:
56.32 ms | 401 KiB | 5 Q