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.0110.01118.43
8.3.50.0060.01022.05
8.3.40.0160.00018.97
8.3.30.0080.00818.79
8.3.20.0090.00018.81
8.3.10.0130.00720.89
8.3.00.0030.00621.95
8.2.180.0080.00818.79
8.2.170.0070.00722.96
8.2.160.0210.00021.32
8.2.150.0030.00624.18
8.2.140.0070.01124.66
8.2.130.0090.00326.16
8.2.120.0190.00018.75
8.2.110.0090.00020.53
8.2.100.0040.00818.03
8.2.90.0030.00619.27
8.2.80.0090.00019.25
8.2.70.0030.00517.75
8.2.60.0080.00017.92
8.2.50.0050.00318.07
8.2.40.0000.00818.22
8.2.30.0050.00321.36
8.2.20.0000.00817.70
8.2.10.0040.00417.89
8.2.00.0110.00017.69
8.1.280.0070.00725.92
8.1.270.0110.00723.99
8.1.260.0040.00426.35
8.1.250.0070.01128.09
8.1.240.0060.00322.42
8.1.230.0000.01120.85
8.1.220.0040.00418.77
8.1.210.0000.00818.91
8.1.200.0100.00917.50
8.1.190.0000.00817.39
8.1.180.0040.00418.10
8.1.170.0080.00018.68
8.1.160.0030.00718.86
8.1.150.0000.00818.65
8.1.140.0000.00817.55
8.1.130.0000.00717.99
8.1.120.0070.00217.56
8.1.110.0000.00817.59
8.1.100.0040.00417.61
8.1.90.0040.00417.46
8.1.80.0000.00817.45
8.1.70.0000.00717.53
8.1.60.0040.00417.68
8.1.50.0040.00417.44
8.1.40.0060.00317.68
8.1.30.0030.00517.68
8.1.20.0040.00417.69
8.1.10.0030.00517.67
8.1.00.0040.00417.59
8.0.300.0040.00419.72
8.0.290.0040.00417.04
8.0.280.0000.00718.35
8.0.270.0040.00417.29
8.0.260.0040.00416.98
8.0.250.0080.00017.07
8.0.240.0040.00416.98
8.0.230.0000.00916.98
8.0.220.0030.00316.95
8.0.210.0040.00417.02
8.0.200.0030.00317.10
8.0.190.0040.00417.02
8.0.180.0000.00717.03
8.0.170.0020.00516.86
8.0.160.0040.00417.01
8.0.150.0040.00416.82
8.0.140.0060.00316.84
8.0.130.0030.00313.30
8.0.120.0000.00816.86
8.0.110.0080.00016.84
8.0.100.0070.00016.88
8.0.90.0040.00416.94
8.0.80.0150.00017.00
8.0.70.0050.00216.80
8.0.60.0080.00016.94
8.0.50.0000.00717.00
8.0.30.0090.00917.29
8.0.20.0130.00517.40
8.0.10.0070.00017.16
8.0.00.0140.00717.00
7.4.330.0000.00516.77
7.4.320.0030.00716.68
7.4.300.0000.00616.64
7.4.290.0030.00316.80
7.4.280.0000.00716.73
7.4.270.0000.00816.79
7.4.260.0000.00513.41
7.4.250.0000.00816.77
7.4.240.0030.00316.78
7.4.230.0040.00416.74
7.4.220.0140.00716.70
7.4.210.0090.00816.81
7.4.200.0000.00716.84
7.4.190.0000.00716.78
7.4.160.0030.01316.74
7.4.150.0040.01317.40
7.4.140.0080.01017.86
7.4.130.0110.00716.52
7.4.120.0100.00816.66
7.4.110.0070.01016.50
7.4.100.0030.01516.80
7.4.90.0110.01116.67
7.4.80.0090.00919.39
7.4.70.0120.00616.61
7.4.60.0060.01116.43
7.4.50.0000.00916.54
7.4.40.0080.00322.77
7.4.30.0150.00616.53
7.4.00.0090.00514.83
7.3.330.0000.00513.13
7.3.320.0030.00313.13
7.3.310.0040.00416.16
7.3.300.0020.00516.31
7.3.290.0140.00016.35
7.3.280.0080.00816.34
7.3.270.0100.00717.40
7.3.260.0100.00918.24
7.3.250.0090.01016.52
7.3.240.0140.00416.33
7.3.230.0150.00916.39
7.3.210.0130.00416.48
7.3.200.0120.00919.39
7.3.190.0140.00916.60
7.3.180.0080.00816.23
7.3.170.0200.00016.54
7.3.160.0000.02116.56
7.3.120.0060.00914.94
7.3.110.0040.01414.84
7.3.100.0030.01515.16
7.3.90.0060.01315.05
7.3.80.0070.00714.98
7.3.70.0060.00614.63
7.3.60.0100.00714.71
7.3.50.0030.00914.76
7.3.40.0030.01414.69
7.3.30.0060.00314.91
7.3.20.0100.00716.70
7.3.10.0130.00516.64
7.3.00.0100.00516.83
7.2.330.0080.00916.49
7.2.320.0100.01416.59
7.2.310.0150.01016.64
7.2.300.0090.00916.59
7.2.290.0120.00416.89
7.2.250.0170.00314.85
7.2.240.0100.01015.11
7.2.230.0070.01014.68
7.2.220.0000.01315.06
7.2.210.0090.00615.06
7.2.200.0060.00615.26
7.2.190.0060.00615.21
7.2.180.0000.01415.18
7.2.170.0030.00914.89
7.2.130.0070.00716.73
7.2.120.0060.01016.92
7.2.110.0120.00416.94
7.2.100.0120.00416.94
7.2.90.0110.00417.00
7.2.80.0130.00616.62
7.2.70.0080.00616.80
7.2.60.0090.00516.98
7.2.50.0090.00616.80
7.2.40.0040.01116.91
7.2.30.0080.00816.92
7.2.20.0070.01016.88
7.2.10.0090.00616.81
7.2.00.0080.00517.98
7.1.330.0100.00315.97
7.1.320.0040.00716.02
7.1.310.0070.01016.13
7.1.300.0170.00015.91
7.1.290.0070.00715.77
7.1.280.0060.00615.87
7.1.270.0030.00715.99
7.1.260.0100.00716.11
7.1.250.0180.00015.84
7.1.240.0170.00315.89
7.1.230.0150.00015.83
7.1.220.0090.00616.01
7.1.210.0070.00715.66
7.1.200.0090.00615.98
7.1.190.0090.00615.91
7.1.180.0090.00615.55
7.1.170.0060.01315.93
7.1.160.0070.00716.04
7.1.150.0060.00915.98
7.1.140.0110.00715.83
7.1.130.0060.00915.61
7.1.120.0090.00315.91
7.1.110.0030.00615.72
7.1.100.0520.00815.98
7.1.90.0060.01015.84
7.1.80.0070.00715.61
7.1.70.0070.00716.48
7.1.60.0110.01217.50
7.1.50.0070.01216.49
7.1.40.0110.00415.78
7.1.30.0080.00515.73
7.1.20.0110.00415.81
7.1.10.0110.00315.88
7.1.00.0080.02019.15
7.0.330.0040.00415.54
7.0.320.0090.00615.59
7.0.310.0070.00715.47
7.0.300.0070.00415.19
7.0.290.0030.01115.51
7.0.280.0090.00615.50
7.0.270.0050.00515.23
7.0.260.0130.00315.23
7.0.250.0120.00415.54
7.0.240.0060.00915.56
7.0.230.0070.00715.45
7.0.220.0120.00315.34
7.0.210.0130.00315.62
7.0.200.0070.00816.24
7.0.190.0140.00015.23
7.0.180.0120.00015.16
7.0.170.0060.00615.50
7.0.160.0120.00315.46
7.0.150.0100.00715.41
7.0.140.0030.04418.88
7.0.130.0150.00315.62
7.0.120.0140.00315.39
7.0.110.0120.00415.22
7.0.100.0250.04617.66
7.0.90.0100.04317.90
7.0.80.0090.04617.62
7.0.70.0060.04317.75
7.0.60.0080.04617.58
7.0.50.0130.04017.89
7.0.40.0080.04416.75
7.0.30.0060.04916.62
7.0.20.0080.04516.61
7.0.10.0040.04616.76
7.0.00.0020.03716.68
5.6.380.0040.00414.35
5.6.370.0040.00914.00
5.6.360.0030.00714.36
5.6.350.0070.00313.91
5.6.340.0070.00413.82
5.6.330.0040.01213.89
5.6.320.0060.00613.74
5.6.310.0000.01314.03
5.6.300.0060.00614.05
5.6.290.0000.01114.32
5.6.280.0030.04117.56
5.6.270.0070.00714.25
5.6.260.0130.00314.09
5.6.250.0060.03617.50
5.6.240.0120.04317.51
5.6.230.0050.04717.39
5.6.220.0030.04617.25
5.6.210.0130.04317.53
5.6.200.0030.04717.46
5.6.190.0070.05017.61
5.6.180.0050.04517.59
5.6.170.0100.03017.60
5.6.160.0020.04617.48
5.6.150.0080.04417.45
5.6.140.0020.03517.63
5.6.130.0020.02917.64
5.6.120.0060.02517.65
5.6.110.0090.02317.75
5.6.100.0050.02517.43
5.6.90.0070.02217.47
5.6.80.0000.03017.34
5.6.70.0040.03417.33
5.6.60.0030.02517.09
5.6.50.0050.03117.04
5.6.40.0100.01817.17
5.6.30.0090.04017.38
5.6.20.0060.02317.33
5.6.10.0080.02817.21
5.6.00.0100.02017.11
5.5.380.0090.03915.62
5.5.370.0030.04415.70
5.5.360.0050.03615.63
5.5.350.0060.04615.68
5.5.340.0030.04215.60
5.5.330.0030.04715.71
5.5.320.0050.04815.79
5.5.310.0120.03715.93
5.5.300.0050.02815.89
5.5.290.0070.02215.82
5.5.280.0070.02415.90
5.5.270.0060.03815.96
5.5.260.0030.02815.95
5.5.250.0030.02515.64
5.5.240.0040.02415.50
5.5.230.0050.02315.58
5.5.220.0110.02815.62
5.5.210.0020.02615.47
5.5.200.0030.02415.54
5.5.190.0060.02515.52
5.5.180.0070.02815.47
5.5.170.0000.01310.89
5.5.160.0030.02315.43
5.5.150.0080.02515.53
5.5.140.0020.02615.51
5.5.130.0060.02215.47
5.5.120.0040.02615.45
5.5.110.0030.03115.32
5.5.100.0070.02015.43
5.5.90.0060.02215.43
5.5.80.0020.02715.26
5.5.70.0090.02115.21
5.5.60.0030.02315.46
5.5.50.0070.02115.27
5.5.40.0020.02615.42
5.5.30.0070.02215.36
5.5.20.0080.02215.44
5.5.10.0090.01715.29
5.5.00.0070.02015.45
5.4.450.0060.02215.02
5.4.440.0050.02314.83
5.4.430.0080.02115.04
5.4.420.0030.02614.99
5.4.410.0040.02914.97
5.4.400.0080.03914.92
5.4.390.0100.01714.95
5.4.380.0030.02014.91
5.4.370.0080.01514.81
5.4.360.0050.02614.82
5.4.350.0020.02415.00
5.4.340.0020.02514.90
5.4.330.0030.00910.97
5.4.320.0070.02014.92
5.4.310.0050.02014.96
5.4.300.0060.02114.77
5.4.290.0080.02015.03
5.4.280.0020.02615.04
5.4.270.0060.02014.88
5.4.260.0070.02114.90
5.4.250.0030.02314.89
5.4.240.0070.01915.04
5.4.230.0020.02714.91
5.4.220.0070.02114.90
5.4.210.0060.02815.01
5.4.200.0070.02215.14
5.4.190.0040.02414.93
5.4.180.0050.02214.93
5.4.170.0050.03214.95
5.4.160.0070.02614.91
5.4.150.0050.04214.96
5.4.140.0070.03313.65
5.4.130.0070.04013.58
5.4.120.0050.01913.61
5.4.110.0070.03813.55
5.4.100.0050.04013.68
5.4.90.0100.04013.65
5.4.80.0040.04013.54
5.4.70.0120.03513.70
5.4.60.0070.03313.59
5.4.50.0120.03513.61
5.4.40.0080.03813.56
5.4.30.0020.04413.78
5.4.20.0030.04213.56
5.4.10.0080.04213.65
5.4.00.0130.03313.15
5.3.290.0070.02212.51
5.3.280.0050.02012.54
5.3.270.0030.01912.45
5.3.260.0080.01812.48
5.3.250.0030.03012.60
5.3.240.0070.03912.45
5.3.230.0030.03812.44
5.3.220.0070.04012.37
5.3.210.0090.02712.44
5.3.200.0040.03712.36
5.3.190.0060.03712.44
5.3.180.0080.03712.48
5.3.170.0080.04012.52
5.3.160.0020.03512.52
5.3.150.0030.04312.49
5.3.140.0030.04112.49
5.3.130.0050.03612.49
5.3.120.0030.04112.49
5.3.110.0040.03512.48
5.3.100.0020.04012.16
5.3.90.0000.04412.22
5.3.80.0050.04012.14
5.3.70.0100.02612.04
5.3.60.0070.04012.14
5.3.50.0020.04212.07
5.3.40.0030.04212.08
5.3.30.0070.02512.11
5.3.20.0050.03711.88
5.3.10.0080.03311.90
5.3.00.0020.04611.80
5.2.170.0050.03010.34
5.2.160.0070.03210.20
5.2.150.0020.03410.27
5.2.140.0060.03210.34
5.2.130.0070.02310.24
5.2.120.0020.03310.30
5.2.110.0060.03110.22
5.2.100.0070.03010.17
5.2.90.0020.02710.15
5.2.80.0050.01910.07
5.2.70.0020.03310.18
5.2.60.0020.03710.14
5.2.50.0030.03510.15
5.2.40.0090.02810.14
5.2.30.0020.02510.07
5.2.20.0020.03110.13
5.2.10.0120.02510.11
5.2.00.0030.0339.85
5.1.60.0000.0359.41
5.1.50.0020.0309.35
5.1.40.0050.0249.38
5.1.30.0040.0329.56
5.1.20.0070.0279.60
5.1.10.0060.0289.42
5.1.00.0030.0289.41
5.0.50.0050.0229.35
5.0.40.0020.0229.35
5.0.30.0060.0279.35
5.0.20.0020.0249.35
5.0.10.0020.0249.35
5.0.00.0060.0309.35
4.4.90.0020.0189.35
4.4.80.0010.0169.35
4.4.70.0050.0189.35
4.4.60.0000.0209.35
4.4.50.0080.0159.35
4.4.40.0000.0289.35
4.4.30.0050.0159.35
4.4.20.0020.0209.35
4.4.10.0030.0119.35
4.4.00.0030.0289.35
4.3.110.0000.0249.35
4.3.100.0000.0229.35
4.3.90.0020.0159.35
4.3.80.0020.0289.35
4.3.70.0020.0189.35
4.3.60.0000.0219.35
4.3.50.0030.0189.35
4.3.40.0020.0289.35
4.3.30.0020.0199.35
4.3.20.0050.0179.35
4.3.10.0000.0229.35
4.3.00.0000.0219.35

preferences:
58.96 ms | 401 KiB | 5 Q