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.0130.00718.56
8.3.50.0080.01121.96
8.3.40.0150.00018.98
8.3.30.0090.00618.96
8.3.20.0080.00018.94
8.3.10.0000.00820.82
8.3.00.0050.00321.82
8.2.180.0110.00716.88
8.2.170.0150.00322.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0000.00721.19
8.2.110.0040.00720.39
8.2.100.0070.00417.91
8.2.90.0050.00319.23
8.2.80.0000.00817.97
8.2.70.0080.00317.63
8.2.60.0080.00017.80
8.2.50.0060.00318.07
8.2.40.0000.00818.22
8.2.30.0030.00619.59
8.2.20.0070.00017.81
8.2.10.0000.00717.78
8.2.00.0030.00617.75
8.1.280.0070.01025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0100.00320.69
8.1.230.0080.00320.85
8.1.220.0050.00318.77
8.1.210.0050.00318.89
8.1.200.0040.00717.21
8.1.190.0050.00319.31
8.1.180.0090.00018.10
8.1.170.0070.00318.63
8.1.160.0050.00218.91
8.1.150.0000.00718.73
8.1.140.0030.00517.56
8.1.130.0030.00317.78
8.1.120.0000.00717.61
8.1.110.0000.00717.42
8.1.100.0040.00417.46
8.1.90.0040.00417.58
8.1.80.0030.00517.47
8.1.70.0000.00717.44
8.1.60.0060.00317.69
8.1.50.0040.00417.56
8.1.40.0000.00917.61
8.1.30.0060.00317.79
8.1.20.0030.00517.78
8.1.10.0040.00417.72
8.1.00.0040.00417.60
8.0.300.0070.00019.99
8.0.290.0000.00717.05
8.0.280.0000.00818.36
8.0.270.0000.00817.30
8.0.260.0000.00716.86
8.0.250.0070.00317.09
8.0.240.0000.00817.09
8.0.230.0040.00417.09
8.0.220.0030.00316.96
8.0.210.0000.00716.86
8.0.200.0000.00717.05
8.0.190.0040.00317.07
8.0.180.0030.00517.00
8.0.170.0000.00817.03
8.0.160.0040.00416.90
8.0.150.0040.00416.90
8.0.140.0030.00617.01
8.0.130.0030.00313.43
8.0.120.0040.00417.02
8.0.110.0030.00616.86
8.0.100.0000.00816.96
8.0.90.0040.00416.81
8.0.80.0000.01617.04
8.0.70.0050.00316.86
8.0.60.0000.00816.81
8.0.50.0050.00216.86
8.0.30.0160.00317.23
8.0.20.0130.00917.40
8.0.10.0040.00416.89
8.0.00.0180.01916.72
7.4.330.0050.00016.73
7.4.320.0030.00316.65
7.4.300.0030.00316.72
7.4.290.0030.00316.77
7.4.280.0030.00316.80
7.4.270.0040.00416.71
7.4.260.0060.00313.42
7.4.250.0030.00616.61
7.4.240.0080.00016.74
7.4.230.0080.00016.79
7.4.220.0110.01016.56
7.4.210.0090.00916.79
7.4.200.0040.00416.85
7.4.190.0030.00316.61
7.4.160.0090.00616.76
7.4.150.0170.00317.40
7.4.140.0140.00517.86
7.4.130.0140.00616.66
7.4.120.0120.00516.53
7.4.110.0070.01116.55
7.4.100.0030.01516.79
7.4.90.0170.00316.89
7.4.80.0130.00319.39
7.4.70.0120.00616.75
7.4.60.0060.00916.57
7.4.50.0030.00616.51
7.4.40.0060.00622.77
7.4.30.0100.00616.61
7.4.00.0070.01015.19
7.3.330.0000.00613.03
7.3.320.0000.00613.13
7.3.310.0000.00816.38
7.3.300.0080.00016.29
7.3.290.0070.01316.28
7.3.280.0140.00316.28
7.3.270.0060.01217.40
7.3.260.0100.00918.24
7.3.250.0090.00916.53
7.3.240.0120.00616.56
7.3.230.0140.00316.39
7.3.210.0140.00316.33
7.3.200.0100.00719.39
7.3.190.0040.01416.45
7.3.180.0080.00816.38
7.3.170.0120.00616.60
7.3.160.0060.01016.72
7.3.120.0060.00914.91
7.3.110.0090.00614.71
7.3.100.0020.01414.75
7.3.90.0070.00514.84
7.3.80.0020.01015.04
7.3.70.0060.00914.76
7.3.60.0030.01014.70
7.3.50.0080.00514.91
7.3.40.0050.00714.83
7.3.30.0060.00614.79
7.3.20.0040.01116.68
7.3.10.0110.00316.78
7.3.00.0040.00816.72
7.2.330.0140.00316.71
7.2.320.0120.00616.62
7.2.310.0100.01316.61
7.2.300.0070.01016.66
7.2.290.0030.01416.52
7.2.250.0030.01215.09
7.2.240.0050.01015.05
7.2.230.0040.01115.05
7.2.220.0050.00915.14
7.2.210.0070.00715.12
7.2.200.0050.00815.09
7.2.190.0030.01315.24
7.2.180.0050.01214.99
7.2.170.0040.00915.16
7.2.00.0030.01219.23
7.1.330.0090.00615.87
7.1.320.0100.00515.80
7.1.310.0020.01115.81
7.1.300.0040.01215.85
7.1.290.0020.01115.77
7.1.280.0070.01015.93
7.1.270.0080.00315.70
7.1.260.0040.00915.87
7.1.100.0030.00918.32
7.1.70.0060.00817.22
7.1.60.0110.01419.40
7.1.50.0240.01434.99
7.1.00.0100.05022.47
7.0.200.0040.00416.70
7.0.140.0070.07022.00
7.0.60.0100.06319.90
7.0.50.0070.04717.84
7.0.40.0130.06020.28
7.0.30.0570.06720.23
7.0.20.0070.05020.05
7.0.10.0330.07720.18
7.0.00.0070.08320.21
5.6.280.0000.07320.89
5.6.210.0070.08320.64
5.6.200.0070.05318.16
5.6.190.0030.07320.66
5.6.180.0330.07020.67
5.6.170.0370.07320.38
5.6.160.0070.03720.51
5.6.150.0000.04318.18
5.6.140.0030.04018.22
5.6.130.0100.06718.16
5.6.120.0070.05720.98
5.6.110.0100.06320.88
5.6.100.0070.05721.05
5.6.90.0030.08021.07
5.6.80.0100.08020.28
5.6.70.0100.03320.39
5.5.350.0300.05320.44
5.5.340.0030.08317.91
5.5.330.0100.08020.36
5.5.320.0170.07020.23
5.5.310.0230.08320.28
5.5.300.0030.08317.94
5.5.290.0000.09017.92
5.5.280.0030.04020.87
5.5.270.0200.07320.89
5.5.260.0070.08720.76
5.5.250.0130.07320.71
5.5.240.0170.07320.27
5.4.450.3470.04319.41
5.4.440.3570.03719.40
5.4.430.3700.03719.43
5.4.420.3270.04319.39
5.4.410.3430.03319.30
5.4.400.3130.04018.93
5.4.390.3400.04319.09
5.4.380.3370.03318.96
5.4.370.3330.03719.07
5.4.360.3200.02719.05
5.4.350.3500.03019.11
5.4.340.3470.04019.07
5.4.320.3570.04019.09
5.4.310.3330.03319.10
5.4.300.3730.04018.86
5.4.290.3630.03018.82
5.4.280.4370.03019.07
5.4.270.4130.03719.06
5.4.260.4000.04019.11
5.4.250.4300.03319.05
5.4.240.0070.05719.06
5.4.230.0070.07318.84
5.4.220.3730.04019.08
5.4.210.3800.03018.98
5.4.200.3500.04018.95
5.4.190.3570.04319.07
5.4.180.4070.04018.84
5.4.170.4200.04019.05
5.4.160.3930.03718.83
5.4.150.4200.04318.83
5.4.140.0100.07316.41
5.4.130.0070.04316.21
5.4.120.3700.03016.49
5.4.110.3830.03716.45
5.4.100.4270.04016.54
5.4.90.4230.03716.47
5.4.80.4300.03316.21
5.4.70.4070.03316.36
5.4.60.4230.03716.37
5.4.50.3970.04016.17
5.4.40.3730.02716.37
5.4.30.4200.04016.45
5.4.20.3770.03016.34
5.4.10.3670.03316.03
5.4.00.3770.03315.79
5.3.290.3330.04014.62
5.3.280.3770.03714.62
5.3.270.4200.04014.55
5.3.260.3930.04314.63
5.3.250.4300.04014.51
5.3.240.0030.04314.44
5.3.230.2130.04314.69
5.3.220.3400.03714.61
5.3.210.4230.03714.50
5.3.200.4400.03014.61
5.3.190.4200.04314.51
5.3.180.4230.03714.44
5.3.170.3870.04014.50
5.3.160.4070.03314.54
5.3.150.4170.04014.42
5.3.140.4300.03314.41
5.3.130.4200.03714.39
5.3.120.3930.05314.39
5.3.110.3770.03714.49
5.3.100.3370.03013.88
5.3.90.3630.03313.89
5.3.80.3600.04013.86
5.3.70.3470.04014.00
5.3.60.3570.04313.93
5.3.50.3200.03313.79
5.3.40.4230.04013.89
5.3.30.4070.03013.81
5.3.20.4200.03713.46
5.3.10.4230.03713.51
5.3.00.4330.03313.68
5.2.170.3100.03711.19
5.2.160.3670.02710.98
5.2.150.3200.02311.01
5.2.140.3700.03311.03
5.2.130.3570.03011.12
5.2.120.3270.02710.96
5.2.110.3770.02711.00
5.2.100.3470.02711.15
5.2.90.3030.02010.96
5.2.80.2470.03310.94
5.2.70.3100.03710.92
5.2.60.3170.02711.05
5.2.50.3230.02711.19
5.2.40.2270.02710.86
5.2.30.2230.03310.81
5.2.20.2470.02710.91
5.2.10.2430.03010.88
5.2.00.2830.03010.80
5.1.60.3570.0179.99
5.1.50.2630.0239.99
5.1.40.2570.02710.05
5.1.30.2300.02310.44
5.1.20.2170.02710.41
5.1.10.2370.02710.09
5.1.00.2400.02310.13
5.0.50.1130.0238.45
5.0.40.0870.0178.45
5.0.30.1100.0308.13
5.0.20.1100.0238.29
5.0.10.1130.0208.07
5.0.00.1170.0308.15
4.4.90.1100.0175.82
4.4.80.1130.0135.84
4.4.70.1170.0175.81
4.4.60.1600.0105.82
4.4.50.1230.0175.79
4.4.40.1700.0275.84
4.4.30.1530.0175.86
4.4.20.1100.0175.90
4.4.10.1400.0205.96
4.4.00.1130.0235.84
4.3.110.1100.0175.80
4.3.100.1100.0175.77
4.3.90.1170.0105.81
4.3.80.1100.0235.75
4.3.70.1130.0135.71
4.3.60.1170.0105.85
4.3.50.0930.0135.77
4.3.40.1100.0235.73
4.3.30.0530.0175.65
4.3.20.0600.0175.65
4.3.10.0530.0175.65
4.3.00.0570.0175.65

preferences:
56.08 ms | 401 KiB | 5 Q