3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = array( 'http://www.website.com/path1/path2/file1.php?query1=true&query2=false', 'http://website.com/path1/path2/file1.php?query1=true&query2=false', 'http://website/path1/path2/file1.php?query1=true&query2=false', 'http://www.website.com/path1/path2/?query1=true&query2=false', 'http://website.com/path1/path2/?query1=true&query2=false', 'http://website/path1/path2/?query1=true&query2=false', 'http://www.website.com/path1/path2/', 'http://website.com/path1/path2/', 'http://website/path1/path2/', 'http://www.website.com?query1=true&query2=false', 'http://website.com?query1=true&query2=false', 'http://website?query1=true&query2=false', 'www.website.com/path1/path2/file1.php?query1=true&query2=false', 'website.com/path1/path2/file1.php?query1=true&query2=false', 'website/path1/path2/file1.php?query1=true&query2=false', 'www.website.com/path1/path2/?query1=true&query2=false', 'website.com/path1/path2/?query1=true&query2=false', 'website/path1/path2/?query1=true&query2=false', 'www.website.com/path1/path2/', 'website.com/path1/path2/', 'website/path1/path2/', 'www.website.com?query1=true&query2=false', 'website.com?query1=true&query2=false', 'website?query1=true&query2=false', ); $flags = array( 'none' => null, 'scheme' => FILTER_FLAG_SCHEME_REQUIRED, 'scheme + host' => FILTER_FLAG_SCHEME_REQUIRED & FILTER_FLAG_HOST_REQUIRED, 'scheme + host + path' => FILTER_FLAG_SCHEME_REQUIRED & FILTER_FLAG_HOST_REQUIRED & FILTER_FLAG_PATH_REQUIRED, 'scheme + host + path + query' => FILTER_FLAG_SCHEME_REQUIRED & FILTER_FLAG_HOST_REQUIRED & FILTER_FLAG_PATH_REQUIRED & FILTER_FLAG_QUERY_REQUIRED, 'host' => FILTER_FLAG_HOST_REQUIRED, 'host + path' => FILTER_FLAG_HOST_REQUIRED & FILTER_FLAG_PATH_REQUIRED, 'host + path + query' => FILTER_FLAG_HOST_REQUIRED & FILTER_FLAG_PATH_REQUIRED & FILTER_FLAG_QUERY_REQUIRED, 'path' => FILTER_FLAG_PATH_REQUIRED, 'path + query' => FILTER_FLAG_PATH_REQUIRED & FILTER_FLAG_QUERY_REQUIRED, 'query' => FILTER_FLAG_QUERY_REQUIRED ); foreach($urls as $url){ foreach($flags as $k => $flag){ echo "$url => $k :\r\n"; var_dump((bool) filter_var($url, FILTER_VALIDATE_URL, $flag)); } echo "\r\n"; }

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.0110.01118.56
8.3.50.0130.00521.15
8.3.40.0110.00418.84
8.3.30.0070.00719.23
8.3.20.0040.00420.33
8.3.10.0080.00022.14
8.3.00.0040.00422.40
8.2.180.0070.01016.50
8.2.170.0120.00322.96
8.2.160.0180.00319.21
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0100.01026.16
8.2.120.0050.00319.36
8.2.110.0060.00322.21
8.2.100.0040.00818.22
8.2.90.0030.00619.27
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0030.00618.04
8.2.50.0000.00818.07
8.2.40.0080.00020.00
8.2.30.0040.00418.08
8.2.20.0040.00417.80
8.2.10.0070.00017.84
8.2.00.0040.00417.73
8.1.280.0120.00925.92
8.1.270.0040.00421.95
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00723.98
8.1.230.0000.01118.97
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0040.00417.55
8.1.180.0000.00818.78
8.1.170.0040.00418.57
8.1.160.0040.00422.18
8.1.150.0060.00318.68
8.1.140.0080.00017.52
8.1.130.0000.00717.77
8.1.120.0000.00717.43
8.1.110.0070.00017.36
8.1.100.0070.00017.38
8.1.90.0000.00817.50
8.1.80.0040.00417.39
8.1.70.0070.00017.41
8.1.60.0050.00317.55
8.1.50.0000.00817.45
8.1.40.0000.00717.51
8.1.30.0040.00417.68
8.1.20.0040.00417.66
8.1.10.0040.00417.50
8.1.00.0050.00217.40
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0040.00418.40
8.0.270.0080.00017.29
8.0.260.0040.00416.90
8.0.250.0070.00017.07
8.0.240.0030.00317.04
8.0.230.0030.00317.04
8.0.220.0000.00716.89
8.0.210.0030.00516.89
8.0.200.0060.00017.05
8.0.190.0000.00816.93
8.0.180.0040.00416.98
8.0.170.0040.00416.89
8.0.160.0000.00817.03
8.0.150.0000.00716.95
8.0.140.0080.00016.86
8.0.130.0050.00013.46
8.0.120.0000.00816.84
8.0.110.0040.00416.89
8.0.100.0000.00716.98
8.0.90.0040.00416.86
8.0.80.0100.00717.05
8.0.70.0040.00416.80
8.0.60.0040.00416.89
8.0.50.0050.00216.86
8.0.30.0110.00817.16
8.0.20.0080.01117.40
8.0.10.0040.00417.04
8.0.00.0080.01116.95
7.4.330.0000.00615.00
7.4.320.0070.00016.63
7.4.300.0040.00416.60
7.4.290.0040.00416.52
7.4.280.0030.00516.56
7.4.270.0000.00716.50
7.4.260.0040.00416.42
7.4.250.0080.00016.57
7.4.240.0030.00516.50
7.4.230.0080.00016.70
7.4.220.0100.01016.68
7.4.210.0120.00716.62
7.4.200.0080.00016.50
7.4.190.0000.00716.60
7.4.160.0060.01316.51
7.4.150.0110.01117.40
7.4.140.0150.01017.86
7.4.130.0100.01216.67
7.4.120.0060.01516.50
7.4.110.0160.01616.69
7.4.100.0000.02216.51
7.4.90.0260.01716.38
7.4.80.0110.01119.39
7.4.70.0170.00916.59
7.4.60.0120.00616.47
7.4.50.0030.00616.48
7.4.40.0110.00422.77
7.4.30.0190.00016.61
7.4.00.0120.00415.06
7.3.330.0060.00013.29
7.3.320.0050.00013.11
7.3.310.0050.00316.29
7.3.300.0070.00016.39
7.3.290.0070.01016.42
7.3.280.0100.01216.37
7.3.270.0110.01017.40
7.3.260.0200.00716.43
7.3.250.0140.00616.47
7.3.240.0110.01116.49
7.3.230.0190.00716.58
7.3.210.0150.00616.42
7.3.200.0070.01419.39
7.3.190.0080.01216.57
7.3.180.0070.01316.43
7.3.170.0080.01116.46
7.3.160.0150.00316.38
7.3.120.0040.01114.96
7.2.330.0140.01416.82
7.2.320.0180.01416.71
7.2.310.0090.01616.68
7.2.300.0060.01216.49
7.2.290.0110.00816.80
7.2.60.0110.00416.98
7.2.00.0070.00319.45
7.1.200.0030.01015.39
7.1.100.0070.00718.04
7.1.70.0030.00717.34
7.1.60.0090.01619.82
7.1.50.0120.01217.05
7.1.00.0000.06322.28
7.0.200.0000.01316.85
7.0.140.0070.07022.19
7.0.60.0030.04319.91
7.0.50.0100.05317.72
7.0.40.0070.04320.27
7.0.30.0230.03720.17
7.0.20.0130.05020.18
7.0.10.0330.07720.11
7.0.00.0100.07720.16
5.6.210.0100.05020.69
5.6.200.0070.03718.21
5.6.190.0030.04320.36
5.6.180.4130.05020.77
5.6.170.0300.05020.45
5.6.160.0030.04320.46
5.6.150.0100.07318.09
5.6.140.0030.04018.21
5.6.130.0030.04718.21
5.6.120.0170.07321.00
5.6.110.0070.09021.10
5.6.100.0000.07021.02
5.6.90.0070.08020.97
5.6.80.0130.05720.39
5.6.70.0300.07720.38
5.5.350.0270.03320.45
5.5.340.0070.08017.91
5.5.330.0170.07720.28
5.5.320.0130.07320.18
5.5.310.0300.07720.13
5.5.300.0000.04018.02
5.5.290.0030.04317.98
5.5.280.0130.07320.96
5.5.270.0070.04020.89
5.5.260.0070.04720.77
5.5.250.0130.07320.47
5.5.240.0070.08320.36
5.4.450.0700.06019.55
5.4.440.0570.06719.51
5.4.430.0700.06319.62
5.4.420.0070.06019.41
5.4.410.0700.04319.32
5.4.400.0330.06318.62
5.4.390.0300.05718.57
5.4.380.0230.05718.77
5.4.370.0200.04718.71
5.4.360.0200.04718.70
5.4.350.0100.06018.57
5.4.340.0200.05018.51
5.4.320.0060.03712.46
5.4.310.0100.03612.46
5.4.300.0110.04112.47
5.4.290.0090.04012.46
5.4.280.0080.04412.36
5.4.270.0120.03912.36
5.4.260.0100.05018.75
5.4.250.0030.05718.98
5.4.240.0070.07718.63
5.4.230.0030.05718.92
5.4.220.0070.05718.65
5.4.210.0100.05318.89
5.4.200.0130.07018.86
5.4.190.0070.06018.72
5.4.180.0130.05018.76
5.4.170.0070.05718.88
5.4.160.0130.06018.75
5.4.150.0100.05719.00
5.4.140.0030.06016.41
5.4.130.0100.06716.26
5.4.120.0130.04716.26
5.4.110.0030.06016.45
5.4.100.0070.05716.52
5.4.90.0070.05016.27
5.4.80.0000.05316.27
5.4.70.0130.06316.45
5.4.60.0170.04316.50
5.4.50.0070.05316.46
5.4.40.0130.04716.29
5.4.30.0070.05016.45
5.4.20.0130.04716.46
5.4.10.0100.05716.27
5.4.00.0130.04715.72
5.3.290.0080.04012.80
5.3.280.0200.04014.61
5.3.270.0130.05314.77
5.3.260.0030.06014.49
5.3.250.0100.06014.64
5.3.240.0100.05314.47
5.3.230.0070.05314.61
5.3.220.0070.05314.63
5.3.210.0030.06314.60
5.3.200.0070.05314.59
5.3.190.0100.05014.35
5.3.180.0170.04314.62
5.3.170.0100.05014.41
5.3.160.0130.07314.57
5.3.150.0200.04014.43
5.3.140.0030.05714.34
5.3.130.0100.05314.57
5.3.120.0070.05714.45
5.3.110.0100.05014.48
5.3.100.0100.04714.06
5.3.90.0100.05014.02
5.3.80.0130.05313.97
5.3.70.0200.03714.18
5.3.60.0070.05714.05
5.3.50.0170.05713.74
5.3.40.0130.05313.66
5.3.30.0130.06713.93
5.3.20.0100.05013.72
5.3.10.0030.05713.75
5.3.00.0070.07013.49
5.2.170.0000.05011.16
5.2.160.0130.03311.09
5.2.150.0100.05711.27
5.2.140.0130.05311.25
5.2.130.0100.04011.14
5.2.120.0070.03711.00
5.2.110.0230.03311.04
5.2.100.0130.03311.13
5.2.90.0070.04711.14
5.2.80.0100.05311.22
5.2.70.0070.04311.11
5.2.60.0100.06011.07
5.2.50.0130.04310.95
5.2.40.0170.04310.92
5.2.30.0100.04010.92
5.2.20.0100.04310.99
5.2.10.0100.05310.96
5.2.00.0100.04010.63
5.1.60.0030.03710.04
5.1.50.0070.0379.92
5.1.40.0070.03310.05
5.1.30.0000.04010.28
5.1.20.0030.03710.29
5.1.10.0030.0379.99
5.1.00.0030.04010.28
5.0.50.0130.0308.64
5.0.40.0030.0278.46
5.0.30.0000.0508.30
5.0.20.0000.0308.36
5.0.10.0030.0278.25
5.0.00.0030.0578.15
4.4.90.0070.0177.31
4.4.80.0070.0277.31
4.4.70.0030.0307.25
4.4.60.0100.0207.25
4.4.50.0030.0307.25
4.4.40.0070.0337.25
4.4.30.0030.0207.25
4.4.20.0030.0207.25
4.4.10.0030.0207.25
4.4.00.0100.0277.25
4.3.110.0070.0277.25
4.3.100.0000.0237.25
4.3.90.0030.0207.25
4.3.80.0030.0377.25
4.3.70.0030.0207.25
4.3.60.0000.0207.25
4.3.50.0030.0237.25
4.3.40.0100.0407.25
4.3.30.0000.0237.25
4.3.20.0000.0237.25
4.3.10.0000.0237.25
4.3.00.0170.0177.93

preferences:
48.3 ms | 401 KiB | 5 Q