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', 'https://www.website.com:443/path1/path2/file1.php?query1=true&query2=false', 'https://website.com:443/path1/path2/file1.php?query1=true&query2=false', 'https://website:443/path1/path2/file1.php?query1=true&query2=false', 'https://www.website.com:443/path1/path2/?query1=true&query2=false', 'https://website.com:443/path1/path2/?query1=true&query2=false', 'https://website:443/path1/path2/?query1=true&query2=false', 'https://www.website.com:443/path1/path2/', 'https://website.com:443/path1/path2/', 'https://website:443/path1/path2/', 'https://www.website.com:443?query1=true&query2=false', 'https://website.com:443?query1=true&query2=false', 'https://website:443?query1=true&query2=false', 'www.website.com:443/path1/path2/file1.php?query1=true&query2=false', 'website.com:443/path1/path2/file1.php?query1=true&query2=false', 'website:443/path1/path2/file1.php?query1=true&query2=false', 'www.website.com:443/path1/path2/?query1=true&query2=false', 'website.com:443/path1/path2/?query1=true&query2=false', 'website:443/path1/path2/?query1=true&query2=false', 'www.website.com:443/path1/path2/', 'website.com:443/path1/path2/', 'website:443/path1/path2/', 'www.website.com:443?query1=true&query2=false', 'website.com:443?query1=true&query2=false', 'website:443?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.43
8.3.50.0140.00321.15
8.3.40.0070.00718.61
8.3.30.0070.00719.17
8.3.20.0040.00420.25
8.3.10.0040.00422.09
8.3.00.0080.00022.57
8.2.180.0100.01316.63
8.2.170.0040.01122.96
8.2.160.0070.00719.25
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.48
8.2.110.0090.00021.11
8.2.100.0060.00618.03
8.2.90.0050.00319.34
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00817.68
8.2.50.0040.00418.07
8.2.40.0040.00419.94
8.2.30.0040.00418.22
8.2.20.0000.00817.79
8.2.10.0000.00817.78
8.2.00.0060.00317.91
8.1.280.0110.00425.92
8.1.270.0110.00422.05
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.23
8.1.230.0100.00017.52
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0060.00317.35
8.1.180.0080.00018.76
8.1.170.0080.00018.57
8.1.160.0030.00522.17
8.1.150.0040.00418.68
8.1.140.0040.00417.47
8.1.130.0000.00717.89
8.1.120.0040.00417.52
8.1.110.0050.00317.39
8.1.100.0030.00317.54
8.1.90.0040.00417.46
8.1.80.0000.00717.50
8.1.70.0000.00717.37
8.1.60.0080.00017.67
8.1.50.0020.00517.54
8.1.40.0040.00417.54
8.1.30.0040.00417.68
8.1.20.0000.00917.64
8.1.10.0080.00017.60
8.1.00.0000.00717.52
8.0.300.0030.00518.77
8.0.290.0030.00616.75
8.0.280.0000.00718.44
8.0.270.0000.00717.29
8.0.260.0080.00016.84
8.0.250.0030.00317.05
8.0.240.0030.00517.04
8.0.230.0040.00416.96
8.0.220.0000.00616.95
8.0.210.0030.00317.01
8.0.200.0040.00416.94
8.0.190.0000.00816.94
8.0.180.0040.00416.93
8.0.170.0040.00416.97
8.0.160.0000.00816.98
8.0.150.0030.00317.04
8.0.140.0000.00816.85
8.0.130.0030.00313.44
8.0.120.0050.00316.91
8.0.110.0070.00016.99
8.0.100.0000.00716.96
8.0.90.0000.00716.85
8.0.80.0090.00917.02
8.0.70.0040.00416.86
8.0.60.0040.00416.81
8.0.50.0000.00716.84
8.0.30.0080.01017.11
8.0.20.0060.01117.40
8.0.10.0000.00717.18
8.0.00.0070.01216.69
7.4.330.0040.00415.02
7.4.320.0070.00016.44
7.4.300.0000.00716.41
7.4.290.0030.00616.62
7.4.280.0000.00816.39
7.4.270.0020.00516.59
7.4.260.0050.00316.52
7.4.250.0040.00416.46
7.4.240.0050.00416.52
7.4.230.0060.00316.61
7.4.220.0030.01616.38
7.4.210.0060.01316.62
7.4.200.0030.00616.31
7.4.190.0040.00416.51
7.4.160.0170.00716.59
7.4.150.0130.01017.40
7.4.140.0130.01117.86
7.4.130.0110.01616.64
7.4.120.0110.01116.56
7.4.110.0090.02016.49
7.4.100.0210.00316.60
7.4.90.0150.01316.52
7.4.80.0110.01519.39
7.4.70.0210.00416.53
7.4.60.0090.01516.64
7.4.50.0050.00516.40
7.4.40.0070.01422.77
7.4.30.0140.00916.67
7.4.00.0030.01015.26
7.3.330.0030.00313.32
7.3.320.0000.00613.24
7.3.310.0000.00816.24
7.3.300.0040.00416.46
7.3.290.0100.01316.42
7.3.280.0110.01016.41
7.3.270.0070.01517.40
7.3.260.0100.01316.42
7.3.250.0130.01016.54
7.3.240.0060.02116.48
7.3.230.0110.01116.42
7.3.210.0230.00016.62
7.3.200.0070.01519.39
7.3.190.0140.01016.52
7.3.180.0130.00916.59
7.3.170.0160.00816.34
7.3.160.0030.01716.54
7.3.120.0060.01315.11
7.2.330.0130.01016.66
7.2.320.0140.00816.67
7.2.310.0130.01316.46
7.2.300.0180.00316.52
7.2.290.0160.00616.40
7.2.00.0030.00719.55
7.1.100.0040.01118.20
7.1.70.0030.00617.17
7.1.60.0080.00519.82
7.1.50.0120.00917.07
7.0.200.0000.01116.93

preferences:
52.24 ms | 401 KiB | 5 Q