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"; } //test

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.00718.43
8.3.50.0070.01021.08
8.3.40.0150.00018.72
8.3.30.0140.00719.07
8.3.20.0030.00620.34
8.3.10.0050.00322.09
8.3.00.0080.00022.43
8.2.180.0100.00516.63
8.2.170.0180.00022.96
8.2.160.0090.00619.33
8.2.150.0070.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00819.36
8.2.110.0030.00619.39
8.2.100.0090.00317.97
8.2.90.0040.00419.39
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0110.00017.90
8.2.30.0060.00318.16
8.2.20.0040.00417.75
8.2.10.0000.00717.77
8.2.00.0000.00817.90
8.1.280.0120.00325.92
8.1.270.0110.00422.06
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.25
8.1.230.0100.00019.00
8.1.220.0000.00917.79
8.1.210.0060.00318.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0080.00018.74
8.1.170.0070.00418.53
8.1.160.0000.00722.09
8.1.150.0030.00618.67
8.1.140.0040.00417.49
8.1.130.0030.00517.77
8.1.120.0040.00417.43
8.1.110.0030.00617.38
8.1.100.0030.00517.45
8.1.90.0020.00517.51
8.1.80.0050.00317.56
8.1.70.0040.00417.45
8.1.60.0030.00617.60
8.1.50.0030.00517.55
8.1.40.0040.00417.60
8.1.30.0040.00417.65
8.1.20.0000.00817.67
8.1.10.0000.00817.53
8.1.00.0040.00417.56
8.0.300.0040.00420.14
8.0.290.0040.00416.88
8.0.280.0030.00318.39
8.0.270.0000.00717.20
8.0.260.0000.00816.92
8.0.250.0030.00317.02
8.0.240.0030.00517.11
8.0.230.0030.00316.98
8.0.220.0050.00316.93
8.0.210.0030.00316.99
8.0.200.0030.00317.07
8.0.190.0030.00517.09
8.0.180.0000.00716.97
8.0.170.0050.00317.03
8.0.160.0060.00317.01
8.0.150.0000.00716.84
8.0.140.0000.00716.98
8.0.130.0030.00313.41
8.0.120.0040.00416.85
8.0.110.0000.00716.91
8.0.100.0070.00016.85
8.0.90.0000.00716.95
8.0.80.0090.01317.03
8.0.70.0040.00416.88
8.0.60.0040.00417.06
8.0.50.0030.00516.89
8.0.30.0140.00517.40
8.0.20.0050.01617.40
8.0.10.0000.00717.12
8.0.00.0110.00816.69
7.4.330.0040.00415.08
7.4.320.0040.00416.62
7.4.300.0000.00716.53
7.4.290.0000.00716.41
7.4.280.0040.00416.48
7.4.270.0040.00416.65
7.4.260.0040.00416.62
7.4.250.0060.00316.58
7.4.240.0040.00416.60
7.4.230.0080.00016.61
7.4.220.0160.01016.60
7.4.210.0110.00916.54
7.4.200.0080.00016.40
7.4.190.0040.00416.73
7.4.160.0130.00816.48
7.4.150.0080.01617.40
7.4.140.0110.01317.86
7.4.130.0090.01716.52
7.4.120.0090.01416.58
7.4.110.0110.01116.52
7.4.100.0240.00816.68
7.4.90.0200.01016.52
7.4.80.0130.00719.39
7.4.70.0110.01416.46
7.4.60.0100.01616.52
7.4.50.0030.00616.46
7.4.40.0040.01222.77
7.4.30.0110.00816.63
7.3.330.0000.00713.39
7.3.320.0000.00613.25
7.3.310.0050.00316.47
7.3.300.0080.00016.39
7.3.290.0180.00616.52
7.3.280.0090.01216.43
7.3.270.0150.00617.40
7.3.260.0060.01816.48
7.3.250.0140.00916.49
7.3.240.0170.00716.33
7.3.230.0160.00716.65
7.3.210.0140.01116.30
7.3.200.0200.00319.39
7.3.190.0120.01816.57
7.3.180.0090.01216.46
7.3.170.0070.01416.34
7.3.160.0080.01316.57
7.2.330.0150.00916.70
7.2.320.0140.00816.59
7.2.310.0110.01116.51
7.2.300.0150.00616.63
7.2.290.0210.00716.66
7.2.100.0410.01014.61
7.2.90.0380.00314.55
7.2.80.0140.00514.61
7.2.70.0830.00314.70
7.2.60.0440.01614.91
7.2.50.1040.00314.67
7.2.40.0060.01414.98
7.2.30.0140.00715.01
7.2.20.0880.00014.75
7.2.10.0150.00514.76
7.2.00.0270.00914.98
7.1.220.0490.00014.01
7.1.210.0410.01314.14
7.1.200.0000.01713.84
7.1.190.0100.01014.00
7.1.180.0100.01013.88
7.1.170.0410.00013.55
7.1.160.0220.00013.99
7.1.150.0110.00713.71
7.1.140.0430.01413.86
7.1.130.0720.00313.73
7.1.120.0580.00713.93
7.1.110.0190.00413.94
7.1.100.1010.01213.91
7.1.90.1040.00713.92
7.1.80.0990.00313.89
7.1.70.1030.01013.77
7.1.60.0670.01831.84
7.1.50.0230.01531.98
7.1.40.0280.01731.92
7.1.30.0400.00032.22
7.1.20.0460.00431.97
7.1.10.0100.01313.89
7.1.00.0130.00314.20
7.0.310.0100.01313.53
7.0.300.0560.00913.45
7.0.290.0090.00913.32
7.0.280.0130.00413.34
7.0.270.0260.00913.66
7.0.260.0100.00713.23
7.0.250.1180.01013.81
7.0.240.0080.01213.71
7.0.230.0910.01613.28
7.0.220.0070.01413.60
7.0.210.0460.00613.76
7.0.200.0720.00613.50
7.0.190.0150.01013.52
7.0.180.1010.00613.61
7.0.170.0380.01113.36
7.0.160.0000.02813.67
7.0.150.0600.01013.42
7.0.140.0910.00313.87
7.0.130.0140.00413.56
7.0.120.1060.01413.70
7.0.110.0080.01613.43
7.0.100.0640.00513.35
7.0.90.0340.00913.75
7.0.80.1130.00313.66
7.0.70.0820.00713.47
7.0.60.1110.00613.50
7.0.50.0710.00313.71
7.0.40.0290.00413.77
7.0.30.0920.00913.76
7.0.20.0150.00913.80
7.0.10.0120.00813.75
7.0.00.0860.01513.50
5.6.380.0030.01214.43
5.6.370.0050.01014.10
5.6.360.0040.01414.20
5.6.350.0050.01014.59
5.6.340.0090.00614.47
5.6.330.0120.00614.47
5.6.320.0090.01214.47
5.6.310.0210.00314.30
5.6.300.0190.00614.13
5.6.290.0130.00714.32
5.6.280.0030.01314.55
5.6.270.0180.00314.63
5.6.260.0090.01214.25
5.6.250.0160.00514.58
5.6.240.0070.01714.16
5.6.230.0140.00514.31
5.6.220.0180.00014.12
5.6.210.0130.00714.37
5.6.200.0070.01014.32
5.6.190.0110.00714.41
5.6.180.0050.01214.53
5.6.170.0040.01114.41
5.6.160.0100.01014.34
5.6.150.0000.01714.16
5.6.140.0120.00814.37
5.6.130.0060.01214.31
5.6.120.0080.01114.28
5.6.110.0140.01014.27
5.6.100.0030.01514.30
5.6.90.0080.00813.93
5.6.80.0130.00314.30
5.6.70.0070.01214.27
5.6.60.0070.01414.28
5.6.50.0090.00714.26
5.6.40.0100.01014.12
5.6.30.0070.00914.33
5.6.20.0020.01414.37
5.6.10.0210.00014.30
5.5.380.0110.01112.02
5.5.370.0150.00212.02
5.5.360.0050.00912.02
5.5.350.0050.01012.02
5.5.340.0100.00312.02
5.5.330.0050.00912.02
5.5.320.0090.00512.02
5.5.310.0120.00512.02
5.5.300.0100.00512.02
5.5.290.0080.00812.02
5.5.280.0150.00012.02
5.5.270.0170.00312.02
5.5.260.0030.01512.02
5.5.250.0140.00312.02
5.5.240.0110.00312.02
5.5.230.0030.01212.02
5.5.220.0000.01712.02
5.5.210.0140.00012.02
5.5.200.0090.00612.02
5.5.190.0060.00912.02
5.5.180.0080.00512.02
5.5.170.0130.01214.53
5.4.450.0140.00012.02
5.4.440.0100.00512.02
5.4.430.0080.00612.02
5.4.420.0070.00712.02
5.4.410.0000.01412.02
5.4.400.0040.00812.02
5.4.390.0100.00512.02
5.4.380.0100.00512.02
5.4.370.0150.00712.02
5.4.360.0110.00512.02
5.4.350.0060.01312.02
5.4.340.0000.01712.02
5.4.330.0090.00612.02

preferences:
38.92 ms | 401 KiB | 5 Q