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)?^(\?.*)$#", $str2);

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.0170.00018.43
8.3.50.0120.00517.50
8.3.40.0070.00718.85
8.3.30.0060.00918.84
8.3.20.0080.00018.82
8.3.10.0040.00420.84
8.3.00.0030.00617.59
8.2.180.0110.01116.63
8.2.170.0040.01122.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.89
8.2.110.0130.01020.96
8.2.100.0070.00417.91
8.2.90.0040.00419.07
8.2.80.0000.00917.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0020.00518.28
8.2.30.0050.00317.96
8.2.20.0040.00417.72
8.2.10.0050.00217.76
8.2.00.0000.00717.61
8.1.280.0140.00425.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00320.61
8.1.230.0110.00020.96
8.1.220.0040.00418.77
8.1.210.0070.00318.90
8.1.200.0060.00317.23
8.1.190.0000.00817.40
8.1.180.0030.00618.10
8.1.170.0040.00418.87
8.1.160.0040.00418.81
8.1.150.0000.00818.59
8.1.140.0030.00717.53
8.1.130.0030.00317.76
8.1.120.0040.00417.59
8.1.110.0030.00517.43
8.1.100.0000.00717.52
8.1.90.0030.00617.61
8.1.80.0050.00217.46
8.1.70.0000.00717.54
8.1.60.0080.00017.65
8.1.50.0000.00817.57
8.1.40.0000.00817.66
8.1.30.0040.00417.70
8.1.20.0090.00017.68
8.1.10.0050.00317.72
8.1.00.0050.00317.64
8.0.300.0030.00320.03
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0030.00317.18
8.0.260.0030.00517.07
8.0.250.0040.00417.02
8.0.240.0000.00817.11
8.0.230.0030.00317.09
8.0.220.0000.00716.95
8.0.210.0000.00716.95
8.0.200.0000.00617.03
8.0.190.0000.00816.94
8.0.180.0000.00717.01
8.0.170.0000.00816.98
8.0.160.0000.00717.02
8.0.150.0050.00316.93
8.0.140.0000.00916.96
8.0.130.0000.00513.41
8.0.120.0050.00316.88
8.0.110.0000.00816.97
8.0.100.0040.00416.82
8.0.90.0000.00716.88
8.0.80.0120.00916.95
8.0.70.0030.00517.08
8.0.60.0000.00817.09
8.0.50.0000.00816.84
8.0.30.0060.01217.15
8.0.20.0110.00817.32
8.0.10.0020.00517.20
8.0.00.0090.01017.00
7.4.330.0030.00314.87
7.4.320.0000.00616.73
7.4.300.0030.00316.59
7.4.290.0070.00016.73
7.4.280.0080.00216.66
7.4.270.0030.00316.63
7.4.260.0000.00613.41
7.4.250.0040.00416.73
7.4.240.0070.00016.65
7.4.230.0050.00316.84
7.4.220.0100.00716.71
7.4.210.0070.00816.69
7.4.200.0050.00216.67
7.4.190.0030.00316.64
7.4.160.0110.01116.65
7.4.150.0090.01017.07
7.4.140.0120.00817.26
7.4.130.0080.01116.67
7.4.120.0090.00816.62
7.4.110.0150.00716.56
7.4.100.0090.01216.44
7.4.90.0120.00616.60
7.4.80.0130.00319.39
7.4.70.0180.00316.36
7.4.60.0030.01516.63
7.4.50.0000.00923.17
7.4.40.0030.00821.69
7.4.30.0070.01316.69
7.4.00.0000.01414.85
7.3.330.0060.00013.11
7.3.320.0000.00812.97
7.3.310.0040.00416.25
7.3.300.0040.00416.20
7.3.290.0110.00316.31
7.3.280.0060.00916.33
7.3.270.0130.01017.07
7.3.260.0110.00618.24
7.3.250.0110.00916.65
7.3.240.0080.00816.55
7.3.230.0070.01016.36
7.3.210.0110.00616.51
7.3.200.0110.00616.61
7.3.190.0120.00916.31
7.3.180.0060.01016.62
7.3.170.0030.01316.32
7.3.160.0070.01416.31
7.3.120.0040.01414.82
7.2.330.0030.01416.60
7.2.320.0120.00916.70
7.2.310.0090.01216.52
7.2.300.0060.01216.65
7.2.290.0060.01016.67
7.2.00.0040.00719.60
7.1.100.0000.01218.24
7.1.70.0000.00817.00
7.1.60.0090.01319.40
7.1.50.0040.01217.13
7.1.00.0100.07022.30
7.0.200.0050.00216.89
7.0.140.0030.07322.02
7.0.120.0030.03322.04
7.0.60.0100.07720.00
7.0.50.0070.08017.80
7.0.40.0100.07017.79
7.0.30.0070.07317.80
7.0.20.0030.04017.79
7.0.10.0030.04717.76
7.0.00.0100.04017.82
5.6.280.0000.07720.77
5.6.210.0100.04320.60
5.6.200.0000.04718.12
5.6.190.0100.08018.18
5.6.180.0000.05718.11
5.6.170.0130.06018.19
5.6.160.0030.04018.13
5.6.150.0070.03718.19
5.6.140.0000.04318.11
5.6.130.0070.03718.09
5.6.120.0000.04318.20
5.6.110.0100.03318.14
5.6.100.0130.03318.16
5.6.90.0030.04018.11
5.6.80.0070.03317.55
5.6.70.0030.03717.57
5.6.60.0030.03717.58
5.6.50.0000.04017.57
5.6.40.0000.04017.47
5.6.30.0030.03717.45
5.6.20.0000.04017.44
5.6.10.0070.03317.56
5.6.00.0030.03717.50
5.5.350.0300.08020.43
5.5.340.0100.07717.98
5.5.330.0130.07317.91
5.5.320.0170.07017.98
5.5.310.0030.04317.98
5.5.300.0030.04017.98
5.5.290.0030.04017.98
5.5.280.0070.04017.91
5.5.270.0070.04017.95
5.5.260.0070.04017.96
5.5.250.0000.04017.73
5.5.240.0000.04317.22
5.5.230.0070.03317.29
5.5.220.0030.03717.39
5.5.210.0070.03717.39
5.5.200.0000.04017.34
5.5.190.0030.04017.33
5.5.180.0100.03017.26
5.5.160.0100.04717.34
5.5.150.0030.03717.28
5.5.140.0000.04017.29
5.5.130.0070.04017.22
5.5.120.0130.05317.32
5.5.110.0030.05717.21
5.5.100.0030.04017.26
5.5.90.0030.04017.20
5.5.80.0070.07317.16
5.5.70.0100.04717.17
5.5.60.0030.08017.24
5.5.50.0070.05717.26
5.5.40.0070.07317.28
5.5.30.0070.04317.24
5.5.20.0030.08017.22
5.5.10.0030.04717.26
5.5.00.0130.04017.21
5.4.450.0000.04319.28
5.4.440.0100.03319.15
5.4.430.0030.04019.14
5.4.420.0030.04019.40
5.4.410.0070.03319.18
5.4.400.0070.03318.95
5.4.390.0030.04018.89
5.4.380.0000.04018.98
5.4.370.0070.03318.98
5.4.360.0070.03318.96
5.4.350.0030.03718.98
5.4.340.0070.04318.99
5.4.320.0030.03719.11
5.4.310.0100.03018.83
5.4.300.0030.03719.12
5.4.290.0030.07718.97
5.4.280.0070.06319.02
5.4.270.0030.04019.03
5.4.260.0000.04018.98
5.4.250.0000.08018.97
5.4.240.0070.05719.02
5.4.230.0230.04318.82
5.4.220.0030.05318.98
5.4.210.0070.07318.82
5.4.200.0130.07019.00
5.4.190.0070.06719.03
5.4.180.0070.06018.94
5.4.170.0130.04319.11
5.4.160.0070.06718.87
5.4.150.0070.07319.19
5.4.140.0100.05716.19
5.4.130.0030.05016.32
5.4.120.0070.05716.30
5.4.110.0100.06716.37
5.4.100.0030.07016.23
5.4.90.0070.07316.28
5.4.80.0130.06716.51
5.4.70.0030.04316.26
5.4.60.0070.06716.34
5.4.50.0070.06316.36
5.4.40.0100.07316.39
5.4.30.0100.05316.26
5.4.20.0030.07316.25
5.4.10.0100.07316.35
5.4.00.0130.06715.80
5.3.290.0030.04014.58
5.3.280.0030.07714.52
5.3.270.0070.04014.59
5.3.260.0130.07014.57
5.3.250.0070.06714.57
5.3.240.0030.05314.56
5.3.230.0070.06714.51
5.3.220.0100.04314.51
5.3.210.0030.04314.49
5.3.200.0070.07314.54
5.3.190.0100.04314.52
5.3.180.0030.08014.50
5.3.170.0130.07014.52
5.3.160.0070.07314.47
5.3.150.0130.06014.42
5.3.140.0030.06714.39
5.3.130.0030.07014.52
5.3.120.0170.06714.46
5.3.110.0070.07714.50
5.3.100.0030.07714.02
5.3.90.0030.07313.95
5.3.80.0100.06013.96
5.3.70.0000.08013.77
5.3.60.0030.07014.07
5.3.50.0170.06314.02
5.3.40.0070.08013.72
5.3.30.0000.08013.87
5.3.20.0000.08313.47
5.3.10.0100.05713.63
5.3.00.0100.05013.60
5.2.170.0000.06711.17
5.2.160.0070.06310.99
5.2.150.0030.06011.07
5.2.140.0100.05711.14
5.2.130.0070.06011.07
5.2.120.0030.06311.08
5.2.110.0030.05711.09
5.2.100.0070.05711.10
5.2.90.0000.05010.88
5.2.80.0070.03711.06
5.2.70.0070.06310.86
5.2.60.0130.05710.85
5.2.50.0030.06010.97
5.2.40.0000.06710.99
5.2.30.0070.06011.00
5.2.20.0070.06010.90
5.2.10.0130.05310.89
5.2.00.0000.04010.76
5.1.60.0030.05710.08
5.1.50.0030.05010.09
5.1.40.0070.0539.98
5.1.30.0070.06010.40
5.1.20.0030.05710.40
5.1.10.0070.05310.12
5.1.00.0000.05710.14
5.0.50.0030.0208.55
5.0.40.0100.0408.38
5.0.30.0030.0478.26
5.0.20.0100.0138.27
5.0.10.0000.0408.17
5.0.00.0200.0308.21
4.4.90.0030.0277.81
4.4.80.0030.0307.81
4.4.70.0070.0307.81
4.4.60.0070.0237.81
4.4.50.0070.0207.81
4.4.40.0030.0337.81
4.4.30.0000.0407.81
4.4.20.0030.0337.81
4.4.10.0030.0377.81
4.4.00.0000.0607.81
4.3.110.0000.0337.81
4.3.100.0030.0177.81
4.3.90.0070.0277.81
4.3.80.0000.0507.81
4.3.70.0070.0237.81
4.3.60.0070.0277.81
4.3.50.0030.0237.81
4.3.40.0030.0507.81
4.3.30.0030.0377.81
4.3.20.0030.0277.81
4.3.10.0030.0237.81
4.3.00.0000.0277.81

preferences:
42.92 ms | 401 KiB | 5 Q