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.0070.00716.50
8.3.50.0080.00817.44
8.3.40.0000.01518.90
8.3.30.0150.00018.84
8.3.20.0060.00318.90
8.3.10.0000.00819.08
8.3.00.0000.00919.38
8.2.180.0110.00418.62
8.2.170.0120.00322.96
8.2.160.0100.00720.35
8.2.150.0040.00424.18
8.2.140.0180.00024.66
8.2.130.0030.00626.16
8.2.120.0140.00420.81
8.2.110.0030.00720.16
8.2.100.0000.01217.91
8.2.90.0050.00319.09
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.68
8.2.50.0040.00418.07
8.2.40.0040.00418.20
8.2.30.0000.00717.93
8.2.20.0000.00917.80
8.2.10.0040.00417.73
8.2.00.0020.00517.87
8.1.280.0140.00725.92
8.1.270.0080.00024.66
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.14
8.1.230.0070.00417.64
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0090.00017.35
8.1.190.0040.00417.28
8.1.180.0000.00918.10
8.1.170.0000.00918.75
8.1.160.0040.00418.86
8.1.150.0050.00318.72
8.1.140.0030.00517.54
8.1.130.0040.00417.72
8.1.120.0000.00717.59
8.1.110.0040.00417.50
8.1.100.0080.00017.43
8.1.90.0000.00717.46
8.1.80.0040.00417.61
8.1.70.0000.00717.41
8.1.60.0030.00517.62
8.1.50.0050.00317.45
8.1.40.0080.00017.60
8.1.30.0040.00417.57
8.1.20.0040.00417.76
8.1.10.0080.00017.65
8.1.00.0000.00817.59
8.0.300.0070.00018.77
8.0.290.0070.00016.88
8.0.280.0030.00318.51
8.0.270.0000.00717.15
8.0.260.0000.00816.91
8.0.250.0040.00417.09
8.0.240.0040.00417.13
8.0.230.0030.00316.89
8.0.220.0030.00316.96
8.0.210.0070.00017.01
8.0.200.0000.00717.07
8.0.190.0040.00417.05
8.0.180.0050.00617.02
8.0.170.0000.00816.82
8.0.160.0000.00716.93
8.0.150.0040.00416.95
8.0.140.0090.00016.88
8.0.130.0000.00713.41
8.0.120.0040.00416.83
8.0.110.0060.00316.82
8.0.100.0070.00016.82
8.0.90.0040.00417.00
8.0.80.0140.00616.92
8.0.70.0050.00216.92
8.0.60.0000.00716.96
8.0.50.0080.00016.97
8.0.30.0120.00617.29
8.0.20.0170.00517.27
8.0.10.0040.00417.14
8.0.00.0090.01416.84
7.4.330.0020.00213.25
7.4.320.0060.00016.67
7.4.300.0050.00216.65
7.4.290.0100.00016.55
7.4.280.0030.00516.71
7.4.270.0060.00316.63
7.4.260.0030.00313.41
7.4.250.0070.00016.75
7.4.240.0040.00416.55
7.4.230.0030.00316.74
7.4.220.0120.00616.70
7.4.210.0070.00916.74
7.4.200.0040.00416.60
7.4.190.0070.00016.79
7.4.160.0100.01316.51
7.4.150.0140.00716.55
7.4.140.0100.00816.62
7.4.130.0080.00916.57
7.4.120.0070.01016.62
7.4.110.0060.01016.73
7.4.100.0040.01416.48
7.4.90.0070.01016.69
7.4.80.0050.01419.39
7.4.70.0130.00716.40
7.4.60.0030.01316.63
7.4.50.0000.01216.48
7.4.40.0070.01116.64
7.4.30.0170.00016.71
7.4.00.0040.00815.26
7.3.330.0000.00613.18
7.3.320.0000.00713.04
7.3.310.0020.00516.34
7.3.300.0030.00316.28
7.3.290.0080.01216.31
7.3.280.0040.01416.29
7.3.270.0300.02816.55
7.3.260.0090.00916.33
7.3.250.0130.00916.49
7.3.240.0090.01216.44
7.3.230.0100.00716.27
7.3.210.0040.01416.31
7.3.200.0000.01716.55
7.3.190.0070.01416.81
7.3.180.0040.01216.20
7.3.170.0130.00316.55
7.3.160.0110.00516.54
7.3.120.0060.00914.85
7.2.330.0120.00616.54
7.2.320.0060.01216.67
7.2.310.0220.00616.59
7.2.300.0090.00616.71
7.2.290.0030.01316.77
7.2.60.0030.01016.91
7.2.00.0130.00719.32
7.1.200.0060.00616.01
7.1.100.0030.01018.37
7.1.70.0080.00017.37
7.1.60.0040.00817.17
7.1.50.0140.01016.77
7.1.00.0070.03322.35
7.0.200.0040.00716.91
7.0.140.0030.07722.09
7.0.120.0030.05022.00
7.0.60.0230.08021.73
7.0.50.0030.04717.83
7.0.40.0070.08720.38
7.0.30.0130.07720.26
7.0.20.0030.08020.14
7.0.10.0170.07720.06
7.0.00.0100.05320.22
5.6.280.0100.08320.99
5.6.210.0230.05720.47
5.6.200.0100.08318.19
5.6.190.0030.08320.63
5.6.180.0070.05020.60
5.6.170.0070.04720.27
5.6.160.0070.04720.61
5.6.150.0030.04320.37
5.6.140.0070.07020.45
5.6.130.0070.07720.40
5.6.120.0100.08020.39
5.6.110.0130.08020.43
5.6.100.0030.04720.15
5.6.90.0000.05720.41
5.6.80.0100.08019.52
5.6.70.0070.04019.81
5.6.60.0100.03719.50
5.6.50.0100.03719.75
5.6.40.0070.05319.69
5.6.30.0170.07719.76
5.6.20.0100.07319.68
5.6.10.0070.07019.67
5.6.00.0030.08019.44
5.5.350.0300.05320.41
5.5.340.0030.06317.88
5.5.330.0070.04720.12
5.5.320.0130.03720.28
5.5.310.0130.03720.21
5.5.300.0100.07020.07
5.5.290.0070.04720.14
5.5.280.0170.07319.91
5.5.270.0070.08319.89
5.5.260.0070.07319.96
5.5.250.0100.06720.01
5.5.240.0030.04319.62
5.5.230.0070.06319.61
5.5.220.0030.04319.34
5.5.210.0070.04019.51
5.5.200.0000.05019.52
5.5.190.0100.04319.52
5.5.180.0100.06319.55
5.5.160.0100.05719.52
5.5.150.0030.04319.55
5.5.140.0070.06019.54
5.5.130.0130.07319.54
5.5.120.0030.05719.47
5.5.110.0000.08319.46
5.5.100.0030.04019.52
5.5.90.0070.06719.26
5.5.80.0030.04719.23
5.5.70.0030.04319.26
5.5.60.0030.07019.41
5.5.50.0030.08319.14
5.5.40.0030.07319.37
5.5.30.0100.07019.31
5.5.20.0070.08019.28
5.5.10.0130.07719.46
5.5.00.0070.07019.38
5.4.450.0170.07019.14
5.4.440.0170.03719.46
5.4.430.0170.04719.40
5.4.420.0070.03719.48
5.4.410.0130.07019.33
5.4.400.0000.04319.16
5.4.390.0130.04319.00
5.4.380.0130.03318.94
5.4.370.0070.07719.15
5.4.360.0000.04318.91
5.4.350.0070.04719.08
5.4.340.0100.04019.17
5.4.320.0030.06719.18
5.4.310.0000.05719.14
5.4.300.0100.05319.15
5.4.290.0030.08719.13
5.4.280.0100.05319.20
5.4.270.0000.07719.17
5.4.260.0070.03319.17
5.4.250.0130.04319.00
5.4.240.0170.06718.78
5.4.230.0130.04018.77
5.4.220.0100.05319.13
5.4.210.0100.07018.91
5.4.200.0170.05319.07
5.4.190.0070.04318.78
5.4.180.0030.04019.11
5.4.170.0070.04318.79
5.4.160.0070.03319.14
5.4.150.0030.05719.07
5.4.140.0070.04016.33
5.4.130.0000.04016.39
5.4.120.0070.05016.42
5.4.110.0100.04016.38
5.4.100.0030.04316.45
5.4.90.0100.04016.29
5.4.80.0030.07316.39
5.4.70.0000.04016.27
5.4.60.0030.03716.14
5.4.50.0070.07716.13
5.4.40.0070.05316.21
5.4.30.0100.04716.12
5.4.20.0030.05716.12
5.4.10.0070.05016.58
5.4.00.0070.03715.67
5.3.290.0030.08014.62
5.3.280.0030.04714.53
5.3.270.0000.08314.53
5.3.260.0000.07014.58
5.3.250.0100.04714.54
5.3.240.0070.03714.53
5.3.230.0070.07714.50
5.3.220.0070.03714.58
5.3.210.0100.03014.50
5.3.200.0100.03314.49
5.3.190.0030.04014.51
5.3.180.0070.07714.54
5.3.170.0030.04014.48
5.3.160.0130.07014.49
5.3.150.0130.06714.49
5.3.140.0000.04314.49
5.3.130.0230.06314.44
5.3.120.0070.05714.52
5.3.110.0070.04714.49
5.3.100.0030.04314.12
5.3.90.0100.03313.94
5.3.80.0070.03313.83
5.3.70.0030.03713.82
5.3.60.0070.03313.82
5.3.50.0000.03713.92
5.3.40.0030.03313.73
5.3.30.0070.03313.74
5.3.20.0000.03713.61
5.3.10.0100.03713.59
5.3.00.0030.03713.57
5.2.170.0000.03310.96
5.2.160.0000.03011.00
5.2.150.0000.03010.98
5.2.140.0000.03011.11
5.2.130.0000.03011.07
5.2.120.0030.03011.03
5.2.110.0030.02711.03
5.2.100.0000.04311.00
5.2.90.0030.02711.03
5.2.80.0000.03011.02
5.2.70.0030.02711.17
5.2.60.0000.03311.20
5.2.50.0030.03010.99
5.2.40.0030.04010.82
5.2.30.0070.02710.98
5.2.20.0070.02711.06
5.2.10.0100.02010.93
5.2.00.0000.03010.62
5.1.60.0030.0239.91
5.1.50.0000.02710.05
5.1.40.0030.0239.95
5.1.30.0030.02310.27
5.1.20.0000.02710.32
5.1.10.0000.06010.14
5.1.00.0070.02010.14
5.0.50.0030.0278.62
5.0.40.0030.0208.33
5.0.30.0030.0278.30
5.0.20.0030.0178.26
5.0.10.0000.0208.09
5.0.00.0030.0308.17
4.4.90.0030.0136.66
4.4.80.0030.0206.66
4.4.70.0000.0406.66
4.4.60.0000.0336.66
4.4.50.0000.0236.66
4.4.40.0070.0236.66
4.4.30.0030.0136.66
4.4.20.0000.0176.66
4.4.10.0000.0176.66
4.4.00.0000.0276.66
4.3.110.0030.0136.66
4.3.100.0000.0176.66
4.3.90.0000.0136.66
4.3.80.0000.0236.66
4.3.70.0000.0136.66
4.3.60.0000.0136.66
4.3.50.0000.0136.66
4.3.40.0070.0176.66
4.3.30.0000.0176.66
4.3.20.0000.0176.66
4.3.10.0000.0136.66
4.3.00.0030.0136.66

preferences:
50.61 ms | 401 KiB | 5 Q