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.0100.01018.61
8.3.50.0070.01222.05
8.3.40.0120.00318.76
8.3.30.0150.00618.76
8.3.20.0160.00318.73
8.3.10.0040.00421.09
8.3.00.0080.00021.73
8.2.180.0140.00416.88
8.2.170.0190.00022.96
8.2.160.0030.01020.38
8.2.150.0100.00624.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0100.00019.45
8.2.110.0060.00321.20
8.2.100.0040.00718.03
8.2.90.0040.00419.88
8.2.80.0000.00818.03
8.2.70.0040.00417.90
8.2.60.0080.00017.98
8.2.50.0040.00418.10
8.2.40.0000.00720.49
8.2.30.0080.00021.08
8.2.20.0040.00417.82
8.2.10.0070.00017.75
8.2.00.0050.00517.75
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01022.39
8.1.230.0040.00720.88
8.1.220.0000.00820.78
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0030.00617.35
8.1.180.0030.00618.10
8.1.170.0060.00318.76
8.1.160.0070.00018.87
8.1.150.0030.00518.61
8.1.140.0000.00717.49
8.1.130.0000.00717.86
8.1.120.0040.00417.53
8.1.110.0040.00417.55
8.1.100.0000.00717.45
8.1.90.0080.00017.61
8.1.80.0000.00717.45
8.1.70.0030.00317.55
8.1.60.0060.00317.70
8.1.50.0080.00017.51
8.1.40.0040.00417.55
8.1.30.0040.00417.58
8.1.20.0040.00417.66
8.1.10.0000.00817.74
8.1.00.0000.01217.49
8.0.300.0030.00621.71
8.0.290.0040.00416.88
8.0.280.0000.00718.54
8.0.270.0040.00417.14
8.0.260.0000.00616.98
8.0.250.0020.00517.18
8.0.240.0060.00317.09
8.0.230.0030.00417.00
8.0.220.0000.00716.93
8.0.210.0040.00416.98
8.0.200.0000.00616.96
8.0.190.0040.00417.06
8.0.180.0040.00417.04
8.0.170.0000.00716.97
8.0.160.0030.00316.96
8.0.150.0000.00716.81
8.0.140.0000.00716.91
8.0.130.0030.00313.43
8.0.120.0060.00316.98
8.0.110.0030.00616.77
8.0.100.0000.00816.80
8.0.90.0060.00316.86
8.0.80.0030.01217.03
8.0.70.0000.00816.98
8.0.60.0070.00016.81
8.0.50.0040.00417.10
8.0.30.0140.00517.40
8.0.20.0130.00917.40
8.0.10.0050.00317.07
8.0.00.0110.01017.07
7.4.330.0050.00016.81
7.4.320.0030.00516.70
7.4.300.0070.00016.80
7.4.290.0000.00716.71
7.4.280.0040.00416.77
7.4.270.0000.00716.68
7.4.260.0030.00313.50
7.4.250.0050.00516.75
7.4.240.0030.00316.56
7.4.230.0070.00016.57
7.4.220.0160.01016.70
7.4.210.0110.00616.73
7.4.200.0000.00716.86
7.4.190.0000.00816.61
7.4.160.0070.01116.62
7.4.150.0080.00917.40
7.4.140.0080.00917.86
7.4.130.0130.00416.68
7.4.120.0150.00516.57
7.4.110.0130.01016.57
7.4.100.0160.00616.44
7.4.90.0090.00916.58
7.4.80.0080.00819.39
7.4.70.0130.00316.78
7.4.60.0030.01416.46
7.4.50.0040.00416.79
7.4.40.0060.01022.77
7.4.30.0120.00616.53
7.4.00.0080.00915.01
7.3.330.0000.00513.20
7.3.320.0020.00213.22
7.3.310.0000.00616.23
7.3.300.0070.00016.33
7.3.290.0080.01216.36
7.3.280.0110.00616.28
7.3.270.0060.01317.40
7.3.260.0140.00718.24
7.3.250.0090.00816.46
7.3.240.0070.01016.32
7.3.230.0120.01116.65
7.3.210.0090.00616.57
7.3.200.0150.00619.39
7.3.190.0100.00716.42
7.3.180.0040.01416.65
7.3.170.0030.01416.28
7.3.160.0000.01616.18
7.3.120.0090.00614.83
7.3.110.0080.01115.11
7.3.100.0000.01514.91
7.3.90.0060.01214.83
7.3.80.0060.00914.68
7.3.70.0030.01214.59
7.3.60.0090.00614.67
7.3.50.0070.00414.73
7.3.40.0040.00814.98
7.3.30.0060.00514.96
7.3.20.0090.00916.80
7.3.10.0070.00716.61
7.3.00.0100.00716.87
7.2.330.0060.01116.46
7.2.320.0090.00916.55
7.2.310.0120.01116.68
7.2.300.0080.01616.77
7.2.290.0180.00416.56
7.2.250.0070.01115.07
7.2.240.0100.01015.12
7.2.230.0110.00715.10
7.2.220.0090.00615.06
7.2.210.0000.01415.01
7.2.200.0000.01115.04
7.2.190.0090.00615.05
7.2.180.0060.00614.93
7.2.170.0030.00614.89
7.2.00.0040.00719.28
7.1.330.0030.01315.95
7.1.320.0060.00615.69
7.1.310.0000.01716.06
7.1.300.0140.00015.82
7.1.290.0070.00415.84
7.1.280.0040.00415.63
7.1.270.0090.00315.74
7.1.260.0080.00415.79
7.1.200.0030.00816.04
7.1.100.0030.00618.23
7.1.70.0040.00417.36
7.1.60.0120.01219.40
7.1.50.0090.01517.11
7.1.00.0000.06022.38
7.0.200.0000.00717.04
7.0.140.0030.07022.18
7.0.100.0130.07719.92
7.0.90.0100.08319.89
7.0.80.0130.08320.14
7.0.70.0170.07320.13
7.0.60.0100.07319.90
7.0.50.0000.09320.24
7.0.40.0170.07320.18
7.0.30.0130.06720.04
7.0.20.0070.08320.13
7.0.10.0130.08019.98
7.0.00.0030.09019.98
5.6.280.0000.07720.91
5.6.250.0000.09020.62
5.6.240.0070.06020.54
5.6.230.0100.07720.62
5.6.220.0100.07720.61
5.6.210.0170.07020.58
5.6.200.0100.08321.03
5.6.190.0030.09020.95
5.6.180.0130.06721.11
5.6.170.0100.08321.13
5.6.160.0170.07720.98
5.6.150.0030.09021.11
5.6.140.0100.08021.13
5.6.130.0100.07320.93
5.6.120.0100.08721.03
5.6.110.0170.08021.13
5.6.100.0030.07021.06
5.6.90.0170.07720.91
5.6.80.0130.07720.48
5.6.70.0070.07320.43
5.6.60.0130.05720.38
5.6.50.0100.07720.45
5.6.40.0030.08320.46
5.6.30.0170.06720.32
5.6.20.0070.04320.41
5.6.10.0030.06720.37
5.6.00.0070.04020.50
5.5.380.0070.08320.34
5.5.370.0070.08020.50
5.5.360.0130.07320.34
5.5.350.0100.06720.43
5.5.340.0070.08020.92
5.5.330.0030.08320.92
5.5.320.0100.08020.76
5.5.310.0030.08320.73
5.5.300.0030.08720.79
5.5.290.0070.05320.92
5.5.280.0000.08320.73
5.5.270.0200.07020.78
5.5.260.0130.05320.76
5.5.250.0070.06320.64
5.5.240.0100.07720.18
5.5.230.0030.08720.24
5.5.220.0100.07320.23
5.5.210.0170.07020.23
5.5.200.0070.06320.22
5.5.190.0100.08720.18
5.5.180.0100.07320.15
5.5.160.0070.08720.11
5.5.150.0070.04720.12
5.5.140.0100.08020.10
5.5.130.0200.07020.26
5.5.120.0070.06020.22
5.5.110.0100.05020.11
5.5.100.0100.03720.17
5.5.90.0170.05719.93
5.5.80.0100.03720.05
5.5.70.0200.02720.05
5.5.60.0100.07020.04
5.5.50.0030.05720.05
5.5.40.0030.08020.13
5.5.30.0070.04020.09
5.5.20.0030.08320.09
5.5.10.0070.03720.10
5.5.00.0000.04720.07
5.4.450.0070.08719.45
5.4.440.0030.08019.11
5.4.430.0030.08719.46
5.4.420.0030.08719.28
5.4.410.0130.07319.27
5.4.400.0130.07019.15
5.4.390.0070.08019.08
5.4.380.0130.07019.05
5.4.370.0130.07319.11
5.4.360.0030.06019.12
5.4.350.0170.07018.83
5.4.340.0070.06018.94
5.4.320.0130.07319.03
5.4.310.0100.05019.05
5.4.300.0130.06018.79
5.4.290.0030.04319.09
5.4.280.0030.06318.81
5.4.270.0070.06718.90
5.4.260.0100.03718.80
5.4.250.0170.03318.89
5.4.240.0030.03719.09
5.4.230.0030.04319.02
5.4.220.0000.07318.80
5.4.210.0000.04319.13
5.4.200.0030.08019.09
5.4.190.0070.07319.08
5.4.180.0000.05019.11
5.4.170.0000.07318.95
5.4.160.0130.06019.04
5.4.150.0000.07018.96
5.4.140.0100.07016.33
5.4.130.0030.05716.33
5.4.120.0130.06016.32
5.4.110.0070.05316.39
5.4.100.0030.07016.28
5.4.90.0030.06716.46
5.4.80.0130.03316.42
5.4.70.0100.06716.45
5.4.60.0100.03016.21
5.4.50.0070.05016.19
5.4.40.0000.07716.37
5.4.30.0070.03016.27
5.4.20.0030.04016.39
5.4.10.0070.03716.19
5.4.00.0070.07715.72
5.3.290.0030.04314.65
5.3.280.0000.04014.55
5.3.270.0000.05314.43
5.3.260.0130.05014.46
5.3.250.0070.06714.44
5.3.240.0030.05714.56
5.3.230.0070.05014.54
5.3.220.0100.04014.53
5.3.210.0030.05714.40
5.3.200.0070.07714.52
5.3.190.0030.04314.43
5.3.180.0030.03714.58
5.3.170.0130.06014.55
5.3.160.0100.05714.55
5.3.150.0100.07314.43
5.3.140.0070.05314.39
5.3.130.0130.07314.50
5.3.120.0070.06314.54
5.3.110.0070.05314.54
5.3.100.0070.06714.02
5.3.90.0070.06013.85
5.3.80.0000.04013.93
5.3.70.0030.03313.98
5.3.60.0100.02713.77
5.3.50.0000.04313.80
5.3.40.0000.04313.93
5.3.30.0000.03713.89
5.3.20.0030.03713.69
5.3.10.0000.04013.66
5.3.00.0030.04013.62
5.2.170.0100.02312.02
5.2.160.0030.02712.02
5.2.150.0000.03312.02
5.2.140.0070.02712.02
5.2.130.0030.03012.02
5.2.120.0070.02312.02
5.2.110.0030.02712.02
5.2.100.0000.03312.02
5.2.90.0030.02712.02
5.2.80.0000.03312.02
5.2.70.0030.02712.02
5.2.60.0070.02012.02
5.2.50.0030.03012.02
5.2.40.0030.03012.02
5.2.30.0000.03012.02
5.2.20.0030.02712.02
5.2.10.0070.04012.02
5.2.00.0000.03012.02
5.1.60.0070.02012.02
5.1.50.0070.04312.02
5.1.40.0100.02312.02
5.1.30.0030.02712.02
5.1.20.0030.02712.02
5.1.10.0070.03312.02
5.1.00.0070.04012.02
5.0.50.0000.02012.02
5.0.40.0000.02012.02
5.0.30.0000.03312.02
5.0.20.0030.02012.02
5.0.10.0030.01712.02
5.0.00.0000.03012.02
4.4.90.0000.01712.02
4.4.80.0030.01312.02
4.4.70.0000.01712.02
4.4.60.0030.01312.02
4.4.50.0030.02012.02
4.4.40.0000.03712.02
4.4.30.0000.02712.02
4.4.20.0000.03712.02
4.4.10.0070.01312.02
4.4.00.0000.02712.02
4.3.110.0030.01312.02
4.3.100.0000.01312.02
4.3.90.0000.01312.02
4.3.80.0070.02012.02
4.3.70.0030.01312.02
4.3.60.0000.02012.02
4.3.50.0000.02012.02
4.3.40.0070.02012.02
4.3.30.0000.02312.02
4.3.20.0000.01712.02
4.3.10.0000.01712.02
4.3.00.0000.01312.02

preferences:
42.07 ms | 401 KiB | 5 Q