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("#^/.*(\.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.0070.00716.50
8.3.50.0110.01118.29
8.3.40.0150.00718.82
8.3.30.0070.01118.80
8.3.20.0080.00018.76
8.3.10.0060.00320.64
8.3.00.0040.00419.26
8.2.180.0070.01416.88
8.2.170.0070.01022.96
8.2.160.0090.00620.53
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.14
8.2.110.0040.00420.39
8.2.100.0120.00017.91
8.2.90.0090.00019.22
8.2.80.0060.00617.97
8.2.70.0030.00617.75
8.2.60.0040.00417.87
8.2.50.0000.00818.10
8.2.40.0040.00418.22
8.2.30.0000.00718.07
8.2.20.0000.01019.60
8.2.10.0070.00017.67
8.2.00.0000.00717.68
8.1.280.0070.01025.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0030.00622.20
8.1.230.0090.00317.70
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.25
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0030.00718.71
8.1.160.0000.00718.75
8.1.150.0030.00518.59
8.1.140.0050.00217.60
8.1.130.0070.00017.80
8.1.120.0070.00017.46
8.1.110.0050.00317.43
8.1.100.0000.00717.53
8.1.90.0040.00417.50
8.1.80.0000.00717.42
8.1.70.0000.00717.53
8.1.60.0000.00817.67
8.1.50.0030.00617.60
8.1.40.0030.00517.51
8.1.30.0030.00517.70
8.1.20.0000.00817.79
8.1.10.0040.00417.64
8.1.00.0040.00417.61
8.0.300.0000.00718.77
8.0.290.0060.00316.88
8.0.280.0080.00018.46
8.0.270.0030.00317.33
8.0.260.0000.00717.00
8.0.250.0030.00516.94
8.0.240.0000.00817.13
8.0.230.0000.00717.00
8.0.220.0030.00316.86
8.0.210.0040.00417.03
8.0.200.0030.00316.86
8.0.190.0000.00817.00
8.0.180.0000.00716.95
8.0.170.0080.00016.97
8.0.160.0000.00817.03
8.0.150.0030.00516.81
8.0.140.0000.00816.83
8.0.130.0000.00513.39
8.0.120.0000.00716.90
8.0.110.0000.00717.00
8.0.100.0000.00816.78
8.0.90.0070.00016.99
8.0.80.0070.01017.03
8.0.70.0040.00416.86
8.0.60.0040.00417.07
8.0.50.0080.00017.03
8.0.30.0060.01217.39
8.0.20.0080.01117.34
8.0.10.0040.00416.91
8.0.00.0090.01016.81
7.4.330.0000.00513.07
7.4.320.0030.00316.77
7.4.300.0070.00016.66
7.4.290.0030.00316.73
7.4.280.0070.00016.70
7.4.270.0000.00716.73
7.4.260.0030.00313.46
7.4.250.0020.00516.61
7.4.240.0000.00716.59
7.4.230.0080.00016.72
7.4.220.0120.00616.70
7.4.210.0090.00616.77
7.4.200.0000.00816.69
7.4.190.0000.00716.84
7.4.160.0030.01316.59
7.4.150.0120.00616.73
7.4.140.0080.00816.60
7.4.130.0150.00316.84
7.4.120.0090.00816.61
7.4.110.0070.01116.70
7.4.100.0120.00416.63
7.4.90.0170.00016.63
7.4.80.0090.00919.39
7.4.70.0100.01016.80
7.4.60.0060.01216.54
7.4.50.0070.00516.54
7.4.40.0070.00716.64
7.4.30.0030.01316.48
7.4.00.0030.00915.22
7.3.330.0000.00613.09
7.3.320.0060.00013.19
7.3.310.0040.00416.37
7.3.300.0030.00316.29
7.3.290.0060.01016.33
7.3.280.0090.00616.35
7.3.270.0090.00916.78
7.3.260.0070.01016.78
7.3.250.0120.00916.43
7.3.240.0200.00316.55
7.3.230.0070.01016.44
7.3.210.0120.00616.39
7.3.200.0120.01216.38
7.3.190.0150.00316.51
7.3.180.0040.01316.30
7.3.170.0060.01116.45
7.3.160.0130.00316.40
7.3.120.0040.01414.87
7.2.330.0140.00716.63
7.2.320.0090.00916.64
7.2.310.0110.01216.63
7.2.300.0170.00016.73
7.2.290.0110.01116.81
7.2.00.0000.01019.72
7.1.100.0000.01318.38
7.1.70.0000.00817.25
7.1.60.0180.00719.40
7.1.50.0240.01035.06
7.1.00.0030.03722.48
7.0.200.0030.00715.03
7.0.140.0000.07321.97
7.0.120.0170.06022.17
7.0.60.0070.08020.02
7.0.50.0070.08317.88
7.0.40.0130.07317.71
7.0.30.0070.05317.75
7.0.20.0100.04317.72
7.0.10.0100.07717.74
7.0.00.0030.07317.81
5.6.280.0070.07020.88
5.6.210.0100.07320.45
5.6.200.0130.05018.16
5.6.190.0200.06018.12
5.6.180.0070.08018.09
5.6.170.0100.04018.22
5.6.160.0070.08318.17
5.6.150.0030.08318.13
5.6.140.0100.04718.20
5.6.130.0030.09018.20
5.6.120.0030.05018.15
5.6.110.0100.07318.12
5.6.100.0200.05318.11
5.6.90.0070.04318.09
5.6.80.0070.07717.61
5.6.70.0130.07317.51
5.6.60.0030.04717.54
5.6.50.0030.05717.50
5.6.40.0030.04017.57
5.6.30.0000.04017.57
5.6.20.0000.04017.46
5.6.10.0030.04017.50
5.6.00.0000.04017.46
5.5.350.0030.03720.42
5.5.340.0000.07018.03
5.5.330.0070.07318.02
5.5.320.0030.08317.96
5.5.310.0030.06017.95
5.5.300.0030.06718.01
5.5.290.0030.08317.95
5.5.280.0070.07717.91
5.5.270.0130.07017.91
5.5.260.0130.07318.00
5.5.250.0200.06317.83
5.5.240.0100.07017.30
5.5.230.0070.07017.36
5.5.220.0000.04717.26
5.5.210.0100.04317.30
5.5.200.0000.04017.30
5.5.190.0030.03717.24
5.5.180.0030.04017.33
5.5.160.0070.03317.27
5.5.150.0070.03317.37
5.5.140.0030.03717.33
5.5.130.0070.03317.36
5.5.120.0070.03317.37
5.5.110.0000.04017.27
5.5.100.0030.03717.22
5.5.90.0030.03317.22
5.5.80.0100.03017.23
5.5.70.0070.04017.19
5.5.60.0070.03317.25
5.5.50.0030.04017.24
5.5.40.0070.03317.25
5.5.30.0070.03317.26
5.5.20.0070.03317.15
5.5.10.0100.03017.15
5.5.00.0030.03717.16
5.4.450.0070.06319.30
5.4.440.0170.06019.45
5.4.430.0030.08319.53
5.4.420.0100.08319.39
5.4.410.0070.03719.23
5.4.400.0070.07718.99
5.4.390.0030.06718.89
5.4.380.0130.07019.03
5.4.370.0070.07019.11
5.4.360.0030.03718.95
5.4.350.0100.03018.96
5.4.340.0030.04018.95
5.4.320.0070.03319.02
5.4.310.0070.03318.95
5.4.300.0070.04018.98
5.4.290.0070.03718.96
5.4.280.0030.03718.96
5.4.270.0030.04319.09
5.4.260.0000.04018.98
5.4.250.0000.04018.81
5.4.240.0030.04019.08
5.4.230.0030.05018.97
5.4.220.0000.04018.98
5.4.210.0030.03719.12
5.4.200.0100.03018.96
5.4.190.0030.03719.05
5.4.180.0030.04018.96
5.4.170.0000.04018.81
5.4.160.0070.03318.80
5.4.150.0000.04319.01
5.4.140.0030.03316.32
5.4.130.0030.04016.52
5.4.120.0070.07016.41
5.4.110.0070.07316.50
5.4.100.0030.06316.41
5.4.90.0100.06316.43
5.4.80.0100.03716.23
5.4.70.0030.03716.27
5.4.60.0070.04316.33
5.4.50.0070.04316.34
5.4.40.0070.06316.43
5.4.30.0030.07016.32
5.4.20.0070.04716.40
5.4.10.0070.07316.20
5.4.00.0130.06315.61
5.3.290.0000.04014.64
5.3.280.0030.04314.55
5.3.270.0030.04014.58
5.3.260.0070.03314.68
5.3.250.0030.03714.57
5.3.240.0030.03714.57
5.3.230.0100.04014.56
5.3.220.0070.07014.53
5.3.210.0030.04014.55
5.3.200.0030.08014.42
5.3.190.0130.06314.50
5.3.180.0030.06014.48
5.3.170.0100.03314.48
5.3.160.0100.06314.50
5.3.150.0130.06014.50
5.3.140.0030.04014.52
5.3.130.0030.05314.46
5.3.120.0030.04314.50
5.3.110.0100.04714.50
5.3.100.0070.06713.86
5.3.90.0030.04314.09
5.3.80.0070.04313.96
5.3.70.0130.04313.98
5.3.60.0170.03713.75
5.3.50.0100.06713.91
5.3.40.0070.07313.70
5.3.30.0070.06713.84
5.3.20.0070.04313.62
5.3.10.0070.04013.62
5.3.00.0000.05013.58
5.2.170.0070.05711.04
5.2.160.0000.05310.93
5.2.150.0030.04711.04
5.2.140.0030.05711.28
5.2.130.0100.05011.09
5.2.120.0070.03711.02
5.2.110.0000.06711.00
5.2.100.0070.05311.12
5.2.90.0130.02711.06
5.2.80.0070.04711.07
5.2.70.0030.04011.05
5.2.60.0100.05710.83
5.2.50.0130.04711.02
5.2.40.0030.05310.99
5.2.30.0100.05711.00
5.2.20.0000.04311.13
5.2.10.0000.05010.77
5.2.00.0070.05010.69
5.1.60.0030.02710.07
5.1.50.0030.0539.84
5.1.40.0000.0609.95
5.1.30.0100.03310.45
5.1.20.0030.05710.38
5.1.10.0100.05010.07
5.1.00.0130.04010.04
5.0.50.0070.0438.99
5.0.40.0070.0378.99
5.0.30.0030.0638.99
5.0.20.0100.0378.99
5.0.10.0000.0508.99
5.0.00.0070.0608.99
4.4.90.0030.0378.99
4.4.80.0030.0338.99
4.4.70.0000.0238.99
4.4.60.0030.0308.99
4.4.50.0000.0278.99
4.4.40.0000.0308.99
4.4.30.0000.0238.99
4.4.20.0000.0278.99
4.4.10.0000.0278.99
4.4.00.0030.0538.99
4.3.110.0000.0238.99
4.3.100.0000.0178.99
4.3.90.0000.0278.99
4.3.80.0000.0338.99
4.3.70.0030.0338.99
4.3.60.0070.0338.99
4.3.50.0000.0308.99
4.3.40.0030.0508.99
4.3.30.0030.0378.99
4.3.20.0000.0308.99
4.3.10.0000.0308.99
4.3.00.0000.0238.99

preferences:
49.68 ms | 401 KiB | 5 Q