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)?^(\?.*)$#", $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.0130.01016.63
8.3.50.0180.00017.31
8.3.40.0070.00718.87
8.3.30.0090.00618.66
8.3.20.0030.00618.79
8.3.10.0050.00319.08
8.3.00.0080.00019.51
8.2.180.0100.01018.69
8.2.170.0040.01122.96
8.2.160.0080.00821.23
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.06
8.2.110.0040.00721.13
8.2.100.0040.00718.03
8.2.90.0060.00619.27
8.2.80.0040.00419.25
8.2.70.0050.00317.38
8.2.60.0090.00017.78
8.2.50.0090.00018.07
8.2.40.0030.00518.15
8.2.30.0040.00418.00
8.2.20.0040.00417.67
8.2.10.0000.00817.65
8.2.00.0030.00717.82
8.1.280.0070.01125.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.52
8.1.230.0110.00020.97
8.1.220.0070.00317.74
8.1.210.0050.00318.78
8.1.200.0060.00317.47
8.1.190.0070.00017.28
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0040.00418.84
8.1.150.0050.00218.73
8.1.140.0070.00017.53
8.1.130.0030.00317.85
8.1.120.0000.00817.53
8.1.110.0050.00317.47
8.1.100.0080.00017.59
8.1.90.0040.00417.48
8.1.80.0050.00217.59
8.1.70.0000.00717.43
8.1.60.0040.00417.54
8.1.50.0050.00517.54
8.1.40.0080.00017.68
8.1.30.0020.00517.76
8.1.20.0040.00417.77
8.1.10.0030.00617.71
8.1.00.0000.00917.48
8.0.300.0000.00819.98
8.0.290.0050.00216.75
8.0.280.0040.00418.54
8.0.270.0030.00317.27
8.0.260.0060.00016.98
8.0.250.0030.00516.97
8.0.240.0000.00717.08
8.0.230.0000.00716.90
8.0.220.0030.00316.86
8.0.210.0000.00716.86
8.0.200.0000.00816.90
8.0.190.0040.00416.96
8.0.180.0000.00817.03
8.0.170.0030.00716.98
8.0.160.0030.00316.94
8.0.150.0000.00917.04
8.0.140.0060.00316.84
8.0.130.0000.00613.40
8.0.120.0050.00216.97
8.0.110.0040.00416.96
8.0.100.0000.00716.84
8.0.90.0000.00816.86
8.0.80.0070.00716.88
8.0.70.0020.00516.89
8.0.60.0040.00416.97
8.0.50.0000.00816.79
8.0.30.0210.00017.22
8.0.20.0080.01017.20
8.0.10.0020.00516.99
8.0.00.0030.01916.93
7.4.330.0000.00513.00
7.4.320.0000.00616.64
7.4.300.0000.00716.71
7.4.290.0050.00516.55
7.4.280.0050.00316.66
7.4.270.0030.00316.75
7.4.260.0000.00513.46
7.4.250.0030.00616.61
7.4.240.0040.00316.66
7.4.230.0030.00316.52
7.4.220.0110.00716.73
7.4.210.0090.00916.75
7.4.200.0030.00316.50
7.4.190.0040.00416.90
7.4.160.0120.00316.79
7.4.150.0190.00016.78
7.4.140.0130.00816.56
7.4.130.0070.01016.77
7.4.120.0100.00816.57
7.4.110.0130.00616.42
7.4.100.0090.00916.44
7.4.90.0200.01516.59
7.4.80.0060.01119.39
7.4.70.0110.00716.57
7.4.60.0030.01316.45
7.4.50.0030.00616.65
7.4.40.0070.00716.51
7.4.30.0050.01416.73
7.4.00.0070.01015.02
7.3.330.0000.00713.13
7.3.320.0030.00313.07
7.3.310.0030.00316.22
7.3.300.0030.00316.24
7.3.290.0080.00616.30
7.3.280.0110.00716.29
7.3.270.0150.00616.64
7.3.260.0070.01016.24
7.3.250.0120.00716.65
7.3.240.0120.00816.70
7.3.230.0090.00916.75
7.3.210.0060.01016.38
7.3.200.0100.01016.32
7.3.190.0070.01016.54
7.3.180.0130.00716.41
7.3.170.0040.01216.29
7.3.160.0130.00416.40
7.3.120.0000.01115.04
7.2.330.0060.01216.71
7.2.320.0140.00416.80
7.2.310.0180.00316.71
7.2.300.0090.00916.79
7.2.290.0160.00616.60
7.2.00.0110.00419.77
7.1.200.0060.00315.84
7.1.100.0000.01318.20
7.1.70.0030.00517.42
7.1.60.0030.02019.40
7.1.50.0000.02217.06
7.1.00.0100.06322.43
7.0.200.0000.00816.86
7.0.140.0030.07321.93
7.0.120.0000.03322.07
7.0.60.0100.08019.88
7.0.50.0070.07717.82
7.0.40.0030.08720.05
7.0.30.0530.07020.17
7.0.20.0330.09020.35
7.0.10.0130.04720.20
7.0.00.0100.08720.02
5.6.280.0030.07321.01
5.6.210.0000.04320.47
5.6.200.0170.07018.12
5.6.190.0070.04020.46
5.6.180.0230.07020.58
5.6.170.0200.03720.44
5.6.160.0100.08320.50
5.6.150.0070.06018.18
5.6.140.0030.04718.18
5.6.130.0030.04018.07
5.6.120.0100.08021.04
5.6.110.0130.07021.00
5.6.100.0000.07021.00
5.6.90.0100.04321.09
5.6.80.0070.06320.27
5.6.70.0170.03320.34
5.5.350.0170.04320.40
5.5.340.0070.08317.98
5.5.330.0030.05720.36
5.5.320.0070.08020.19
5.5.310.0230.04020.26
5.5.300.0070.08017.92
5.5.290.0000.05317.88
5.5.280.0100.06020.95
5.5.270.0070.05320.86
5.5.260.0130.07720.84
5.5.250.0130.07320.79
5.5.240.0100.07320.16
5.4.450.0030.03719.58
5.4.440.0000.04019.40
5.4.430.0030.03719.37
5.4.420.0000.04019.56
5.4.410.0000.04019.29
5.4.400.0000.03719.25
5.4.390.0030.04019.22
5.4.380.0030.03718.92
5.4.370.0000.03719.13
5.4.360.0030.03319.13
5.4.350.0000.04018.90
5.4.340.0070.03719.22
5.4.320.0070.05719.07
5.4.310.0030.08019.06
5.4.300.0100.06319.09
5.4.290.0030.06019.10
5.4.280.0070.07718.88
5.4.270.0000.07319.08
5.4.260.0030.07319.07
5.4.250.0070.07019.02
5.4.240.0070.07718.80
5.4.230.0030.07019.16
5.4.220.0070.06018.93
5.4.210.0000.06719.24
5.4.200.0070.06718.92
5.4.190.0070.07019.19
5.4.180.0030.04019.06
5.4.170.0030.05019.07
5.4.160.0030.05718.89
5.4.150.0070.04718.89
5.4.140.0000.06016.43
5.4.130.0030.05316.43
5.4.120.0070.04316.43
5.4.110.0100.06716.39
5.4.100.0000.05316.38
5.4.90.0070.06716.24
5.4.80.0000.07316.44
5.4.70.0200.03316.41
5.4.60.0100.05716.17
5.4.50.0000.03716.15
5.4.40.0070.06716.36
5.4.30.0030.06716.30
5.4.20.0070.06716.35
5.4.10.0070.03316.45
5.4.00.0070.03715.99
5.3.290.0030.08014.59
5.3.280.0030.04014.50
5.3.270.0000.04714.46
5.3.260.0030.06314.51
5.3.250.0100.05714.45
5.3.240.0070.05014.44
5.3.230.0000.06714.55
5.3.220.0030.06014.41
5.3.210.0030.07714.52
5.3.200.0030.06714.55
5.3.190.0030.05714.61
5.3.180.0070.04314.52
5.3.170.0000.07714.40
5.3.160.0070.06314.65
5.3.150.0000.04014.39
5.3.140.0070.03314.41
5.3.130.0030.05014.59
5.3.120.0030.05014.48
5.3.110.0070.04014.45
5.3.100.0000.04313.86
5.3.90.0000.04013.96
5.3.80.0030.08713.79
5.3.70.0030.07314.06
5.3.60.0030.06313.94
5.3.50.0070.06713.89
5.3.40.0100.05313.88
5.3.30.0000.05713.94
5.3.20.0000.07313.54
5.3.10.0030.05013.60
5.3.00.0000.06713.68
5.2.170.0030.03713.07
5.2.160.0000.05013.07
5.2.150.0000.05713.07
5.2.140.0000.04013.07
5.2.130.0070.06013.07
5.2.120.0000.06013.07
5.2.110.0030.04713.07
5.2.100.0000.06013.07
5.2.90.0000.05713.07
5.2.80.0030.06313.07
5.2.70.0070.04013.07
5.2.60.0000.03313.07
5.2.50.0030.03013.07
5.2.40.0070.06013.07
5.2.30.0000.04013.07
5.2.20.0000.03313.07
5.2.10.0070.03313.07
5.2.00.0000.04713.07
5.1.60.0000.03013.07
5.1.50.0130.02713.07
5.1.40.0030.05013.07
5.1.30.0030.04013.07
5.1.20.0070.02713.07
5.1.10.0070.04313.07
5.1.00.0000.05713.07
5.0.50.0000.03313.07
5.0.40.0070.04013.07
5.0.30.0030.03313.07
5.0.20.0000.03313.07
5.0.10.0030.04713.07
5.0.00.0030.06013.07
4.4.90.0030.01713.07
4.4.80.0000.01713.07
4.4.70.0030.03013.07
4.4.60.0030.03013.07
4.4.50.0000.03013.07
4.4.40.0000.05313.07
4.4.30.0070.03313.07
4.4.20.0070.02013.07
4.4.10.0030.03313.07
4.4.00.0000.04313.07
4.3.110.0000.03313.07
4.3.100.0030.03313.07
4.3.90.0000.02713.07
4.3.80.0000.05313.07
4.3.70.0000.02313.07
4.3.60.0030.02013.07
4.3.50.0070.02713.07
4.3.40.0070.04713.07
4.3.30.0030.03313.07
4.3.20.0000.04013.07
4.3.10.0030.03313.07
4.3.00.0000.02713.07

preferences:
43.85 ms | 401 KiB | 5 Q