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

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.0140.00718.55
8.3.50.0080.00921.21
8.3.40.0150.00018.96
8.3.30.0070.01020.26
8.3.20.0000.00720.18
8.3.10.0000.00821.79
8.3.00.0040.00422.52
8.2.180.0070.01416.63
8.2.170.0090.00922.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0000.01824.66
8.2.130.0040.00426.16
8.2.120.0080.00019.79
8.2.110.0070.01022.37
8.2.100.0060.00619.27
8.2.90.0000.00719.05
8.2.80.0030.00517.97
8.2.70.0040.00417.88
8.2.60.0000.00817.92
8.2.50.0030.00518.07
8.2.40.0050.00318.03
8.2.30.0040.00418.08
8.2.20.0030.00617.73
8.2.10.0040.00417.77
8.2.00.0090.00317.77
8.1.280.0090.00925.92
8.1.270.0130.00720.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.94
8.1.230.0090.00319.15
8.1.220.0050.00317.79
8.1.210.0060.00318.77
8.1.200.0100.00017.25
8.1.190.0040.00417.30
8.1.180.0000.00818.45
8.1.170.0000.00818.58
8.1.160.0040.00422.21
8.1.150.0040.00418.59
8.1.140.0060.00317.45
8.1.130.0030.00317.90
8.1.120.0070.00017.58
8.1.110.0070.00017.52
8.1.100.0040.00417.52
8.1.90.0070.00017.62
8.1.80.0000.00717.54
8.1.70.0070.00017.52
8.1.60.0030.00617.68
8.1.50.0030.00617.64
8.1.40.0030.00617.64
8.1.30.0040.00417.73
8.1.20.0000.00817.76
8.1.10.0040.00417.56
8.1.00.0040.00417.59
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0000.00718.46
8.0.270.0070.00017.28
8.0.260.0030.00316.87
8.0.250.0030.00317.02
8.0.240.0070.00317.13
8.0.230.0000.00717.04
8.0.220.0070.00016.81
8.0.210.0030.00316.84
8.0.200.0030.00316.96
8.0.190.0040.00417.07
8.0.180.0000.00716.87
8.0.170.0000.00816.99
8.0.160.0030.00316.98
8.0.150.0030.00616.88
8.0.140.0040.00416.94
8.0.130.0050.00013.48
8.0.120.0000.00816.93
8.0.110.0040.00417.01
8.0.100.0070.00016.91
8.0.90.0020.00516.86
8.0.80.0030.01517.02
8.0.70.0070.00016.95
8.0.60.0000.00717.03
8.0.50.0000.00717.01
8.0.30.0110.01117.06
8.0.20.0120.00617.44
8.0.10.0040.00417.03
8.0.00.0120.00516.90
7.4.330.0050.00015.00
7.4.320.0070.00016.67
7.4.300.0030.00316.66
7.4.290.0000.00716.57
7.4.280.0000.00716.73
7.4.270.0030.00316.79
7.4.260.0070.00016.57
7.4.250.0040.00416.73
7.4.240.0000.00716.68
7.4.230.0030.00316.77
7.4.220.0090.00916.59
7.4.210.0100.00616.77
7.4.200.0040.00416.56
7.4.190.0000.00816.88
7.4.160.0130.00316.66
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0080.00916.84
7.4.120.0100.00816.77
7.4.110.0130.00316.61
7.4.100.0110.00716.83
7.4.90.0120.00516.73
7.4.80.0070.01019.39
7.4.70.0040.01316.88
7.4.60.0140.00316.62
7.4.50.0040.00416.64
7.4.40.0040.01222.77
7.4.30.0090.00816.35
7.4.00.0070.01015.27
7.3.330.0060.00013.12
7.3.320.0000.00513.08
7.3.310.0060.00316.16
7.3.300.0030.00316.20
7.3.290.0100.00716.30
7.3.280.0100.00716.32
7.3.270.0110.00617.40
7.3.260.0060.01216.66
7.3.250.0090.00916.52
7.3.240.0100.01316.58
7.3.230.0070.01316.39
7.3.210.0060.01016.36
7.3.200.0120.00619.39
7.3.190.0070.01016.41
7.3.180.0080.00816.30
7.3.170.0100.00716.27
7.3.160.0070.01016.60
7.3.120.0100.00315.06
7.2.330.0160.00616.60
7.2.320.0060.01316.66
7.2.310.0060.01016.81
7.2.300.0030.01316.60
7.2.290.0040.01316.79
7.2.00.0030.01319.63
7.1.100.0060.00618.35
7.1.70.0000.00717.30
7.1.60.0030.01719.40
7.1.50.0030.01017.14
7.1.00.0000.03722.37
7.0.200.0000.01116.98
7.0.140.0000.07722.00
7.0.60.0130.06319.95
7.0.50.0200.07017.86
7.0.40.0030.09020.42
7.0.30.0170.04719.99
7.0.20.0370.07320.15
7.0.10.0270.08720.02
7.0.00.0130.06720.25
5.6.280.0070.07021.06
5.6.210.0070.03720.47
5.6.200.0100.08018.18
5.6.190.0130.08020.41
5.6.180.2500.04320.63
5.6.170.0200.04720.41
5.6.160.0200.07720.52
5.6.150.0100.06318.11
5.6.140.0070.03718.07
5.6.130.0070.05718.18
5.6.120.0100.08321.01
5.6.110.0000.05320.88
5.6.100.0130.07720.96
5.6.90.0130.06020.94
5.6.80.0170.07320.52
5.6.70.0170.07720.51
5.5.350.0130.03020.38
5.5.340.0000.07317.92
5.5.330.0130.07720.28
5.5.320.0170.04020.17
5.5.310.0200.06020.20
5.5.300.0000.05318.02
5.5.290.0130.05318.02
5.5.280.0170.07320.86
5.5.270.0070.04720.78
5.5.260.0070.07320.87
5.5.250.0030.04020.57
5.5.240.0130.07320.25
5.4.450.0870.06319.59
5.4.440.0830.06019.49
5.4.430.0970.05319.60
5.4.420.0130.05019.54
5.4.410.0830.05319.14
5.4.400.1370.06018.72
5.4.390.1430.07018.63
5.4.380.0270.05318.68
5.4.370.0170.05018.62
5.4.360.0170.05018.61
5.4.350.0050.05111.97
5.4.340.0050.03911.96
5.4.320.0030.03812.45
5.4.310.0020.04312.45
5.4.300.0080.03412.45
5.4.290.0100.04612.45
5.4.280.0060.03512.33
5.4.270.0060.03612.33
5.4.260.0090.03412.33
5.4.250.0030.04012.33
5.4.240.0100.03212.33
5.4.230.0060.03712.32
5.4.220.0060.03612.32
5.4.210.0070.03612.32
5.4.200.0080.03812.32
5.4.190.0100.03212.32
5.4.180.0070.03612.32
5.4.170.0070.03612.33
5.4.160.0080.03512.32
5.4.150.0070.03412.32
5.4.140.0050.03712.00
5.4.130.0080.03512.00
5.4.120.0060.03511.95
5.4.110.0060.03511.95
5.4.100.0030.03811.95
5.4.90.0050.03811.95
5.4.80.0080.03511.95
5.4.70.0050.03611.94
5.4.60.0050.03611.94
5.4.50.0040.03811.94
5.4.40.0030.03811.93
5.4.30.0100.03411.93
5.4.20.0070.03611.93
5.4.10.0060.03511.93
5.4.00.0070.03611.42
5.3.290.0060.04112.80
5.3.280.0080.03812.71
5.3.270.0110.03712.73
5.3.260.0050.04412.72
5.3.250.0110.03512.71
5.3.240.0070.03912.72
5.3.230.0090.03612.71
5.3.220.0060.03812.68
5.3.210.0060.04812.68
5.3.200.0080.03612.68
5.3.190.0060.04412.68
5.3.180.0090.03612.67
5.3.170.0070.03712.67
5.3.160.0120.04412.68
5.3.150.0130.03612.67
5.3.140.0050.04312.66
5.3.130.0050.04612.66
5.3.120.0050.04112.65
5.3.110.0080.04212.65
5.3.100.0080.03712.12
5.3.90.0090.04312.08
5.3.80.0060.03912.07
5.3.70.0070.03612.07
5.3.60.0070.03612.06
5.3.50.0080.04612.00
5.3.40.0100.03412.00
5.3.30.0060.03611.94
5.3.20.0080.03911.71
5.3.10.0090.03211.68
5.3.00.0090.04311.67
5.2.170.0070.0379.16
5.2.160.0070.0319.16
5.2.150.0030.0339.17
5.2.140.0040.0379.16
5.2.130.0050.0299.12
5.2.120.0070.0279.12
5.2.110.0050.0309.13
5.2.100.0090.0289.13
5.2.90.0020.0359.13
5.2.80.0030.0329.13
5.2.70.0060.0359.12
5.2.60.0070.0359.08
5.2.50.0100.0319.05
5.2.40.0070.0299.03
5.2.30.0050.0309.01
5.2.20.0070.0279.02
5.2.10.0040.0338.95
5.2.00.0060.0288.80
5.1.60.0050.0248.09
5.1.50.0050.0258.09
5.1.40.0040.0258.07
5.1.30.0060.0248.41
5.1.20.0080.0278.44
5.1.10.0040.0348.16
5.1.00.0060.0278.16
5.0.50.0040.0236.64
5.0.40.0020.0226.50
5.0.30.0030.0326.32
5.0.20.0060.0176.28
5.0.10.0070.0266.27
5.0.00.0050.0376.25
4.4.90.0030.0154.78
4.4.80.0060.0124.75
4.4.70.0050.0144.76
4.4.60.0060.0134.75
4.4.50.0060.0154.77
4.4.40.0050.0334.70
4.4.30.0070.0184.76
4.4.20.0050.0204.85
4.4.10.0050.0174.85
4.4.00.0040.0254.76
4.3.110.0020.0174.67
4.3.100.0030.0164.66
4.3.90.0060.0124.63
4.3.80.0050.0234.58
4.3.70.0020.0164.63
4.3.60.0020.0184.63
4.3.50.0050.0164.63
4.3.40.0030.0284.54
4.3.30.0030.0223.31
4.3.20.0030.0213.29
4.3.10.0040.0193.25
4.3.00.0130.0277.96

preferences:
35.9 ms | 401 KiB | 5 Q