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); 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.0070.01118.43
8.3.50.0080.01122.11
8.3.40.0100.00719.09
8.3.30.0080.00818.67
8.3.20.0040.00418.77
8.3.10.0050.00320.92
8.3.00.0000.00821.73
8.2.180.0110.00716.50
8.2.170.0040.01122.96
8.2.160.0100.00320.45
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00719.18
8.2.110.0060.00320.47
8.2.100.0040.00817.91
8.2.90.0000.00819.02
8.2.80.0040.00419.18
8.2.70.0070.00317.75
8.2.60.0000.00817.93
8.2.50.0080.00318.07
8.2.40.0040.00418.16
8.2.30.0050.00321.39
8.2.20.0000.00717.88
8.2.10.0040.00417.66
8.2.00.0000.00717.70
8.1.280.0100.00725.92
8.1.270.0000.00823.99
8.1.260.0070.00726.35
8.1.250.0000.00828.09
8.1.240.0090.00922.59
8.1.230.0000.01220.97
8.1.220.0040.00418.77
8.1.210.0040.00418.77
8.1.200.0080.00417.23
8.1.190.0040.00417.38
8.1.180.0000.00818.10
8.1.170.0000.00718.59
8.1.160.0080.00018.80
8.1.150.0000.00818.61
8.1.140.0040.00417.57
8.1.130.0000.00717.78
8.1.120.0050.00217.55
8.1.110.0080.00017.59
8.1.100.0000.00717.45
8.1.90.0000.00717.50
8.1.80.0000.00817.45
8.1.70.0030.00317.42
8.1.60.0040.00517.60
8.1.50.0040.00417.52
8.1.40.0000.00717.60
8.1.30.0030.00617.60
8.1.20.0040.00417.66
8.1.10.0070.00017.58
8.1.00.0000.00817.47
8.0.300.0030.00519.98
8.0.290.0000.00817.18
8.0.280.0030.00318.36
8.0.270.0000.00717.30
8.0.260.0030.00316.86
8.0.250.0000.00817.02
8.0.240.0040.00416.98
8.0.230.0030.00317.11
8.0.220.0070.00016.91
8.0.210.0000.00717.02
8.0.200.0030.00316.92
8.0.190.0000.00717.10
8.0.180.0000.00816.90
8.0.170.0040.00416.91
8.0.160.0000.00716.91
8.0.150.0040.00416.82
8.0.140.0050.00316.83
8.0.130.0050.00013.41
8.0.120.0060.00317.02
8.0.110.0040.00416.98
8.0.100.0040.00416.97
8.0.90.0040.00416.88
8.0.80.0060.00916.95
8.0.70.0050.00216.88
8.0.60.0000.00716.94
8.0.50.0040.00417.03
8.0.30.0080.01117.12
8.0.20.0070.01317.40
8.0.10.0040.00417.01
8.0.00.0080.00916.85
7.4.330.0060.00016.68
7.4.320.0070.00016.72
7.4.300.0030.00316.66
7.4.290.0030.00316.81
7.4.280.0030.00316.67
7.4.270.0070.00016.78
7.4.260.0000.00613.43
7.4.250.0000.00716.61
7.4.240.0000.00716.60
7.4.230.0070.00016.74
7.4.220.0120.00616.70
7.4.210.0030.01216.68
7.4.200.0000.00716.51
7.4.190.0070.00016.93
7.4.160.0080.00816.73
7.4.150.0060.01117.40
7.4.140.0180.01117.86
7.4.130.0110.01116.60
7.4.120.0110.00916.62
7.4.110.0130.00316.47
7.4.100.0060.01116.63
7.4.90.0090.00916.63
7.4.80.0070.01119.39
7.4.70.0040.01116.55
7.4.60.0060.00916.46
7.4.50.0000.00816.68
7.4.40.0100.00722.77
7.4.30.0130.00316.79
7.4.00.0100.00615.02
7.3.330.0030.00313.16
7.3.320.0000.00513.14
7.3.310.0000.00716.16
7.3.300.0070.00016.29
7.3.290.0100.00316.34
7.3.280.0070.01216.29
7.3.270.0100.00717.40
7.3.260.0060.01618.24
7.3.250.0170.00516.38
7.3.240.0140.00416.37
7.3.230.0100.01016.39
7.3.210.0060.01016.54
7.3.200.0120.00919.39
7.3.190.0140.00216.51
7.3.180.0030.01316.33
7.3.170.0090.00616.70
7.3.160.0110.00616.75
7.3.120.0030.01014.93
7.3.10.0050.01016.53
7.3.00.0070.01116.57
7.2.330.0120.00616.65
7.2.320.0100.01016.66
7.2.310.0060.01616.67
7.2.300.0130.00316.60
7.2.290.0100.00616.67
7.2.130.0090.00816.82
7.2.120.0100.00616.82
7.2.110.0080.00716.89
7.2.100.0130.00316.87
7.2.90.0090.00816.76
7.2.80.0040.01116.71
7.2.70.0110.01016.90
7.2.60.0090.00716.77
7.2.50.0110.00517.06
7.2.40.0080.01116.88
7.2.30.0100.00916.96
7.2.20.0120.00616.89
7.2.10.0080.01016.94
7.2.00.0100.00317.52
7.1.250.0050.01015.71
7.1.240.0130.00415.67
7.1.230.0060.01115.56
7.1.220.0150.00215.88
7.1.210.0100.00415.67
7.1.200.0020.01215.70
7.1.190.0090.01015.81
7.1.180.0100.00615.60
7.1.170.0050.01015.74
7.1.160.0140.00815.75
7.1.150.0090.01216.02
7.1.140.0120.00915.87
7.1.130.0100.00815.91
7.1.120.0090.00415.68
7.1.110.0040.00815.82
7.1.100.0060.00816.58
7.1.90.0060.00815.81
7.1.80.0050.00815.71
7.1.70.0070.00716.10
7.1.60.0070.00817.02
7.1.50.0090.01022.09
7.1.40.0120.00216.05
7.1.30.0020.01415.80
7.1.20.0080.00715.94
7.1.10.0080.00815.73
7.1.00.0070.01418.02
7.0.330.0070.00615.44
7.0.320.0100.01015.41
7.0.310.0130.00815.39
7.0.300.0120.00715.52
7.0.290.0140.00815.17
7.0.280.0130.00415.55
7.0.270.0090.00815.44
7.0.260.0060.00615.56
7.0.250.0060.00715.39
7.0.240.0070.00715.29
7.0.230.0000.01515.51
7.0.220.0090.00415.39
7.0.210.0080.00415.35
7.0.200.0040.00715.90
7.0.190.0050.00715.28
7.0.180.0070.00415.32
7.0.170.0060.00615.39
7.0.160.0080.00615.49
7.0.150.0030.00715.35
7.0.140.0070.02817.66
7.0.130.0050.00715.46
7.0.120.0070.00915.41
7.0.110.0080.00915.46
7.0.100.0100.03316.86
7.0.90.0110.03117.04
7.0.80.0070.02917.00
7.0.70.0090.03316.98
7.0.60.0120.03217.02
7.0.50.0100.03117.08
7.0.40.0150.02515.55
7.0.30.0110.02615.57
7.0.20.0110.01915.51
7.0.10.0060.03215.68
7.0.00.0080.03515.54
5.6.380.0060.00614.09
5.6.370.0090.00714.24
5.6.360.0110.00614.41
5.6.350.0090.01014.48
5.6.340.0120.00714.46
5.6.330.0080.00814.38
5.6.320.0100.00314.37
5.6.310.0000.01414.38
5.6.300.0060.00814.30
5.6.290.0050.00814.42
5.6.280.0060.03116.54
5.6.270.0110.00314.32
5.6.260.0090.00314.07
5.6.250.0100.02916.42
5.6.240.0150.02016.18
5.6.230.0060.03316.36
5.6.220.0070.02116.26
5.6.210.0040.03516.38
5.6.200.0100.01716.58
5.6.190.0100.02616.55
5.6.180.0090.03116.49
5.6.170.0010.02616.46
5.6.160.0090.01816.48
5.6.150.0090.03316.58
5.6.140.0060.03216.50
5.6.130.0050.03316.48
5.6.120.0080.03416.51
5.6.110.0050.02216.57
5.6.100.0100.03116.57
5.6.90.0090.03216.49
5.6.80.0070.02716.24
5.6.70.0030.03416.20
5.6.60.0060.02916.26
5.6.50.0050.03316.14
5.6.40.0090.02816.13
5.6.30.0100.03016.12
5.6.20.0070.03616.22
5.6.10.0110.01616.21
5.6.00.0070.02716.17
5.5.380.0060.02914.14
5.5.370.0070.02914.15
5.5.360.0090.02614.10
5.5.350.0080.02814.16
5.5.340.0040.03214.32
5.5.330.0050.03314.22
5.5.320.0050.02214.21
5.5.310.0040.03314.21
5.5.300.0010.03314.31
5.5.290.0050.02714.35
5.5.280.0060.03314.17
5.5.270.0010.02914.43
5.5.260.0050.02314.28
5.5.250.0110.02814.19
5.5.240.0080.02314.00
5.5.230.0070.03313.97
5.5.220.0050.03014.02
5.5.210.0060.02714.03
5.5.200.0070.02814.09
5.5.190.0030.03314.01
5.5.180.0100.02314.06
5.5.170.0070.00410.99
5.5.160.0070.02914.06
5.5.150.0050.03014.03
5.5.140.0070.02414.02
5.5.130.0070.02313.97
5.5.120.0060.03014.10
5.5.110.0070.02813.94
5.5.100.0030.03113.95
5.5.90.0080.02414.03
5.5.80.0070.02914.09
5.5.70.0080.01814.03
5.5.60.0070.02913.92
5.5.50.0060.02413.89
5.5.40.0080.02513.97
5.5.30.0060.02714.10
5.5.20.0050.02814.01
5.5.10.0020.02513.97
5.5.00.0070.03014.00
5.4.450.0060.02913.79
5.4.440.0110.02313.70
5.4.430.0070.03013.69
5.4.420.0100.01913.79
5.4.410.0060.03013.59
5.4.400.0090.02713.59
5.4.390.0070.02713.77
5.4.380.0100.02613.63
5.4.370.0110.02213.54
5.4.360.0030.03013.47
5.4.350.0060.03013.62
5.4.340.0070.02913.58
5.4.330.0050.00511.04
5.4.320.0050.02713.62
5.4.310.0070.02613.64
5.4.300.0060.01813.63
5.4.290.0110.02213.68
5.4.280.0060.03013.55
5.4.270.0060.03013.68
5.4.260.0090.02913.66
5.4.250.0050.03213.71
5.4.240.0060.03213.64
5.4.230.0070.03113.59
5.4.220.0070.02913.63
5.4.210.0100.02913.65
5.4.200.0070.02713.52
5.4.190.0100.02713.75
5.4.180.0070.02713.71
5.4.170.0130.02213.64
5.4.160.0070.02913.63
5.4.150.0050.02913.70
5.4.140.0090.02712.86
5.4.130.0100.02512.79
5.4.120.0080.02912.77
5.4.110.0080.02712.69
5.4.100.0060.02912.88
5.4.90.0120.02512.75
5.4.80.0060.02712.76
5.4.70.0080.01712.71
5.4.60.0070.03212.78
5.4.50.0080.02712.71
5.4.40.0040.03012.77
5.4.30.0050.02912.70
5.4.20.0060.02412.80
5.4.10.0110.02512.76
5.4.00.0100.02212.61
5.3.290.0100.02312.00
5.3.280.0040.03211.96
5.3.270.0090.02711.95
5.3.260.0040.03112.00
5.3.250.0010.02511.86
5.3.240.0120.02011.96
5.3.230.0050.02911.97
5.3.220.0080.02211.93
5.3.210.0070.02711.90
5.3.200.0070.02411.88
5.3.190.0060.02911.93
5.3.180.0060.02011.93
5.3.170.0040.03111.93
5.3.160.0030.03011.93
5.3.150.0050.02811.97
5.3.140.0070.02811.92
5.3.130.0040.03011.96
5.3.120.0080.02811.98
5.3.110.0050.02911.90
5.3.100.0060.02211.80
5.3.90.0050.02811.79
5.3.80.0100.02711.69
5.3.70.0070.02511.73
5.3.60.0030.02711.79
5.3.50.0040.02111.66
5.3.40.0070.01911.66
5.3.30.0100.01611.71
5.3.20.0030.02011.65
5.3.10.0050.01811.56
5.3.00.0080.02811.54
5.2.170.0050.01410.44
5.2.160.0070.02110.51
5.2.150.0060.02310.45
5.2.140.0060.02310.49
5.2.130.0020.02410.41
5.2.120.0040.01210.50
5.2.110.0070.02010.46
5.2.100.0060.02110.48
5.2.90.0010.01510.36
5.2.80.0020.02510.43
5.2.70.0030.02310.45
5.2.60.0050.01110.39
5.2.50.0040.01610.40
5.2.40.0060.01710.36
5.2.30.0030.02310.39
5.2.20.0040.02210.33
5.2.10.0040.02210.35
5.2.00.0060.02010.28
5.1.60.0040.01910.09
5.1.50.0050.01510.06
5.1.40.0070.01810.00
5.1.30.0030.02410.18
5.1.20.0070.01910.15
5.1.10.0040.01810.12
5.1.00.0050.02010.11
5.0.50.0020.0169.60
5.0.40.0050.0169.56
5.0.30.0030.0249.48
5.0.20.0000.0159.41
5.0.10.0030.0189.41
5.0.00.0050.0219.40
4.4.90.0000.0169.61
4.4.80.0030.0129.61
4.4.70.0030.0149.61
4.4.60.0020.0149.61
4.4.50.0030.0119.61
4.4.40.0020.0199.38
4.4.30.0020.0089.38
4.4.20.0030.0099.38
4.4.10.0000.0159.38
4.4.00.0030.0209.38
4.3.110.0030.0159.38
4.3.100.0040.0149.38
4.3.90.0030.0159.38
4.3.80.0020.0219.38
4.3.70.0030.0129.38
4.3.60.0040.0139.38
4.3.50.0010.0179.38
4.3.40.0030.0199.38
4.3.30.0030.0159.38
4.3.20.0030.0139.38
4.3.10.0010.0159.38
4.3.00.0020.0139.38

preferences:
38.7 ms | 401 KiB | 5 Q