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)?^(\?.*)?$#", $str2);

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.0100.01316.88
8.3.50.0200.00816.48
8.3.40.0090.00618.79
8.3.30.0040.01518.94
8.3.20.0050.00318.76
8.3.10.0050.00318.85
8.3.00.0040.00419.27
8.2.180.0210.00018.54
8.2.170.0070.00722.96
8.2.160.0150.00021.17
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00820.74
8.2.110.0060.00321.06
8.2.100.0040.00717.84
8.2.90.0040.00419.52
8.2.80.0090.00019.32
8.2.70.0000.00817.63
8.2.60.0000.00817.91
8.2.50.0080.00018.07
8.2.40.0030.00717.97
8.2.30.0030.00617.99
8.2.20.0050.00317.71
8.2.10.0000.00817.86
8.2.00.0020.00517.70
8.1.280.0030.01425.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.46
8.1.230.0000.01120.96
8.1.220.0080.00017.74
8.1.210.0030.00618.83
8.1.200.0060.00317.47
8.1.190.0080.00017.41
8.1.180.0000.00818.10
8.1.170.0060.00318.85
8.1.160.0030.00518.91
8.1.150.0070.00018.72
8.1.140.0080.00017.61
8.1.130.0070.00017.89
8.1.120.0050.00317.56
8.1.110.0050.00217.45
8.1.100.0000.00717.51
8.1.90.0070.00317.55
8.1.80.0000.00717.42
8.1.70.0000.00717.38
8.1.60.0080.00017.67
8.1.50.0000.00917.61
8.1.40.0040.00417.60
8.1.30.0090.00017.80
8.1.20.0000.00817.65
8.1.10.0000.00717.71
8.1.00.0000.00817.61
8.0.300.0040.00420.12
8.0.290.0000.00716.88
8.0.280.0030.00318.37
8.0.270.0050.00317.30
8.0.260.0000.00716.92
8.0.250.0040.00417.15
8.0.240.0040.00417.05
8.0.230.0030.00316.94
8.0.220.0050.00316.95
8.0.210.0040.00416.97
8.0.200.0070.00017.01
8.0.190.0070.00017.03
8.0.180.0050.00317.04
8.0.170.0090.00016.98
8.0.160.0030.00417.08
8.0.150.0040.00416.83
8.0.140.0000.01016.95
8.0.130.0000.00613.39
8.0.120.0040.00416.82
8.0.110.0030.00516.87
8.0.100.0040.00317.09
8.0.90.0050.00216.86
8.0.80.0040.01216.98
8.0.70.0040.00416.97
8.0.60.0050.00316.85
8.0.50.0040.00416.86
8.0.30.0100.00717.32
8.0.20.0100.01017.47
8.0.10.0040.00417.16
8.0.00.0140.00616.85
7.4.330.0000.00513.25
7.4.320.0030.00316.57
7.4.300.0030.00316.66
7.4.290.0000.00816.59
7.4.280.0040.00416.61
7.4.270.0070.00016.68
7.4.260.0050.00013.42
7.4.250.0030.00516.69
7.4.240.0020.00516.76
7.4.230.0000.00716.75
7.4.220.0150.00416.63
7.4.210.0070.00816.69
7.4.200.0040.00416.76
7.4.190.0000.00716.69
7.4.160.0090.00916.60
7.4.150.0060.01216.64
7.4.140.0120.00616.79
7.4.130.0080.00916.58
7.4.120.0110.00516.66
7.4.110.0030.01416.63
7.4.100.0090.00916.51
7.4.90.0060.01216.66
7.4.80.0040.01619.39
7.4.70.0100.00616.48
7.4.60.0120.00916.74
7.4.50.0030.01016.50
7.4.40.0090.00916.74
7.4.30.0080.00816.71
7.4.00.0060.00914.80
7.3.330.0030.00313.01
7.3.320.0050.00013.12
7.3.310.0000.00716.08
7.3.300.0060.00016.29
7.3.290.0100.00616.30
7.3.280.0100.00616.32
7.3.270.0060.01216.29
7.3.260.0140.00316.29
7.3.250.0180.00616.74
7.3.240.0100.01016.32
7.3.230.0000.01716.33
7.3.210.0100.00716.53
7.3.200.0070.01016.59
7.3.190.0090.00616.87
7.3.180.0100.00716.38
7.3.170.0000.01716.30
7.3.160.0120.00416.52
7.3.120.0000.01614.54
7.2.330.0100.01316.61
7.2.320.0090.00916.82
7.2.310.0070.01116.60
7.2.300.0070.01016.59
7.2.290.0040.01216.77
7.2.60.0060.00916.65
7.2.00.0060.00919.60
7.1.200.0070.00415.80
7.1.100.0060.00618.32
7.1.70.0000.01017.18
7.1.60.0090.01219.40
7.1.50.0030.01717.04
7.1.00.0070.06722.48
7.0.200.0370.00314.63
7.0.140.0030.07321.92
7.0.120.0100.06722.08
7.0.60.0030.07019.98
7.0.50.0130.07317.91
7.0.40.0030.05317.82
7.0.30.0100.04717.72
7.0.20.0000.04717.81
7.0.10.0130.05017.80
7.0.00.0070.08717.71
5.6.280.0000.07721.03
5.6.210.0130.06320.52
5.6.200.0070.08018.13
5.6.190.0200.07318.13
5.6.180.0070.08018.11
5.6.170.0030.07018.12
5.6.160.0070.08018.16
5.6.150.0130.07718.20
5.6.140.0130.07718.21
5.6.130.0070.08018.22
5.6.120.0100.07318.20
5.6.110.0000.08718.12
5.6.100.0130.07718.16
5.6.90.0070.08018.18
5.6.80.0000.07717.56
5.6.70.0030.08017.45
5.6.60.0200.04317.57
5.6.50.0070.08017.60
5.6.40.0000.07017.56
5.6.30.0130.07017.58
5.6.20.0170.06717.57
5.6.10.0070.08017.57
5.6.00.0030.05717.56
5.5.350.0270.06320.38
5.5.340.0070.07017.91
5.5.330.0130.05017.92
5.5.320.0200.07317.96
5.5.310.0030.05717.91
5.5.300.0130.07017.95
5.5.290.0070.08318.02
5.5.280.0030.06717.98
5.5.270.0130.07317.99
5.5.260.0070.07717.91
5.5.250.0170.07017.73
5.5.240.0030.04317.41
5.5.230.0070.07717.36
5.5.220.0070.06717.26
5.5.210.0070.08017.30
5.5.200.0030.06317.33
5.5.190.0030.07717.27
5.5.180.0000.06317.23
5.5.160.0170.05017.33
5.5.150.0070.03717.32
5.5.140.0100.07717.32
5.5.130.0000.07717.33
5.5.120.0030.05317.26
5.5.110.0000.08317.30
5.5.100.0100.07317.22
5.5.90.0070.07317.22
5.5.80.0070.08017.28
5.5.70.0130.05717.25
5.5.60.0100.05717.22
5.5.50.0030.06717.19
5.5.40.0030.05017.24
5.5.30.0070.05017.25
5.5.20.0030.04317.22
5.5.10.0070.08317.13
5.5.00.0030.07717.22
5.4.450.0030.08319.32
5.4.440.0070.05719.46
5.4.430.0100.07719.31
5.4.420.0130.07719.30
5.4.410.0100.08019.40
5.4.400.0030.08018.97
5.4.390.0100.05019.10
5.4.380.0030.07319.01
5.4.370.0100.06319.00
5.4.360.0100.07718.98
5.4.350.0070.08319.10
5.4.340.0030.04318.95
5.4.320.0070.06018.98
5.4.310.0030.07318.97
5.4.300.0070.06719.20
5.4.290.0200.06719.03
5.4.280.0070.05718.91
5.4.270.0130.07719.11
5.4.260.0200.06719.03
5.4.250.0100.07018.81
5.4.240.0030.06719.05
5.4.230.0100.04018.94
5.4.220.0070.04318.95
5.4.210.0130.06318.88
5.4.200.0030.07718.98
5.4.190.0030.04019.02
5.4.180.0100.06018.88
5.4.170.0030.08319.06
5.4.160.0100.06019.09
5.4.150.0070.08018.80
5.4.140.0070.07316.39
5.4.130.0000.05316.40
5.4.120.0030.06316.39
5.4.110.0030.07716.33
5.4.100.0070.05016.30
5.4.90.0030.04716.41
5.4.80.0130.05716.24
5.4.70.0070.07316.30
5.4.60.0170.06316.27
5.4.50.0170.04716.21
5.4.40.0100.03316.36
5.4.30.0000.04016.49
5.4.20.0100.06716.23
5.4.10.0100.03716.26
5.4.00.0070.04715.92
5.3.290.0070.07714.52
5.3.280.0130.07714.45
5.3.270.0130.07014.69
5.3.260.0070.07314.38
5.3.250.0070.05314.38
5.3.240.0100.04014.57
5.3.230.0070.06714.55
5.3.220.0070.07314.34
5.3.210.0200.03714.50
5.3.200.0030.05714.55
5.3.190.0070.08014.51
5.3.180.0070.07314.48
5.3.170.0100.07014.53
5.3.160.0130.06714.48
5.3.150.0100.07014.64
5.3.140.0100.07014.52
5.3.130.0000.04314.51
5.3.120.0030.03714.46
5.3.110.0100.06314.48
5.3.100.0070.07313.86
5.3.90.0070.07713.95
5.3.80.0030.06013.97
5.3.70.0000.04313.95
5.3.60.0100.07013.96
5.3.50.0100.03713.91
5.3.40.0030.07713.90
5.3.30.0070.08013.85
5.3.20.0030.06013.46
5.3.10.0100.07013.61
5.3.00.0070.04013.55
5.2.170.0000.06711.15
5.2.160.0130.06011.13
5.2.150.0000.05711.12
5.2.140.0100.04711.13
5.2.130.0030.04011.11
5.2.120.0070.06310.93
5.2.110.0030.04011.11
5.2.100.0070.06311.24
5.2.90.0100.05711.11
5.2.80.0130.05710.94
5.2.70.0070.06011.07
5.2.60.0100.06011.05
5.2.50.0100.05310.92
5.2.40.0030.06010.97
5.2.30.0000.04310.94
5.2.20.0100.03010.94
5.2.10.0070.05010.91
5.2.00.0170.05310.75
5.1.60.0030.05310.22
5.1.50.0030.02710.00
5.1.40.0030.0579.93
5.1.30.0000.03010.39
5.1.20.0130.04310.40
5.1.10.0070.03310.19
5.1.00.0070.0579.91
5.0.50.0000.0508.60
5.0.40.0070.0308.36
5.0.30.0070.0408.24
5.0.20.0030.0208.24
5.0.10.0030.0408.24
5.0.00.0070.0378.24
4.4.90.0100.0308.24
4.4.80.0000.0378.24
4.4.70.0030.0378.24
4.4.60.0100.0238.24
4.4.50.0030.0308.24
4.4.40.0000.0578.24
4.4.30.0030.0278.24
4.4.20.0000.0308.24
4.4.10.0070.0178.24
4.4.00.0030.0408.24
4.3.110.0070.0278.24
4.3.100.0030.0178.24
4.3.90.0070.0278.24
4.3.80.0030.0478.24
4.3.70.0030.0378.24
4.3.60.0070.0178.24
4.3.50.0000.0338.24
4.3.40.0000.0508.24
4.3.30.0000.0308.24
4.3.20.0030.0308.24
4.3.10.0000.0308.24
4.3.00.0030.0278.24

preferences:
48.13 ms | 401 KiB | 5 Q