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);

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.01016.88
8.3.50.0120.00518.27
8.3.40.0070.01418.77
8.3.30.0070.00718.85
8.3.20.0050.00318.90
8.3.10.0140.01020.78
8.3.00.0040.00419.38
8.2.180.0150.00316.88
8.2.170.0040.01122.96
8.2.160.0040.01120.94
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00718.85
8.2.110.0040.00821.14
8.2.100.0080.00417.91
8.2.90.0060.00319.42
8.2.80.0060.00319.41
8.2.70.0080.00017.61
8.2.60.0040.00717.77
8.2.50.0080.00018.07
8.2.40.0040.00418.02
8.2.30.0090.00017.99
8.2.20.0030.00619.52
8.2.10.0080.00017.77
8.2.00.0020.00817.64
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0080.00420.61
8.1.230.0080.00320.93
8.1.220.0060.00317.74
8.1.210.0060.00318.90
8.1.200.0030.00617.35
8.1.190.0000.00817.51
8.1.180.0030.00618.10
8.1.170.0050.00318.84
8.1.160.0040.00418.76
8.1.150.0050.00518.79
8.1.140.0040.00417.54
8.1.130.0000.00717.79
8.1.120.0000.00717.50
8.1.110.0050.00317.45
8.1.100.0070.00017.58
8.1.90.0030.00517.44
8.1.80.0040.00417.58
8.1.70.0030.00517.54
8.1.60.0000.00917.71
8.1.50.0000.00717.56
8.1.40.0000.00917.60
8.1.30.0060.00317.68
8.1.20.0000.00717.77
8.1.10.0080.00017.58
8.1.00.0040.00417.56
8.0.300.0070.00019.86
8.0.290.0050.00216.75
8.0.280.0070.00018.47
8.0.270.0050.00217.33
8.0.260.0030.00316.97
8.0.250.0070.00017.09
8.0.240.0060.00317.06
8.0.230.0000.00717.05
8.0.220.0000.00716.96
8.0.210.0030.00316.98
8.0.200.0030.00317.03
8.0.190.0050.00217.03
8.0.180.0000.00716.96
8.0.170.0040.00416.94
8.0.160.0000.00716.93
8.0.150.0040.00416.95
8.0.140.0080.00316.84
8.0.130.0040.00413.40
8.0.120.0040.00416.97
8.0.110.0040.00417.07
8.0.100.0030.00417.04
8.0.90.0030.00616.81
8.0.80.0090.00616.93
8.0.70.0000.00717.09
8.0.60.0040.00417.01
8.0.50.0040.00416.92
8.0.30.0180.00016.94
8.0.20.0350.01517.19
8.0.10.0040.00417.09
8.0.00.0110.01016.90
7.4.330.0000.00513.17
7.4.320.0040.00416.67
7.4.300.0000.00616.66
7.4.290.0070.00016.68
7.4.280.0050.00316.66
7.4.270.0050.00216.55
7.4.260.0030.00313.30
7.4.250.0080.00016.66
7.4.240.0040.00416.68
7.4.230.0000.00716.77
7.4.220.0100.01716.75
7.4.210.0090.00816.72
7.4.200.0030.00316.50
7.4.190.0000.00816.86
7.4.160.0070.01016.70
7.4.150.0120.00616.42
7.4.140.0130.00716.49
7.4.130.0100.00716.79
7.4.120.0110.00616.63
7.4.110.0170.00016.57
7.4.100.0030.01216.64
7.4.90.0130.01016.45
7.4.80.0120.00916.71
7.4.70.0130.00416.61
7.4.60.0150.00316.62
7.4.50.0040.00416.48
7.4.40.0100.00716.35
7.4.30.0100.00716.47
7.4.00.0040.01214.92
7.3.330.0040.00313.15
7.3.320.0060.00013.07
7.3.310.0030.00316.43
7.3.300.0000.00716.28
7.3.290.0060.00916.25
7.3.280.0080.00716.24
7.3.270.0110.00616.61
7.3.260.0200.00316.47
7.3.250.0080.01116.49
7.3.240.0070.01016.63
7.3.230.0120.00616.61
7.3.210.0070.01016.41
7.3.200.0140.00719.39
7.3.190.0180.00016.42
7.3.180.0060.00916.38
7.3.170.0100.01016.68
7.3.160.0060.00916.39
7.3.120.0000.01114.83
7.3.10.0100.00516.78
7.3.00.0090.00716.71
7.2.330.0100.00716.64
7.2.320.0140.00616.48
7.2.310.0110.00716.72
7.2.300.0160.00416.61
7.2.290.0110.00816.55
7.2.130.0040.01217.07
7.2.120.0060.00916.89
7.2.110.0020.01016.94
7.2.100.0130.00516.90
7.2.90.0050.00617.07
7.2.80.0000.01416.87
7.2.70.0090.00616.94
7.2.60.0070.00616.98
7.2.50.0090.00516.84
7.2.40.0100.00416.94
7.2.30.0050.01017.00
7.2.20.0090.00417.15
7.2.10.0050.00916.78
7.2.00.0040.01417.64
7.1.250.0100.00515.90
7.1.240.0040.00715.81
7.1.230.0030.01016.00
7.1.220.0130.00715.75
7.1.210.0030.01015.90
7.1.200.0070.00415.95
7.1.190.0100.00715.97
7.1.180.0040.00815.91
7.1.170.0100.00315.79
7.1.160.0080.00415.62
7.1.150.0040.00815.84
7.1.140.0060.00316.01
7.1.130.0070.00715.84
7.1.120.0150.00316.03
7.1.110.0100.01015.96
7.1.100.0030.01317.12
7.1.90.0070.01015.94
7.1.80.0030.00915.80
7.1.70.0030.00916.63
7.1.60.0050.01417.63
7.1.50.0090.01016.38
7.1.40.0030.01015.91
7.1.30.0060.00815.88
7.1.20.0060.00915.79
7.1.10.0100.00715.74
7.1.00.0000.04619.20
7.0.330.0030.00715.52
7.0.320.0160.00315.13
7.0.310.0040.00415.36
7.0.300.0060.00615.49
7.0.290.0030.00715.52
7.0.280.0150.00315.77
7.0.270.0030.00915.06
7.0.260.0050.00515.58
7.0.250.0030.00615.58
7.0.240.0150.00415.53
7.0.230.0000.01215.63
7.0.220.0060.00615.55
7.0.210.0070.00715.46
7.0.200.0050.00716.09
7.0.190.0090.00315.51
7.0.180.0060.00915.56
7.0.170.0070.00715.37
7.0.160.0120.00415.46
7.0.150.0080.00315.38
7.0.140.0070.03718.81
7.0.130.0110.00415.30
7.0.120.0070.04218.80
7.0.110.0030.01015.48
7.0.100.0100.00015.38
7.0.90.0000.00915.38
7.0.80.0070.00315.45
7.0.70.0030.01015.39
7.0.60.0100.02217.58
7.0.50.0020.02816.68
7.0.40.0080.02015.55
7.0.30.0020.02815.62
7.0.20.0050.02415.62
7.0.10.0060.02515.53
7.0.00.0080.02015.71
5.6.380.0090.00314.52
5.6.370.0090.00014.64
5.6.360.0110.00014.45
5.6.350.0110.00014.26
5.6.340.0000.01514.23
5.6.330.0060.00314.38
5.6.320.0100.00314.16
5.6.310.0030.00514.13
5.6.300.0040.01114.00
5.6.290.0030.01214.38
5.6.280.0030.04017.58
5.6.270.0040.00414.71
5.6.260.0040.01114.22
5.6.250.0040.01114.11
5.6.240.0030.01014.25
5.6.230.0030.01314.05
5.6.220.0060.00614.43
5.6.210.0030.02317.41
5.6.200.0070.02116.29
5.6.190.0040.02516.37
5.6.180.0030.02316.11
5.6.170.0030.02716.17
5.6.160.0050.02416.37
5.6.150.0020.02816.13
5.6.140.0030.02616.22
5.6.130.0080.02116.29
5.6.120.0050.02316.25
5.6.110.0060.02316.18
5.6.100.0030.02316.14
5.6.90.0050.02316.18
5.6.80.0020.02315.91
5.6.70.0080.03315.73
5.6.60.0080.03315.87
5.6.50.0070.03315.83
5.6.40.0050.04415.88
5.6.30.0080.03315.87
5.6.20.0090.04015.89
5.6.10.0030.04015.73
5.6.00.0070.04515.92
5.5.380.0030.00311.06
5.5.370.0040.00811.03
5.5.360.0000.01011.21
5.5.350.1980.02515.71
5.5.340.0050.02014.58
5.5.330.0070.02014.48
5.5.320.0060.02114.61
5.5.310.0030.02014.50
5.5.300.0030.02514.48
5.5.290.0050.02214.56
5.5.280.0060.02014.60
5.5.270.0020.02814.59
5.5.260.0080.01814.35
5.5.250.0080.02814.24
5.5.240.0050.03114.15
5.5.230.0030.02514.21
5.5.220.0110.03514.09
5.5.210.0070.04214.22
5.5.200.0030.04614.20
5.5.190.0070.02214.10
5.5.180.0050.02214.27
5.5.170.0030.00711.19
5.5.160.0050.04314.02
5.5.150.0030.04314.15
5.5.140.0020.02914.02
5.5.130.0050.04314.21
5.5.120.0050.04214.01
5.5.110.0060.03814.16
5.5.100.0020.03114.03
5.5.90.0040.02614.05
5.5.80.0060.03814.20
5.5.70.0080.03313.97
5.5.60.0080.03814.13
5.5.50.0070.04213.99
5.5.40.0050.03714.12
5.5.30.0030.04014.02
5.5.20.0110.03714.06
5.5.10.0050.04214.03
5.5.00.0020.04013.99
5.4.450.0050.02115.22
5.4.440.0020.02315.26
5.4.430.0050.02015.13
5.4.420.0040.02115.23
5.4.410.0010.02415.09
5.4.400.0070.03814.97
5.4.390.0060.03015.03
5.4.380.0050.04514.89
5.4.370.0050.03114.91
5.4.360.0050.02514.98
5.4.350.0050.03915.04
5.4.340.0070.02215.06
5.4.330.0040.00710.72
5.4.320.0060.03014.97
5.4.310.0050.02714.80
5.4.300.0020.03715.09
5.4.290.0080.04114.95
5.4.280.0090.04114.82
5.4.270.0040.02514.94
5.4.260.0070.02814.93
5.4.250.0040.03115.03
5.4.240.0050.04415.07
5.4.230.0040.03114.84
5.4.220.0070.04014.95
5.4.210.0110.03514.88
5.4.200.0070.02914.97
5.4.190.0020.04214.94
5.4.180.0030.02714.94
5.4.170.0100.03815.02
5.4.160.0090.03615.05
5.4.150.0060.04115.02
5.4.140.0020.04213.67
5.4.130.0040.03913.76
5.4.120.0050.04013.50
5.4.110.0080.03813.64
5.4.100.0050.04313.64
5.4.90.0060.03813.59
5.4.80.0070.03713.65
5.4.70.0020.04413.62
5.4.60.0030.04113.59
5.4.50.0050.03613.53
5.4.40.0070.03713.70
5.4.30.0030.03313.51
5.4.20.0080.03413.75
5.4.10.0050.03713.54
5.4.00.0100.03213.40
5.3.290.0050.03712.56
5.3.280.0030.02312.33
5.3.270.0070.04112.58
5.3.260.0030.04212.46
5.3.250.0010.03612.51
5.3.240.0070.02312.49
5.3.230.0030.04012.48
5.3.220.0070.03812.29
5.3.210.0010.04412.47
5.3.200.0100.02512.37
5.3.190.0100.03512.44
5.3.180.0050.04012.47
5.3.170.0040.04012.52
5.3.160.0020.04512.39
5.3.150.0060.04012.51
5.3.140.0050.04012.42
5.3.130.0050.04012.47
5.3.120.0020.04212.46
5.3.110.0020.04612.48
5.3.100.0010.03512.07
5.3.90.0030.03612.16
5.3.80.0080.03712.09
5.3.70.0050.04012.13
5.3.60.0000.04212.02
5.3.50.0030.04011.88
5.3.40.0080.03611.95
5.3.30.0070.03712.15
5.3.20.0030.04211.90
5.3.10.0080.03311.76
5.3.00.0050.02811.79
5.2.170.0050.02110.21
5.2.160.0060.01510.33
5.2.150.0030.03310.16
5.2.140.0050.03110.32
5.2.130.0020.02310.24
5.2.120.0030.02610.25
5.2.110.0080.02510.26
5.2.100.0040.02110.14
5.2.90.0070.02110.05
5.2.80.0070.01710.09
5.2.70.0060.03410.11
5.2.60.0030.0349.91
5.2.50.0020.02810.10
5.2.40.0010.02310.15
5.2.30.0030.02210.19
5.2.20.0020.03610.19
5.2.10.0020.0309.90
5.2.00.0050.0349.92
5.1.60.0100.0209.25
5.1.50.0070.0259.22
5.1.40.0060.0189.27
5.1.30.0020.0219.48
5.1.20.0070.0209.54
5.1.10.0060.0309.34
5.1.00.0050.0289.29
5.0.50.0000.0198.09
5.0.40.0050.0198.09
5.0.30.0000.0347.92
5.0.20.0060.0168.04
5.0.10.0030.0237.96
5.0.00.0040.0327.93
4.4.90.0030.0207.74
4.4.80.0010.0157.74
4.4.70.0040.0187.74
4.4.60.0020.0197.74
4.4.50.0020.0157.74
4.4.40.0020.0307.74
4.4.30.0020.0157.74
4.4.20.0000.0187.74
4.4.10.0020.0157.74
4.4.00.0030.0137.74
4.3.110.0030.0127.74
4.3.100.0050.0187.74
4.3.90.0020.0197.74
4.3.80.0030.0287.74
4.3.70.0040.0197.74
4.3.60.0030.0207.74
4.3.50.0040.0087.74
4.3.40.0030.0187.74
4.3.30.0010.0207.74
4.3.20.0020.0207.74
4.3.10.0020.0197.74
4.3.00.0040.0187.74

preferences:
52.91 ms | 401 KiB | 5 Q