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

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.70.0150.00016.63
8.3.60.0160.00616.50
8.3.50.0220.00816.60
8.3.40.0140.00718.77
8.3.30.0070.00718.88
8.3.20.0000.00818.90
8.3.10.0060.00320.70
8.3.00.0050.00319.50
8.2.180.0140.00717.00
8.2.170.0090.00622.96
8.2.160.0170.00320.75
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00320.88
8.2.110.0060.00321.24
8.2.100.0040.00817.72
8.2.90.0000.00818.03
8.2.80.0060.00318.22
8.2.70.0000.00818.04
8.2.60.0030.00517.93
8.2.50.0090.00018.10
8.2.40.0000.00920.34
8.2.30.0000.00719.33
8.2.20.0060.00317.80
8.2.10.0000.00717.83
8.2.00.0090.00017.66
8.1.280.0090.00925.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.83
8.1.230.0040.00820.96
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0050.00317.48
8.1.190.0080.00017.25
8.1.180.0040.00418.10
8.1.170.0030.00618.78
8.1.160.0040.00422.21
8.1.150.0040.00418.63
8.1.140.0000.00817.54
8.1.130.0000.00717.74
8.1.120.0040.00417.59
8.1.110.0000.00917.53
8.1.100.0070.00017.46
8.1.90.0000.00717.54
8.1.80.0040.00417.42
8.1.70.0040.00417.43
8.1.60.0040.00417.55
8.1.50.0050.00317.57
8.1.40.0060.00317.47
8.1.30.0040.00417.68
8.1.20.0040.00417.73
8.1.10.0000.00817.64
8.1.00.0040.00417.59
8.0.300.0000.00719.98
8.0.290.0060.00316.75
8.0.280.0000.00818.45
8.0.270.0030.00317.30
8.0.260.0070.00016.88
8.0.250.0080.00016.99
8.0.240.0000.00717.01
8.0.230.0000.00717.04
8.0.220.0030.00516.88
8.0.210.0000.00816.95
8.0.200.0060.00017.02
8.0.190.0070.00016.92
8.0.180.0040.00416.90
8.0.170.0040.00716.87
8.0.160.0040.00417.05
8.0.150.0040.00416.95
8.0.140.0050.00216.96
8.0.130.0030.00313.36
8.0.120.0060.00317.02
8.0.110.0040.00416.99
8.0.100.0000.00716.82
8.0.90.0040.00417.00
8.0.80.0130.00316.95
8.0.70.0050.00216.96
8.0.60.0040.00416.96
8.0.50.0080.00016.97
8.0.30.0000.02017.23
8.0.20.0140.00517.10
8.0.10.0040.00416.94
8.0.00.0100.01116.91
7.4.330.0000.00513.14
7.4.320.0000.00716.66
7.4.300.0030.00316.73
7.4.290.0040.00416.62
7.4.280.0000.00816.73
7.4.270.0000.00716.67
7.4.260.0000.00513.36
7.4.250.0080.00016.72
7.4.240.0000.00916.71
7.4.230.0040.00416.46
7.4.220.0030.01316.77
7.4.210.0080.01016.67
7.4.200.0040.00416.49
7.4.190.0000.00716.60
7.4.160.0100.01016.70
7.4.150.0060.01416.66
7.4.140.0140.00516.57
7.4.130.0150.00816.59
7.4.120.0140.00516.72
7.4.110.0060.01216.46
7.4.100.0160.01116.63
7.4.90.0120.00616.66
7.4.80.0170.00419.39
7.4.70.0080.01616.58
7.4.60.0130.00316.55
7.4.50.0080.00016.42
7.4.40.0090.00616.39
7.4.30.0130.00316.46
7.4.00.0040.01115.27
7.3.330.0030.00313.04
7.3.320.0000.00713.05
7.3.310.0000.00716.14
7.3.300.0070.00016.30
7.3.290.0030.01616.38
7.3.280.0100.00616.29
7.3.270.0100.01016.32
7.3.260.0120.01516.56
7.3.250.0100.00716.52
7.3.240.0070.01016.36
7.3.230.0110.00716.70
7.3.210.0070.01016.23
7.3.200.0120.00516.66
7.3.190.0140.00816.40
7.3.180.0030.01316.38
7.3.170.0030.01316.68
7.3.160.0090.00616.33
7.3.120.0050.01214.71
7.3.110.0090.00914.89
7.3.100.0110.00714.88
7.3.90.0070.00714.54
7.3.80.0060.00614.54
7.3.70.0070.00714.50
7.3.60.0000.01214.75
7.3.50.0070.00714.71
7.3.40.0110.00314.96
7.3.30.0030.00914.68
7.3.20.0160.00016.67
7.3.10.0090.00316.68
7.3.00.0030.01016.61
7.2.330.0100.01016.64
7.2.320.0080.01116.68
7.2.310.0110.00716.51
7.2.300.0110.00616.48
7.2.290.0120.01016.57
7.2.250.0090.00915.00
7.2.240.0040.01615.29
7.2.230.0090.00615.11
7.2.220.0040.00815.08
7.2.210.0000.01214.82
7.2.200.0150.00315.06
7.2.190.0060.01015.08
7.2.180.0120.00315.04
7.2.170.0090.00614.96
7.2.00.0100.00719.39
7.1.330.0120.00315.96
7.1.320.0100.00315.93
7.1.310.0100.00016.08
7.1.300.0060.00916.06
7.1.290.0040.01115.57
7.1.280.0040.01115.91
7.1.270.0100.00315.80
7.1.260.0030.00616.08
7.1.100.0000.00918.16
7.1.70.0070.00316.95
7.1.60.0210.00319.40
7.1.50.0150.00616.78
7.1.00.0030.03322.42
7.0.200.0230.00315.00
7.0.140.0070.07021.95
7.0.120.0070.06321.96
7.0.60.0030.04019.91
7.0.50.0070.08317.88
7.0.40.0130.04017.71
7.0.30.0100.07017.76
7.0.20.0130.08017.75
7.0.10.0100.06017.79
7.0.00.0030.08017.80
5.6.280.0030.07321.11
5.6.210.0130.06720.50
5.6.200.0100.06318.21
5.6.190.0130.08018.17
5.6.180.0100.03718.22
5.6.170.0070.06718.13
5.6.160.0070.08318.11
5.6.150.0100.07718.18
5.6.140.0130.06018.21
5.6.130.0130.06018.21
5.6.120.0030.08318.11
5.6.110.0100.04718.15
5.6.100.0000.05318.11
5.6.90.0100.08318.11
5.6.80.0200.06317.61
5.6.70.0070.07717.55
5.6.60.0070.05017.55
5.6.50.0030.04317.55
5.6.40.0030.06317.48
5.6.30.0070.07317.54
5.6.20.0030.08317.47
5.6.10.0100.07717.47
5.6.00.0030.08317.42
5.5.350.0430.07020.40
5.5.340.0000.05017.99
5.5.330.0000.06317.98
5.5.320.0070.08317.97
5.5.310.0130.04317.91
5.5.300.0070.08317.90
5.5.290.0070.06018.00
5.5.280.0100.07718.00
5.5.270.0030.05317.95
5.5.260.0030.08718.00
5.5.250.0070.08017.73
5.5.240.0030.08017.38
5.5.230.0000.08717.41
5.5.220.0070.03717.28
5.5.210.0030.04017.29
5.5.200.0030.05317.37
5.5.190.0170.06317.38
5.5.180.0100.07017.37
5.5.160.0230.06017.30
5.5.150.0170.03017.33
5.5.140.0100.08017.38
5.5.130.0070.07017.37
5.5.120.0130.07017.29
5.5.110.0170.06017.29
5.5.100.0000.06317.28
5.5.90.0130.07017.23
5.5.80.0000.08017.16
5.5.70.0070.07017.21
5.5.60.0030.04717.20
5.5.50.0100.04017.12
5.5.40.0100.06717.13
5.5.30.0070.06317.25
5.5.20.0070.07717.25
5.5.10.0070.06717.11
5.5.00.0030.07717.21
5.4.450.0100.07719.29
5.4.440.0030.08319.36
5.4.430.0030.08019.30
5.4.420.0130.06019.36
5.4.410.0000.05019.31
5.4.400.0030.08019.04
5.4.390.0070.04718.89
5.4.380.0170.07319.01
5.4.370.0030.04018.99
5.4.360.0070.03718.96
5.4.350.0030.04019.20
5.4.340.0030.04319.12
5.4.320.0130.04018.89
5.4.310.0100.03319.03
5.4.300.0070.06318.98
5.4.290.0070.04019.13
5.4.280.0130.07318.98
5.4.270.0130.03018.96
5.4.260.0100.06319.09
5.4.250.0100.07319.00
5.4.240.0070.06718.96
5.4.230.0030.04018.97
5.4.220.0070.03719.02
5.4.210.0030.05019.09
5.4.200.0070.05718.98
5.4.190.0070.08019.00
5.4.180.0000.05318.96
5.4.170.0070.04719.11
5.4.160.0200.06319.11
5.4.150.0000.06018.87
5.4.140.0100.07316.21
5.4.130.0100.07016.35
5.4.120.0070.07016.30
5.4.110.0200.06316.57
5.4.100.0200.06016.34
5.4.90.0030.06016.33
5.4.80.0170.03716.24
5.4.70.0070.04716.17
5.4.60.0000.05316.29
5.4.50.0030.04716.14
5.4.40.0070.07016.20
5.4.30.0070.05016.32
5.4.20.0030.05016.27
5.4.10.0100.05716.24
5.4.00.0100.04015.93
5.3.290.0070.04014.63
5.3.280.0100.07314.42
5.3.270.0130.07314.52
5.3.260.0070.07314.68
5.3.250.0030.07314.57
5.3.240.0070.05314.57
5.3.230.0100.06314.56
5.3.220.0030.07714.34
5.3.210.0170.07314.34
5.3.200.0030.08014.49
5.3.190.0100.05314.55
5.3.180.0070.07014.55
5.3.170.0100.07014.39
5.3.160.0100.03314.52
5.3.150.0000.04314.49
5.3.140.0030.03714.33
5.3.130.0030.04014.50
5.3.120.0030.07314.50
5.3.110.0170.07014.40
5.3.100.0070.06014.11
5.3.90.0030.04313.84
5.3.80.0030.04713.91
5.3.70.0070.06713.95
5.3.60.0100.03713.98
5.3.50.0100.04013.90
5.3.40.0170.07013.80
5.3.30.0030.07313.98
5.3.20.0070.06713.66
5.3.10.0100.06013.61
5.3.00.0070.06313.39
5.2.170.0030.06311.12
5.2.160.0070.05711.29
5.2.150.0000.04011.29
5.2.140.0070.05711.13
5.2.130.0000.05711.13
5.2.120.0030.06011.13
5.2.110.0070.05011.05
5.2.100.0000.04710.92
5.2.90.0030.06011.09
5.2.80.0000.05311.11
5.2.70.0030.05310.98
5.2.60.0030.03011.04
5.2.50.0030.04310.85
5.2.40.0070.03011.00
5.2.30.0000.04010.95
5.2.20.0030.03310.90
5.2.10.0070.03310.88
5.2.00.0030.06010.63
5.1.60.0030.05010.05
5.1.50.0070.05010.13
5.1.40.0030.0609.97
5.1.30.0030.03310.31
5.1.20.0070.05710.39
5.1.10.0000.04010.13
5.1.00.0070.03310.14
5.0.50.0130.0378.61
5.0.40.0070.0408.41
5.0.30.0000.0678.22
5.0.20.0030.0478.23
5.0.10.0000.0438.12
5.0.00.0030.0538.11
4.4.90.0000.0407.90
4.4.80.0030.0207.90
4.4.70.0070.0337.90
4.4.60.0000.0177.90
4.4.50.0000.0177.90
4.4.40.0030.0407.90
4.4.30.0000.0377.90
4.4.20.0030.0277.90
4.4.10.0030.0307.90
4.4.00.0100.0307.90
4.3.110.0000.0377.90
4.3.100.0000.0237.90
4.3.90.0030.0277.90
4.3.80.0000.0337.90
4.3.70.0000.0407.90
4.3.60.0070.0337.90
4.3.50.0030.0377.90
4.3.40.0070.0507.90
4.3.30.0030.0307.90
4.3.20.0030.0207.90
4.3.10.0000.0277.90
4.3.00.0030.0137.90

preferences:
66.42 ms | 401 KiB | 5 Q