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);

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.01418.31
8.3.50.0130.00722.04
8.3.40.0110.00319.09
8.3.30.0070.00718.84
8.3.20.0050.00318.82
8.3.10.0080.00020.96
8.3.00.0040.00421.96
8.2.180.0100.01016.75
8.2.170.0120.00922.96
8.2.160.0130.00020.52
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.13
8.2.110.0000.01120.47
8.2.100.0080.00417.91
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0040.00817.63
8.2.60.0070.00318.04
8.2.50.0030.00518.07
8.2.40.0000.00817.78
8.2.30.0080.00019.34
8.2.20.0000.00717.68
8.2.10.0040.00417.78
8.2.00.0040.00417.64
8.1.280.0110.00725.92
8.1.270.0090.00623.99
8.1.260.0040.01126.35
8.1.250.0040.00428.09
8.1.240.0000.00922.50
8.1.230.0110.00020.96
8.1.220.0040.00418.77
8.1.210.0040.00418.77
8.1.200.0000.01017.36
8.1.190.0000.00917.40
8.1.180.0080.00018.10
8.1.170.0060.00318.54
8.1.160.0040.00418.77
8.1.150.0050.00318.77
8.1.140.0040.00417.48
8.1.130.0000.00717.55
8.1.120.0030.00317.52
8.1.110.0000.00717.44
8.1.100.0000.00717.51
8.1.90.0000.00717.56
8.1.80.0040.00417.52
8.1.70.0070.00017.50
8.1.60.0000.00817.68
8.1.50.0000.00717.46
8.1.40.0000.00717.54
8.1.30.0040.00417.63
8.1.20.0030.00517.65
8.1.10.0040.00417.61
8.1.00.0060.00317.62
8.0.300.0060.00319.97
8.0.290.0000.00717.15
8.0.280.0000.00718.34
8.0.270.0050.00317.24
8.0.260.0060.00016.88
8.0.250.0000.00817.12
8.0.240.0040.00417.09
8.0.230.0030.00317.07
8.0.220.0000.00716.97
8.0.210.0030.00316.96
8.0.200.0030.00316.95
8.0.190.0050.00317.04
8.0.180.0000.00816.97
8.0.170.0080.00017.02
8.0.160.0000.00716.88
8.0.150.0000.00716.89
8.0.140.0050.00216.93
8.0.130.0000.00613.49
8.0.120.0000.00716.94
8.0.110.0030.00516.98
8.0.100.0040.00416.85
8.0.90.0080.00017.02
8.0.80.0110.00816.85
8.0.70.0040.00416.94
8.0.60.0040.00416.81
8.0.50.0000.00716.78
8.0.30.0080.01417.38
8.0.20.0120.00717.40
8.0.10.0000.00716.98
8.0.00.0100.00716.64
7.4.330.0000.00416.91
7.4.320.0000.00716.68
7.4.300.0030.00316.81
7.4.290.0030.00316.55
7.4.280.0020.00516.59
7.4.270.0000.00716.58
7.4.260.0000.00513.48
7.4.250.0030.00616.52
7.4.240.0000.00716.69
7.4.230.0040.00416.75
7.4.220.0120.00616.54
7.4.210.0100.00616.67
7.4.200.0070.00016.63
7.4.190.0030.00316.92
7.4.160.0060.00916.67
7.4.150.0140.00317.40
7.4.140.0080.01017.86
7.4.130.0110.00616.80
7.4.120.0050.01216.70
7.4.110.0110.00716.50
7.4.100.0160.00316.45
7.4.90.0100.00716.61
7.4.80.0070.01119.39
7.4.70.0150.00916.84
7.4.60.0100.00616.58
7.4.50.0040.00016.61
7.4.40.0110.00322.77
7.4.30.0170.00016.80
7.4.00.0070.01115.19
7.3.330.0050.00013.27
7.3.320.0050.00012.95
7.3.310.0040.00416.14
7.3.300.0030.00316.31
7.3.290.0040.01116.24
7.3.280.0110.00616.24
7.3.270.0100.00717.40
7.3.260.0060.01318.24
7.3.250.0150.00216.49
7.3.240.0030.01416.34
7.3.230.0070.01016.51
7.3.210.0060.01016.74
7.3.200.0070.01419.39
7.3.190.0070.01016.34
7.3.180.0060.00916.57
7.3.170.0120.00916.75
7.3.160.0060.01016.38
7.3.120.0090.00615.06
7.2.330.0120.00516.59
7.2.320.0130.01016.68
7.2.310.0120.00616.57
7.2.300.0040.01416.70
7.2.290.0110.01016.67
7.2.60.0160.00316.83
7.1.200.0030.01015.87
7.1.70.0030.00617.02
7.1.60.0110.01519.17
7.1.50.0060.00916.67
7.1.00.0030.06722.42
7.0.200.0000.00716.72
7.0.140.0130.06321.99
7.0.110.0030.09019.98
7.0.100.0070.08019.93
7.0.90.0100.07019.89
7.0.80.0100.04719.79
7.0.70.0070.08019.95
7.0.60.0070.08019.86
7.0.50.0230.07320.25
7.0.40.0030.07720.04
7.0.30.0100.07019.91
7.0.20.0070.08320.04
7.0.10.0070.08020.18
7.0.00.0130.06320.13
5.6.280.0070.07020.98
5.6.250.0200.06320.54
5.6.240.0000.09020.66
5.6.230.0030.04320.63
5.6.220.0000.08320.64
5.6.210.0200.06720.53
5.6.200.0130.06720.88
5.6.190.0030.08721.06
5.6.180.0030.07021.23
5.6.170.0070.08721.00
5.6.160.0170.06721.13
5.6.150.0070.07721.09
5.6.140.0030.08021.09
5.6.130.0070.08020.87
5.6.120.0130.07720.88
5.6.110.0070.09021.07
5.6.100.0030.08021.21
5.6.90.0170.06321.06
5.6.80.0170.06720.41
5.6.70.0070.08320.46
5.6.60.0030.07320.45
5.6.50.0030.08320.48
5.6.40.0030.08720.45
5.6.30.0030.07720.52
5.6.20.0030.04020.43
5.6.10.0070.08020.44
5.6.00.0100.07320.50
5.5.380.0070.05020.23
5.5.370.0070.07020.48
5.5.360.0100.08020.17
5.5.350.0070.07720.42
5.5.340.0070.07720.85
5.5.330.0170.07320.93
5.5.320.0070.08720.72
5.5.310.0070.07720.75
5.5.300.0170.07320.92
5.5.290.0170.07320.95
5.5.280.0000.05720.91
5.5.270.0030.08020.90
5.5.260.0100.08320.74
5.5.250.0070.08020.77
5.5.240.0130.07320.22
5.5.230.0100.07020.32
5.5.220.0030.07720.09
5.5.210.0070.07720.34
5.5.200.0070.07320.04
5.5.190.0000.05720.24
5.5.180.0000.08020.10
5.5.160.0100.07320.08
5.5.150.0030.08020.24
5.5.140.0070.07720.17
5.5.130.0100.08020.15
5.5.120.0070.08019.99
5.5.110.0100.07720.23
5.5.100.0170.07019.95
5.5.90.0100.07720.08
5.5.80.0030.05020.19
5.5.70.0130.07019.98
5.5.60.0070.06020.18
5.5.50.0170.07320.04
5.5.40.0070.06720.07
5.5.30.0030.08020.17
5.5.20.0030.07720.19
5.5.10.0200.04719.95
5.5.00.0100.04319.95
5.4.450.0030.05719.42
5.4.440.0100.07719.40
5.4.430.0130.07319.42
5.4.420.0000.07719.32
5.4.410.0100.04319.16
5.4.400.0100.07019.04
5.4.390.0100.05319.13
5.4.380.0130.06719.11
5.4.370.0170.07019.07
5.4.360.0070.07019.00
5.4.350.0030.07719.14
5.4.340.0070.03719.22
5.4.320.0100.06019.07
5.4.310.0100.07019.09
5.4.300.0000.08019.03
5.4.290.0070.07719.09
5.4.280.0030.07019.10
5.4.270.0100.06319.21
5.4.260.0100.07019.00
5.4.250.0170.06719.08
5.4.240.0100.07019.02
5.4.230.0030.05319.07
5.4.220.0000.07019.21
5.4.210.0030.07019.21
5.4.200.0000.08319.14
5.4.190.0130.07019.01
5.4.180.0030.08318.99
5.4.170.0000.07318.91
5.4.160.0070.08019.07
5.4.150.0070.07319.01
5.4.140.0100.07016.30
5.4.130.0030.07716.13
5.4.120.0130.07016.34
5.4.110.0070.06716.44
5.4.100.0130.05716.38
5.4.90.0100.04016.40
5.4.80.0100.06316.36
5.4.70.0100.07016.51
5.4.60.0100.07016.43
5.4.50.0070.05016.46
5.4.40.0030.06316.26
5.4.30.0070.07716.34
5.4.20.0100.07316.48
5.4.10.0100.06316.07
5.4.00.0130.06315.64
5.3.290.0070.07714.53
5.3.280.0070.07314.66
5.3.270.0100.07014.60
5.3.260.0170.06714.66
5.3.250.0130.05014.70
5.3.240.0030.06714.48
5.3.230.0030.06014.54
5.3.220.0030.07714.52
5.3.210.0130.05714.49
5.3.200.0100.06714.46
5.3.190.0070.06314.49
5.3.180.0070.07314.45
5.3.170.0070.08014.46
5.3.160.0030.05714.49
5.3.150.0130.06014.56
5.3.140.0030.04714.61
5.3.130.0030.04714.39
5.3.120.0070.05314.49
5.3.110.0130.06314.49
5.3.100.0030.07313.91
5.3.90.0000.04713.89
5.3.80.0130.07313.88
5.3.70.0030.05713.89
5.3.60.0030.07314.01
5.3.50.0100.06713.95
5.3.40.0070.07013.84
5.3.30.0100.06313.75
5.3.20.0100.07013.53
5.3.10.0070.06013.50
5.3.00.0100.06713.49
5.2.170.0030.03311.06
5.2.160.0030.06011.21
5.2.150.0070.02711.09
5.2.140.0100.06011.06
5.2.130.0200.04310.88
5.2.120.0070.06011.17
5.2.110.0170.05011.04
5.2.100.0070.06011.00
5.2.90.0030.06011.02
5.2.80.0030.05711.13
5.2.70.0030.06711.11
5.2.60.0070.05310.99
5.2.50.0100.06011.04
5.2.40.0070.05710.92
5.2.30.0130.05711.05
5.2.20.0130.05010.88
5.2.10.0000.06310.86
5.2.00.0030.04710.72
5.1.60.0030.05310.01
5.1.50.0030.05310.08
5.1.40.0000.03010.24
5.1.30.0000.04310.36
5.1.20.0030.05310.43
5.1.10.0070.05310.07
5.1.00.0070.05310.07
5.0.50.0070.0438.95
5.0.40.0030.0378.95
5.0.30.0030.0438.95
5.0.20.0030.0438.95
5.0.10.0130.0378.95
5.0.00.0070.0478.95
4.4.90.0000.0378.95
4.4.80.0030.0338.95
4.4.70.0030.0378.95
4.4.60.0030.0338.95
4.4.50.0070.0408.95
4.4.40.0200.0238.95
4.4.30.0030.0138.95
4.4.20.0000.0378.95
4.4.10.0030.0278.95
4.4.00.0000.0538.95
4.3.110.0000.0338.95
4.3.100.0070.0308.95
4.3.90.0070.0238.95
4.3.80.0000.0508.95
4.3.70.0030.0238.95
4.3.60.0030.0338.95
4.3.50.0000.0308.95
4.3.40.0030.0308.95
4.3.30.0000.0338.95
4.3.20.0000.0378.95
4.3.10.0030.0278.95
4.3.00.0000.0378.95

preferences:
39.23 ms | 400 KiB | 5 Q