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.40.0090.00618.75
8.3.30.0190.00018.81
8.3.20.0040.00418.77
8.3.10.0040.00419.20
8.3.00.0000.00721.74
8.2.170.0110.00422.96
8.2.160.0100.01020.39
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0030.00521.13
8.2.110.0070.01421.15
8.2.100.0080.00417.84
8.2.90.0040.00419.04
8.2.80.0090.00017.97
8.2.70.0070.00317.88
8.2.60.0040.00417.93
8.2.50.0070.00718.07
8.2.40.0030.00518.09
8.2.30.0030.00519.53
8.2.20.0050.00317.82
8.2.10.0080.00017.89
8.2.00.0040.00717.75
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0000.00822.20
8.1.230.0090.00320.99
8.1.220.0000.00818.77
8.1.210.0060.00318.77
8.1.200.0040.00817.35
8.1.190.0000.00817.39
8.1.180.0000.00818.10
8.1.170.0000.00818.63
8.1.160.0000.00818.77
8.1.150.0040.00418.74
8.1.140.0020.00517.51
8.1.130.0030.00317.82
8.1.120.0000.00717.59
8.1.110.0030.00517.43
8.1.100.0040.00417.48
8.1.90.0000.00917.45
8.1.80.0000.00717.61
8.1.70.0000.00817.49
8.1.60.0000.00817.58
8.1.50.0080.00017.43
8.1.40.0040.00417.64
8.1.30.0080.00017.63
8.1.20.0000.00817.80
8.1.10.0040.00417.69
8.1.00.0040.00417.66
8.0.300.0040.00420.02
8.0.290.0040.00417.05
8.0.280.0040.00418.48
8.0.270.0050.00217.39
8.0.260.0030.00317.00
8.0.250.0060.00316.83
8.0.240.0080.00017.11
8.0.230.0000.00716.95
8.0.220.0030.00316.92
8.0.210.0040.00416.98
8.0.200.0040.00416.94
8.0.190.0040.00417.11
8.0.180.0040.00416.92
8.0.170.0050.00317.09
8.0.160.0050.00317.07
8.0.150.0070.00016.96
8.0.140.0000.00917.01
8.0.130.0000.00613.41
8.0.120.0000.00816.97
8.0.110.0030.00516.86
8.0.100.0000.00816.98
8.0.90.0040.00416.82
8.0.80.0060.00917.04
8.0.70.0050.00216.96
8.0.60.0000.00717.05
8.0.50.0040.00416.87
8.0.30.0050.01416.95
8.0.20.0120.00717.40
8.0.10.0000.00817.15
8.0.00.0110.01016.88
7.4.330.0030.00316.75
7.4.320.0000.00616.75
7.4.300.0000.00616.66
7.4.290.0070.00016.81
7.4.280.0000.00816.75
7.4.270.0030.00316.72
7.4.260.0050.00013.38
7.4.250.0040.00416.63
7.4.240.0030.00316.73
7.4.230.0030.00316.75
7.4.220.0110.01016.80
7.4.210.0080.00916.72
7.4.200.0030.00416.67
7.4.190.0000.00816.78
7.4.160.0130.00316.51
7.4.150.0070.01117.40
7.4.140.0110.01117.86
7.4.130.0070.01016.56
7.4.120.0080.00916.71
7.4.110.0090.00916.77
7.4.100.0140.00316.52
7.4.90.0040.01416.52
7.4.80.0160.00319.39
7.4.70.0200.00016.67
7.4.60.0110.00716.61
7.4.50.0030.00616.64
7.4.40.0070.01022.77
7.4.30.0100.00716.53
7.4.10.0090.00614.97
7.4.00.0050.01015.09
7.3.330.0000.00713.05
7.3.320.0030.00313.16
7.3.310.0040.00416.46
7.3.300.0030.00316.32
7.3.290.0030.01016.31
7.3.280.0130.00516.30
7.3.270.0170.00317.40
7.3.260.0110.01118.24
7.3.250.0090.00816.71
7.3.240.0130.01016.74
7.3.230.0060.01116.48
7.3.210.0090.00916.32
7.3.200.0140.00719.39
7.3.190.0000.02216.27
7.3.180.0100.01016.72
7.3.170.0120.00616.61
7.3.160.0120.00816.54
7.3.130.0040.01514.89
7.3.120.0080.00914.93
7.3.110.0090.00615.12
7.3.100.0030.00914.83
7.3.90.0180.00015.05
7.3.80.0000.01014.92
7.3.70.0030.01014.92
7.3.60.0030.01014.98
7.3.50.0080.00314.93
7.3.40.0110.00314.91
7.3.30.0070.00314.95
7.3.20.0100.00316.71
7.3.10.0110.00816.37
7.3.00.0110.00816.60
7.2.330.0070.01116.73
7.2.320.0120.00616.76
7.2.310.0110.00816.68
7.2.300.0180.00416.54
7.2.290.0060.01116.69
7.2.260.0120.00615.29
7.2.250.0090.00215.15
7.2.240.0060.01014.91
7.2.230.0080.00515.20
7.2.220.0030.01215.12
7.2.210.0070.00715.06
7.2.200.0070.00315.23
7.2.190.0070.00714.96
7.2.180.0030.00915.22
7.2.170.0070.00415.11
7.2.160.0030.01315.14
7.2.150.0060.01216.87
7.2.140.0060.01017.04
7.2.130.0100.00616.95
7.2.120.0080.00816.92
7.2.110.0100.01016.87
7.2.100.0150.00616.90
7.2.90.0100.00516.85
7.2.80.0090.01216.83
7.2.70.0050.01117.05
7.2.60.0080.00816.90
7.2.50.0070.01116.71
7.2.40.0090.00516.97
7.2.30.0110.00916.72
7.2.20.0060.01016.66
7.2.10.0140.00516.88
7.2.00.0090.00516.82
7.1.330.0110.00315.78
7.1.320.0060.00815.69
7.1.310.0040.00416.11
7.1.300.0060.00615.52
7.1.290.0060.00315.62
7.1.280.0090.00315.86
7.1.270.0120.00615.99
7.1.260.0060.00615.84
7.1.250.0080.01015.74
7.1.240.0070.00715.97
7.1.230.0000.00915.71
7.1.220.0000.00815.95
7.1.210.0100.00315.85
7.1.200.0060.00715.88
7.1.190.0100.00715.81
7.1.180.0030.01315.98
7.1.170.0030.00716.01
7.1.160.0040.00715.68
7.1.150.0030.00715.95
7.1.140.0030.00616.05
7.1.130.0070.00715.61
7.1.120.0040.00415.75
7.1.110.0040.00716.01
7.1.100.0020.00916.91
7.1.90.0030.01116.00
7.1.80.0090.00016.04
7.1.70.0020.01016.52
7.1.60.0090.00917.72
7.1.50.0050.01216.53
7.1.40.0000.01015.98
7.1.30.0030.01015.79
7.1.20.0070.00715.93
7.1.10.0070.01015.89
7.1.00.0020.03719.21
7.0.330.0070.00715.56
7.0.320.0070.01015.41
7.0.310.0130.00015.65
7.0.300.0080.00315.73
7.0.290.0040.00815.38
7.0.280.0070.00715.61
7.0.270.0080.00015.46
7.0.260.0080.00015.70
7.0.250.0060.00915.73
7.0.240.0040.00415.59
7.0.230.0000.01215.33
7.0.220.0040.00415.23
7.0.210.0040.00815.37
7.0.200.0060.00516.15
7.0.190.0030.01015.54
7.0.180.0000.00915.70
7.0.170.0120.00015.34
7.0.160.0030.01315.61
7.0.150.0030.01315.72
7.0.140.0090.03718.65
7.0.130.0070.00715.69
7.0.120.0100.00715.62
7.0.110.0100.00715.66
7.0.100.0060.00615.73
7.0.90.0060.00315.66
7.0.80.0030.03017.61
7.0.70.0050.05317.80
7.0.60.0040.04517.64
7.0.50.0230.03317.91
7.0.40.0010.03116.86
7.0.30.0080.04516.81
7.0.20.0070.03616.83
7.0.10.0140.04316.86
7.0.00.0060.02616.88
5.6.400.0090.00614.37
5.6.390.0090.00614.53
5.6.380.0080.00814.44
5.6.370.0100.00014.47
5.6.360.0040.00914.41
5.6.350.0080.00314.14
5.6.340.0060.00614.41
5.6.330.0090.00614.15
5.6.320.0000.00814.14
5.6.310.0030.00714.39
5.6.300.0030.00914.57
5.6.290.0070.01014.10
5.6.280.0050.04017.60
5.6.270.0070.00714.39
5.6.260.0090.00614.15
5.6.250.0090.00614.09
5.6.240.0070.00714.63
5.6.230.0060.02717.52
5.6.220.0020.04917.32
5.6.210.0130.04017.62
5.6.200.0070.03217.74
5.6.190.0080.03117.60
5.6.180.0080.03817.60
5.6.170.0080.04017.66
5.6.160.0030.02917.66
5.6.150.0080.02317.63
5.6.140.0050.02317.72
5.6.130.0120.02017.54
5.6.120.0080.02217.68
5.6.110.0090.01717.60
5.6.100.0070.01917.76
5.6.90.0050.02517.67
5.6.80.0060.03717.27
5.6.70.0050.02017.34
5.6.60.0070.02117.34
5.6.50.0040.03917.42
5.6.40.0080.02117.39
5.6.30.0070.02617.33
5.6.20.0030.02517.23
5.6.10.0020.02417.31
5.6.00.0100.02017.27
5.5.380.0000.01214.50
5.5.370.0050.04217.50
5.5.360.0080.04117.38
5.5.350.0100.04217.32
5.5.340.0100.04217.68
5.5.330.0050.04517.62
5.5.320.0050.04417.60
5.5.310.0110.04117.29
5.5.300.0050.02217.51
5.5.290.0020.05017.61
5.5.280.0080.02317.56
5.5.270.0020.03017.55
5.5.260.0050.02217.61
5.5.250.0020.02517.39
5.5.240.0030.02317.27
5.5.230.0020.02717.12
5.5.220.0000.03117.28
5.5.210.0060.02517.11
5.5.200.0030.02617.08
5.5.190.0070.03717.11
5.5.180.0020.02417.07
5.5.170.0100.00313.98
5.5.160.0020.02617.23
5.5.150.0110.02517.20
5.5.140.0050.02816.96
5.5.130.0050.03117.13
5.5.120.0050.04417.02
5.5.110.0050.02916.90
5.5.100.0090.04117.11
5.5.90.0080.04017.24
5.5.80.0030.04417.05
5.5.70.0070.03117.08
5.5.60.0080.04217.18
5.5.50.0120.03517.12
5.5.40.0060.04117.17
5.5.30.0110.03717.18
5.5.20.0120.03817.07
5.5.10.0070.03217.12
5.5.00.0030.02916.88
5.4.450.0020.02616.22
5.4.440.0000.02716.30
5.4.430.0030.02016.26
5.4.420.0020.04316.36
5.4.410.0020.02216.29
5.4.400.0030.02316.13
5.4.390.0030.02316.18
5.4.380.0050.03016.21
5.4.370.0060.03116.04
5.4.360.0070.03316.14
5.4.350.0000.02816.17
5.4.340.0030.02316.22
5.4.330.0070.00413.30
5.4.320.0030.02316.18
5.4.310.0020.02516.13
5.4.300.0040.02016.13
5.4.290.0020.02316.13
5.4.280.0030.03116.21
5.4.270.0030.04516.16
5.4.260.0100.03816.10
5.4.250.0050.04616.21
5.4.240.0040.04316.17
5.4.230.0040.02116.20
5.4.220.0090.03716.21
5.4.210.0020.03216.21
5.4.200.0070.03016.20
5.4.190.0050.04216.18
5.4.180.0150.03616.18
5.4.170.0070.04016.22
5.4.160.0060.04316.17
5.4.150.0070.02616.15
5.4.140.0000.03414.86
5.4.130.0150.03014.86
5.4.120.0110.03614.87
5.4.110.0130.02814.90
5.4.100.0090.02014.83
5.4.90.0070.04014.84
5.4.80.0070.02714.75
5.4.70.0030.03414.75
5.4.60.0070.04014.82
5.4.50.0070.03614.88
5.4.40.0100.03814.86
5.4.30.0050.03714.75
5.4.20.0080.03814.82
5.4.10.0030.02914.77
5.4.00.0030.02614.51
5.3.290.0050.01813.89
5.3.280.0060.04313.94
5.3.270.0020.02513.94
5.3.260.0030.02313.87
5.3.250.0050.02813.95
5.3.240.0030.04213.96
5.3.230.0070.04113.94
5.3.220.0080.03813.90
5.3.210.0030.04213.89
5.3.200.0060.03913.86
5.3.190.0070.03613.86
5.3.180.0080.03513.86
5.3.170.0040.03113.86
5.3.160.0100.03313.87
5.3.150.0030.03913.92
5.3.140.0070.04313.85
5.3.130.0070.04013.90
5.3.120.0030.04213.83
5.3.110.0080.02713.92
5.3.100.0120.03313.67
5.3.90.0100.03513.65
5.3.80.0090.03513.66
5.3.70.0050.02213.66
5.3.60.0030.03313.64
5.3.50.0040.04213.60
5.3.40.0030.02913.60
5.3.30.0020.03313.59
5.3.20.0020.04213.38
5.3.10.0060.04313.46
5.3.00.0050.02313.43
5.2.170.0100.03011.68
5.2.160.0030.03311.68
5.2.150.0070.06011.68
5.2.140.0000.06011.68
5.2.130.0030.06311.68
5.2.120.0030.05011.68
5.2.110.0000.04011.68
5.2.100.0100.04311.68
5.2.90.0070.03011.68
5.2.80.0070.03711.68
5.2.70.0100.03711.68
5.2.60.0070.05311.68
5.2.50.0000.03711.68
5.2.40.0070.06311.68
5.2.30.0100.05011.68
5.2.20.0100.06011.68
5.2.10.0070.06011.68
5.2.00.0000.06711.68
5.1.60.0030.05311.68
5.1.50.0070.05311.68
5.1.40.0030.05711.68
5.1.30.0070.04711.68
5.1.20.0070.05711.68
5.1.10.0100.03711.68
5.1.00.0130.04711.68
5.0.50.0030.04011.68
5.0.40.0030.04711.68
5.0.30.0100.06011.68
5.0.20.0030.02711.68
5.0.10.0000.02711.68
5.0.00.0000.06711.68
4.4.90.0070.02011.68
4.4.80.0030.02011.68
4.4.70.0030.03711.68
4.4.60.0030.02311.68
4.4.50.0100.02711.68
4.4.40.0070.05011.68
4.4.30.0000.03311.68
4.4.20.0030.03711.68
4.4.10.0000.03711.68
4.4.00.0130.04311.68
4.3.110.0070.02311.68
4.3.100.0070.02011.68
4.3.90.0000.02011.68
4.3.80.0000.04311.68
4.3.70.0000.01711.68
4.3.60.0030.01711.68
4.3.50.0030.03311.68
4.3.40.0000.05011.68
4.3.30.0000.03311.68
4.3.20.0000.03011.68
4.3.10.0030.01711.68
4.3.00.0000.02711.68

preferences:
37.87 ms | 400 KiB | 5 Q