3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($check) { $rx = '_^(https?)://([^:/?]+)(?::(\d+))?(?:(/[^?]+))?(?:\?(.*))?$_i'; echo "Test $check\n"; if (!preg_match($rx, $check, $m)) { echo "\tFAIL!\n"; } else { var_export($m); echo "\n"; } } test(''); test('http://www.example.com'); test('http://www.example.com:8080'); test('http://www.example.com/some/path'); test('http://www.example.com:8080/some/path'); test('http://www.example.com?queryString'); test('http://www.example.com/some/path?queryString'); test('http://www.example.com:8080/some/path?queryString');

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.40.0040.01418.79
8.3.30.0040.01119.08
8.3.20.0040.00420.16
8.3.10.0080.00021.89
8.3.00.0090.00317.50
8.2.170.0110.00722.96
8.2.160.0110.00722.24
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0050.00319.79
8.2.110.0060.00322.31
8.2.100.0120.00017.75
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0050.00318.04
8.2.50.0030.00518.07
8.2.40.0000.00718.32
8.2.30.0000.00717.98
8.2.20.0000.00817.74
8.2.10.0050.00318.04
8.2.00.0050.00317.73
8.1.270.0090.00018.92
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0030.00623.88
8.1.230.0110.00019.10
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.38
8.1.180.0030.00518.10
8.1.170.0030.00620.23
8.1.160.0040.00422.05
8.1.150.0060.00318.80
8.1.140.0060.00317.60
8.1.130.0030.00317.86
8.1.120.0090.00017.66
8.1.110.0030.00617.71
8.1.100.0000.00717.59
8.1.90.0040.00417.66
8.1.80.0000.00717.60
8.1.70.0040.00417.59
8.1.60.0000.00817.69
8.1.50.0000.00817.68
8.1.40.0060.00317.71
8.1.30.0030.00617.78
8.1.20.0030.00617.80
8.1.10.0030.00617.52
8.1.00.0040.00417.62
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0040.00418.39
8.0.270.0030.00317.33
8.0.260.0070.00017.25
8.0.250.0070.00017.02
8.0.240.0030.00517.13
8.0.230.0040.00417.14
8.0.220.0030.00317.07
8.0.210.0030.00317.02
8.0.200.0000.00717.17
8.0.190.0000.00717.10
8.0.180.0070.00017.13
8.0.170.0040.00417.06
8.0.160.0000.00716.99
8.0.150.0070.00017.02
8.0.140.0000.00817.06
8.0.130.0000.00613.44
8.0.120.0000.00817.00
8.0.110.0080.00016.89
8.0.100.0000.00716.90
8.0.90.0050.00317.05
8.0.80.0090.00916.96
8.0.70.0000.00716.94
8.0.60.0000.00717.05
8.0.50.0000.00717.10
8.0.30.0120.01017.22
8.0.20.0170.00517.42
8.0.10.0020.00516.96
8.0.00.0060.01417.08
7.4.330.0030.00215.03
7.4.320.0030.00316.76
7.4.300.0040.00416.86
7.4.290.0040.00416.64
7.4.280.0040.00716.72
7.4.270.0080.00016.74
7.4.260.0000.00716.82
7.4.250.0000.00716.79
7.4.240.0010.00716.74
7.4.230.0040.00416.63
7.4.220.0090.00916.72
7.4.210.0100.00816.79
7.4.200.0050.00316.73
7.4.160.0090.00616.84
7.4.150.0250.00617.40
7.4.140.0100.00917.86
7.4.130.0080.01316.72
7.4.120.0080.01316.80
7.4.110.0110.00816.77
7.4.100.0100.01316.66
7.4.90.0110.00716.64
7.4.80.0000.01919.39
7.4.70.0130.01016.88
7.4.60.0040.01216.68
7.4.50.0040.00416.70
7.4.40.0070.01016.82
7.4.30.0120.00616.89
7.4.00.0070.00815.11
7.3.330.0000.00613.48
7.3.320.0120.00013.32
7.3.310.0000.00716.52
7.3.300.0000.00716.55
7.3.290.0000.00716.31
7.3.280.0140.00616.47
7.3.270.0180.00617.40
7.3.260.0060.01816.58
7.3.250.0160.00316.77
7.3.240.0100.00716.64
7.3.230.0160.00716.61
7.3.210.0070.01016.53
7.3.200.0150.00319.39
7.3.190.0070.01016.78
7.3.180.0070.01516.66
7.3.170.0100.00716.78
7.3.160.0090.00916.75
7.3.120.0030.01414.98
7.3.110.0090.00915.02
7.3.100.0070.01315.23
7.3.90.0060.00614.82
7.3.80.0060.00915.06
7.3.70.0000.01014.88
7.3.60.0070.00714.92
7.3.50.0130.00315.09
7.3.40.0110.00315.01
7.3.30.0000.01114.88
7.3.20.0120.00316.89
7.3.10.0070.00916.87
7.3.00.0060.00816.80
7.2.330.0040.01316.98
7.2.320.0120.00916.46
7.2.310.0090.00916.57
7.2.300.0070.01316.68
7.2.290.0000.01816.79
7.2.250.0030.01415.07
7.2.240.0060.01215.19
7.2.230.0040.01115.00
7.2.220.0110.00415.05
7.2.210.0060.00315.04
7.2.200.0070.00414.79
7.2.190.0070.00715.24
7.2.180.0080.00415.09
7.2.170.0090.00615.15
7.2.160.0060.00915.04
7.2.150.0060.00917.16
7.2.140.0080.00416.96
7.2.130.0030.01117.03
7.2.120.0070.01016.96
7.2.110.0070.01017.08
7.2.100.0090.00617.12
7.2.90.0070.00817.05
7.2.80.0050.01217.12
7.2.70.0070.01016.88
7.2.60.0060.00916.88
7.2.50.0060.00817.00
7.2.40.0090.00516.88
7.2.30.0070.00716.92
7.2.20.0080.00617.10
7.2.10.0060.00616.86
7.2.00.0080.00617.79
7.1.330.0030.01316.02
7.1.320.0060.00915.93
7.1.310.0030.00716.20
7.1.300.0060.00916.02
7.1.290.0030.01016.09
7.1.280.0080.00815.81
7.1.270.0100.00615.86
7.1.260.0040.00815.99
7.1.250.0090.00415.72
7.1.240.0030.01015.82
7.1.230.0070.01016.00
7.1.220.0100.00315.97
7.1.210.0030.01015.89
7.1.200.0060.00615.94
7.1.190.0140.00316.07
7.1.180.0090.00915.95
7.1.170.0040.01116.15
7.1.160.0040.01116.09
7.1.150.0120.00616.07
7.1.140.0030.00616.05
7.1.130.0060.00615.82
7.1.120.0040.00815.84
7.1.110.0030.00915.99
7.1.100.0020.00817.19
7.1.90.0060.00316.01
7.1.80.0040.00815.98
7.1.70.0050.00716.59
7.1.60.0090.00717.82
7.1.50.0060.01425.51
7.1.40.0080.00415.95
7.1.30.0000.01415.90
7.1.20.0030.00716.08
7.1.10.0030.01016.03
7.1.00.0050.04019.19
7.0.330.0070.00615.61
7.0.320.0030.01015.55
7.0.310.0030.00915.73
7.0.300.0080.00815.50
7.0.290.0040.00815.50
7.0.280.0060.00915.66
7.0.270.0030.00815.53
7.0.260.0060.00915.56
7.0.250.0000.01015.73
7.0.240.0030.00715.46
7.0.230.0000.01415.54
7.0.220.0090.00015.57
7.0.210.0070.00315.87
7.0.200.0070.00616.25
7.0.190.0030.00615.55
7.0.180.0070.00715.60
7.0.170.0100.00315.38
7.0.160.0030.00515.78
7.0.150.0000.01015.88
7.0.140.0050.02518.88
7.0.130.0030.00915.34
7.0.120.0080.00415.41
7.0.110.0060.01215.77
7.0.100.0040.01115.63
7.0.90.0040.01115.36
7.0.80.0040.01415.42
7.0.70.0120.00315.53
7.0.60.0070.04317.81
7.0.50.0050.02516.71
7.0.40.0030.02616.78
7.0.30.0180.04116.89
7.0.20.0130.03316.87
7.0.10.0110.04017.01
7.0.00.0110.04316.89
5.6.400.0060.01014.17
5.6.390.0080.00414.47
5.6.380.0060.00614.18
5.6.370.0060.01214.33
5.6.360.0040.01114.57
5.6.350.0140.00414.21
5.6.340.0130.00314.19
5.6.330.0120.00014.17
5.6.320.0040.00814.20
5.6.310.0040.01214.44
5.6.300.0070.00414.05
5.6.290.0100.00614.61
5.6.280.0040.04117.56
5.6.270.0110.00414.46
5.6.260.0040.00714.62
5.6.250.0000.01014.77
5.6.240.0130.00014.63
5.6.230.0090.00614.53
5.6.220.0000.01214.54
5.6.210.0050.04817.51
5.6.200.0110.04416.38
5.6.190.0050.03617.39
5.6.180.0250.04217.40
5.6.170.0200.03917.52
5.6.160.0060.02417.35
5.6.150.0070.04216.33
5.6.140.0110.02016.29
5.6.130.0090.04116.35
5.6.120.0050.04617.72
5.6.110.0070.04717.77
5.6.100.0120.04217.66
5.6.90.0070.04717.75
5.6.80.0090.04217.21
5.6.70.0030.01014.34
5.6.60.0060.00614.39
5.6.50.0090.00014.16
5.6.40.0080.00814.40
5.6.30.0140.00414.27
5.6.20.0070.00714.29
5.6.10.0120.00014.08
5.6.00.0100.00014.40
5.5.380.0030.00614.56
5.5.370.0120.00314.45
5.5.360.0080.00414.38
5.5.350.0190.04317.31
5.5.340.0050.03716.29
5.5.330.0100.03417.13
5.5.320.0150.04417.26
5.5.310.0210.04017.40
5.5.300.0080.04516.10
5.5.290.0060.04516.17
5.5.280.0070.03317.58
5.5.270.0070.02617.52
5.5.260.0050.03017.43
5.5.250.0060.02817.50
5.5.240.0170.04017.20
5.5.230.0070.00713.88
5.5.220.0040.01114.30
5.5.210.0090.00314.16
5.5.200.0000.01014.34
5.5.190.0110.00314.20
5.5.180.0120.00014.12
5.5.170.0030.01014.43
5.5.160.0060.00614.30
5.5.150.0060.01014.31
5.5.140.0100.00914.20
5.5.130.0110.00314.44
5.5.120.0070.00714.03
5.5.110.0090.00614.31
5.5.100.0040.00814.19
5.5.90.0070.00314.34
5.5.80.0100.00714.13
5.5.70.0000.00914.42
5.5.60.0030.00614.52
5.5.50.0090.00614.34
5.5.40.0030.01214.43
5.5.30.0100.00013.82
5.5.20.0080.00414.28
5.5.10.0030.00614.25
5.5.00.0040.00714.52
5.4.450.0070.03216.07
5.4.440.0130.04716.16
5.4.430.0140.03216.12
5.4.420.0180.02915.99
5.4.410.0030.03516.02
5.4.400.0150.03215.84
5.4.390.0120.02215.95
5.4.380.0160.03515.84
5.4.370.0130.03015.96
5.4.360.0120.03515.78
5.4.350.0150.02015.82
5.4.340.0120.03915.84
5.4.330.0060.00612.68
5.4.320.0100.02615.81
5.4.310.0130.04015.91
5.4.300.0140.03015.87
5.4.290.0140.02715.78
5.4.280.0150.04215.95
5.4.270.0130.03215.89
5.4.260.0150.02015.95
5.4.250.0070.03515.87
5.4.240.0130.04415.87
5.4.230.0170.03715.84
5.4.220.0180.03515.76
5.4.210.0130.04115.93
5.4.200.0120.04315.95
5.4.190.0180.03315.99
5.4.180.0150.02315.94
5.4.170.0070.02815.94
5.4.160.0180.02015.90
5.4.150.0150.04215.91
5.4.140.0150.03614.53
5.4.130.0140.02314.55
5.4.120.0170.02014.51
5.4.110.0170.02214.50
5.4.100.0100.02114.46
5.4.90.0200.02814.66
5.4.80.0160.03514.63
5.4.70.0190.03014.64
5.4.60.0150.03714.61
5.4.50.0080.02714.42
5.4.40.0120.03914.47
5.4.30.0120.02514.63
5.4.20.0210.03214.46
5.4.10.0160.02814.42
5.4.00.0150.02714.28
5.3.290.0330.04714.82
5.3.280.0200.07714.66
5.3.270.0200.04314.77
5.3.260.0230.04714.76
5.3.250.0130.07714.50
5.3.240.0300.05314.60
5.3.230.0270.06714.81
5.3.220.0200.04314.53
5.3.210.0230.04714.57
5.3.200.0200.03714.64
5.3.190.0270.06314.73
5.3.180.0400.05314.65
5.3.170.0230.06714.47
5.3.160.0270.04314.47
5.3.150.0100.05014.53
5.3.140.0300.03714.67
5.3.130.0230.07014.54
5.3.120.0230.06314.77
5.3.110.0130.07014.57
5.3.100.0270.03314.01
5.3.90.0270.06013.94
5.3.80.0300.05713.92
5.3.70.0170.04713.93
5.3.60.0170.04313.90
5.3.50.0170.07013.93
5.3.40.0170.08013.93
5.3.30.0200.05713.82
5.3.20.0230.07013.70
5.3.10.0200.04713.57
5.3.00.0130.05013.72
5.2.170.0200.02712.68
5.2.160.0130.03712.68
5.2.150.0170.05312.68
5.2.140.0170.04012.68
5.2.130.0230.05712.68
5.2.120.0230.04712.68
5.2.110.0100.05312.68
5.2.100.0230.05312.68
5.2.90.0170.03712.68
5.2.80.0230.03712.68
5.2.70.0200.05012.68
5.2.60.0230.04012.68
5.2.50.0170.04312.68
5.2.40.0100.03312.68
5.2.30.0100.03312.68
5.2.20.0130.03712.68
5.2.10.0300.04012.68
5.2.00.0170.05012.68
5.1.60.0130.02712.68
5.1.50.0100.03712.68
5.1.40.0130.05312.68
5.1.30.0230.05012.68
5.1.20.0200.04312.68
5.1.10.0170.05012.68
5.1.00.0170.05712.68
5.0.50.0070.04712.68
5.0.40.0070.02012.68
5.0.30.0200.03012.68
5.0.20.0170.03312.68
5.0.10.0070.03012.68
5.0.00.0070.04312.68
4.4.90.0070.03712.68
4.4.80.0100.01712.68
4.4.70.0100.03312.68
4.4.60.0100.01312.68
4.4.50.0070.04012.68
4.4.40.0100.05012.68
4.4.30.0130.01712.68
4.4.20.0170.02712.68
4.4.10.0070.03012.68
4.4.00.0070.02312.68
4.3.110.0100.01712.68
4.3.100.0030.03012.68
4.3.90.0100.02712.68
4.3.80.0100.03012.68
4.3.70.0100.01312.68
4.3.60.0070.01712.68
4.3.50.0070.01712.68
4.3.40.0100.04712.68
4.3.30.0030.02312.68
4.3.20.0070.02312.68
4.3.10.0070.01712.68
4.3.00.0000.01712.68

preferences:
47.07 ms | 400 KiB | 5 Q