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( null, FILTER_FLAG_SCHEME_REQUIRED, FILTER_FLAG_SCHEME_REQUIRED & FILTER_FLAG_HOST_REQUIRED, FILTER_FLAG_SCHEME_REQUIRED & FILTER_FLAG_HOST_REQUIRED & FILTER_FLAG_PATH_REQUIRED, FILTER_FLAG_SCHEME_REQUIRED & FILTER_FLAG_HOST_REQUIRED & FILTER_FLAG_PATH_REQUIRED & FILTER_FLAG_QUERY_REQUIRED ); foreach($urls as $url){ foreach($flags as $flag){ var_dump((bool) filter_var($url, FILTER_VALIDATE_URL, $flag)); } echo "<br/>"; }

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.0120.00918.56
8.3.50.0100.00821.21
8.3.40.0110.00318.67
8.3.30.0060.00819.09
8.3.20.0060.00320.19
8.3.10.0050.00221.95
8.3.00.0050.00320.64
8.2.180.0040.01516.88
8.2.170.0170.00322.96
8.2.160.0040.01119.15
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0090.00926.16
8.2.120.0040.00419.36
8.2.110.0090.00022.15
8.2.100.0040.00818.22
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0000.00717.93
8.2.50.0000.00818.07
8.2.40.0000.00820.07
8.2.30.0040.00417.98
8.2.20.0040.00417.70
8.2.10.0000.00817.89
8.2.00.0030.00517.82
8.1.280.0070.01425.92
8.1.270.0080.00022.06
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0140.00323.75
8.1.230.0040.00719.01
8.1.220.0030.00617.77
8.1.210.0000.00718.77
8.1.200.0080.00017.35
8.1.190.0040.00417.55
8.1.180.0060.00318.64
8.1.170.0050.00318.57
8.1.160.0040.00422.20
8.1.150.0040.00418.54
8.1.140.0000.00717.48
8.1.130.0000.00717.84
8.1.120.0040.00417.53
8.1.110.0070.00017.37
8.1.100.0040.00417.47
8.1.90.0000.00717.37
8.1.80.0070.00017.44
8.1.70.0030.00317.44
8.1.60.0000.00917.67
8.1.50.0040.00417.43
8.1.40.0000.00717.57
8.1.30.0040.00417.60
8.1.20.0040.00417.62
8.1.10.0050.00317.46
8.1.00.0030.00517.53
8.0.300.0070.00018.77
8.0.290.0000.00717.04
8.0.280.0000.00718.47
8.0.270.0000.00717.27
8.0.260.0040.00417.00
8.0.250.0000.00717.07
8.0.240.0030.00317.10
8.0.230.0000.00716.93
8.0.220.0000.00717.00
8.0.210.0040.00416.91
8.0.200.0030.00317.08
8.0.190.0040.00417.03
8.0.180.0030.00517.05
8.0.170.0080.00016.96
8.0.160.0080.00016.96
8.0.150.0030.00416.79
8.0.140.0060.00316.90
8.0.130.0060.00013.36
8.0.120.0000.00816.84
8.0.110.0000.00716.84
8.0.100.0000.00716.97
8.0.90.0000.00716.89
8.0.80.0060.00917.04
8.0.70.0000.00716.88
8.0.60.0000.00817.00
8.0.50.0040.00417.01
8.0.30.0100.00817.24
8.0.20.0120.00617.40
8.0.10.0000.00717.05
8.0.00.0150.00316.72
7.4.330.0040.00315.00
7.4.320.0030.00316.57
7.4.300.0000.00716.52
7.4.290.0030.00316.51
7.4.280.0000.00816.50
7.4.270.0070.00016.51
7.4.260.0000.00716.50
7.4.250.0070.00016.46
7.4.240.0020.00516.54
7.4.230.0070.00016.67
7.4.220.0030.02616.53
7.4.210.0100.01116.54
7.4.200.0080.00016.71
7.4.190.0000.00716.62
7.4.160.0030.02016.44
7.4.150.0000.01917.40
7.4.140.0110.00817.86
7.4.130.0090.00916.58
7.4.120.0090.00916.41
7.4.110.0160.00616.56
7.4.100.0120.01216.61
7.4.90.0130.01016.71
7.4.80.0120.01019.39
7.4.70.0160.01016.49
7.4.60.0130.00316.66
7.4.50.0060.00316.49
7.4.40.0100.00322.77
7.4.30.0080.01416.51
7.4.10.0190.00015.05
7.4.00.0110.00714.90
7.3.330.0060.00013.09
7.3.320.0000.00513.15
7.3.310.0080.00016.29
7.3.300.0070.00016.23
7.3.290.0060.00916.43
7.3.280.0080.00816.32
7.3.270.0140.00617.40
7.3.260.0030.01716.48
7.3.250.0150.00316.47
7.3.240.0130.00416.61
7.3.230.0080.01616.39
7.3.210.0080.01216.50
7.3.200.0140.01019.39
7.3.190.0060.01116.51
7.3.180.0080.01016.36
7.3.170.0030.01316.29
7.3.160.0160.00016.51
7.3.130.0060.01314.97
7.3.120.0040.01414.80
7.3.110.0030.01314.87
7.3.100.0110.00314.91
7.3.90.0150.00014.59
7.3.80.0030.00814.59
7.3.70.0080.00414.61
7.3.60.0060.01014.55
7.3.50.0120.00314.74
7.3.40.0050.00514.64
7.3.30.0100.00314.79
7.3.20.0000.01316.70
7.3.10.0050.00516.58
7.3.00.0000.01116.64
7.2.330.0120.00616.54
7.2.320.0110.01116.80
7.2.310.0110.00816.36
7.2.300.0080.01116.59
7.2.290.0120.00416.47
7.2.260.0120.00614.96
7.2.250.0080.00414.95
7.2.240.0060.00914.73
7.2.230.0070.01014.94
7.2.220.0080.00414.99
7.2.210.0090.00615.12
7.2.200.0000.01815.06
7.2.190.0120.00415.02
7.2.180.0100.00715.05
7.2.170.0060.00915.03
7.2.160.0060.00614.78
7.2.150.0070.00316.80
7.2.140.0060.00616.66
7.2.130.0060.00916.53
7.2.120.0100.00716.70
7.2.110.0000.01416.56
7.2.100.0060.00916.66
7.2.90.0040.01116.84
7.2.80.0130.00316.64
7.2.70.0080.00816.79
7.2.60.0030.01116.92
7.2.50.0060.00916.76
7.2.40.0090.00616.92
7.2.30.0060.00916.95
7.2.20.0040.00816.80
7.2.10.0030.00716.84
7.2.00.0040.00718.25
7.1.330.0000.01515.54
7.1.320.0140.00315.77
7.1.310.0000.01615.67
7.1.300.0040.01115.68
7.1.290.0120.00015.39
7.1.280.0050.00815.75
7.1.270.0040.01115.86
7.1.260.0080.00315.83
7.1.250.0070.00315.77
7.1.240.0060.00915.58
7.1.230.0000.01515.65
7.1.220.0070.00715.73
7.1.210.0030.01215.78
7.1.200.0020.01115.60
7.1.190.0030.01015.56
7.1.180.0110.00315.86
7.1.170.0100.00315.64
7.1.160.0100.00715.59
7.1.150.0120.00315.80
7.1.140.0040.01115.47
7.1.130.0080.00815.82
7.1.120.0040.00415.67
7.1.110.0100.00615.88
7.1.100.0050.00917.03
7.1.90.0090.00015.49
7.1.80.0050.00615.91
7.1.70.0030.00616.51
7.1.60.0080.01217.80
7.1.50.0040.01216.33
7.1.40.0060.00515.57
7.1.30.0070.00315.69
7.1.20.0000.01315.67
7.1.10.0100.00315.84
7.1.00.0030.04119.15
7.0.330.0040.01214.98
7.0.320.0060.00615.04
7.0.310.0040.01115.16
7.0.300.0070.00715.38
7.0.290.0080.00815.27
7.0.280.0060.00615.32
7.0.270.0060.00815.31
7.0.260.0060.00615.07
7.0.250.0100.00715.38
7.0.240.0000.01215.39
7.0.230.0040.00815.25
7.0.220.0040.01115.48
7.0.210.0060.00915.44
7.0.200.0000.01016.22
7.0.190.0090.00015.44
7.0.180.0080.00315.45
7.0.170.0060.00615.46
7.0.160.0060.00315.29
7.0.150.0000.01515.18
7.0.140.0110.03618.68
7.0.130.0060.00615.21
7.0.120.0100.00315.19
7.0.110.0070.00715.41
7.0.100.0030.01015.44
7.0.90.0000.01015.35
7.0.80.0060.00615.08
7.0.70.0030.00615.18
7.0.60.0050.04217.57
7.0.50.0050.03216.67
7.0.40.0100.04516.74
7.0.30.0170.02516.69
7.0.20.0170.02816.72
7.0.10.0080.03816.66
7.0.00.0020.02716.69
5.6.400.0060.00914.36
5.6.390.0060.01014.50
5.6.380.0060.00314.47
5.6.370.0040.00814.39
5.6.360.0040.01114.13
5.6.350.0070.01014.17
5.6.340.0100.00314.09
5.6.330.0130.00014.13
5.6.320.0000.01514.50
5.6.310.0000.01714.13
5.6.300.0130.00314.43
5.6.290.0070.00714.36
5.6.280.0090.00614.43
5.6.270.0070.01114.17
5.6.260.0040.01114.71
5.6.250.0000.01514.17
5.6.240.0060.00914.18
5.6.230.0040.01114.33
5.6.220.0120.00614.34
5.6.210.0010.04817.44
5.6.200.0050.03116.06
5.6.190.0070.03717.61
5.6.180.0170.03817.41
5.6.170.0100.02617.29
5.6.160.0080.04617.40
5.6.150.0040.02416.21
5.6.140.0030.05116.17
5.6.130.0020.03216.22
5.6.120.0070.02817.60
5.6.110.0120.04317.66
5.6.100.0140.03617.52
5.6.90.0050.03817.60
5.6.80.0060.04317.21
5.6.70.0030.01114.10
5.6.60.0100.00714.24
5.6.50.0000.01213.97
5.6.40.0030.00914.09
5.6.30.0100.00313.95
5.6.20.0110.00714.37
5.6.10.0030.00614.30
5.6.00.0130.00014.32
5.5.380.0060.00613.90
5.5.370.0040.01114.20
5.5.360.0000.00914.11
5.5.350.0060.04417.15
5.5.340.0060.04616.11
5.5.330.0070.03017.18
5.5.320.1450.02317.14
5.5.310.0180.02317.24
5.5.300.0050.04415.94
5.5.290.0030.04715.90
5.5.280.0100.04017.62
5.5.270.0030.04617.60
5.5.260.0060.03217.65
5.5.250.0050.04617.45
5.5.240.0050.04417.13
5.5.230.0100.00714.10
5.5.220.0080.00813.77
5.5.210.0080.00414.45
5.5.200.0030.01014.00
5.5.190.0040.01114.00
5.5.180.0090.00014.15
5.5.170.0030.00913.83
5.5.160.0060.00913.99
5.5.150.0060.00613.90
5.5.140.0030.01314.04
5.5.130.0000.01414.24
5.5.120.0060.00614.14
5.5.110.0030.00914.08
5.5.100.0000.01313.81
5.5.90.0000.01313.93
5.5.80.0040.00413.96
5.5.70.0040.00414.20
5.5.60.0000.01414.12
5.5.50.0120.00314.07
5.5.40.0070.01013.94
5.5.30.0000.01413.78
5.5.20.0030.00614.09
5.5.10.0070.00414.15
5.5.00.0090.00614.04
5.4.450.0550.02814.94
5.4.440.0450.04115.19
5.4.430.0430.03015.21
5.4.420.0070.03115.17
5.4.410.0120.02615.04
5.4.400.0080.02914.72
5.4.390.0080.02914.72
5.4.380.0080.03014.69
5.4.370.0130.02514.70
5.4.360.0200.02514.77
5.4.350.0060.02411.27
5.4.340.0040.02111.25
5.4.330.0000.00910.63
5.4.320.0030.02411.70
5.4.310.0050.02711.73
5.4.300.0070.02011.59
5.4.290.0060.02411.54
5.4.280.0070.01811.64
5.4.270.0090.02011.61
5.4.260.0080.02714.99
5.4.250.0110.03115.03
5.4.240.0100.03714.93
5.4.230.0090.03815.09
5.4.220.0050.03615.00
5.4.210.0080.02514.93
5.4.200.0020.03514.80
5.4.190.0050.03414.80
5.4.180.0070.03014.97
5.4.170.0120.02514.84
5.4.160.0050.04214.99
5.4.150.0070.03314.80
5.4.140.0080.03613.58
5.4.130.0090.02813.46
5.4.120.0070.03713.74
5.4.110.0050.03013.75
5.4.100.0050.04013.61
5.4.90.0050.03013.62
5.4.80.0030.03013.65
5.4.70.0030.03113.69
5.4.60.0080.03213.55
5.4.50.0050.02713.60
5.4.40.0030.04113.69
5.4.30.0090.02513.75
5.4.20.0100.02513.55
5.4.10.0080.02713.61
5.4.00.0100.03413.49
5.3.290.0050.02211.66
5.3.280.0010.03612.31
5.3.270.0070.03612.57
5.3.260.0080.03912.63
5.3.250.0050.02912.56
5.3.240.0100.03812.42
5.3.230.0100.02512.48
5.3.220.0030.03112.39
5.3.210.0050.03512.33
5.3.200.0020.03212.41
5.3.190.0020.03412.31
5.3.180.0080.03012.38
5.3.170.0070.02512.53
5.3.160.0100.02712.55
5.3.150.0070.03912.40
5.3.140.0050.02812.52
5.3.130.0000.03412.38
5.3.120.0030.03312.47
5.3.110.0070.03212.52
5.3.100.0090.02812.12
5.3.90.0020.03112.24
5.3.80.0050.03912.08
5.3.70.0060.02812.27
5.3.60.0040.02712.15
5.3.50.0090.03412.18
5.3.40.0040.03912.15
5.3.30.0080.02312.24
5.3.20.0080.03012.02
5.3.10.0100.02811.85
5.3.00.0050.03011.92
5.2.170.0030.04711.07
5.2.160.0070.04011.00
5.2.150.0070.04011.18
5.2.140.0130.05010.99
5.2.130.0030.04311.22
5.2.120.0100.05711.04
5.2.110.0030.04311.00
5.2.100.0030.04011.03
5.2.90.0070.04011.11
5.2.80.0070.04711.20
5.2.70.0070.04011.21
5.2.60.0000.05010.96
5.2.50.0200.03011.04
5.2.40.0070.03711.02
5.2.30.0030.04011.00
5.2.20.0070.04010.88
5.2.10.0030.04311.02
5.2.00.0000.04710.75
5.1.60.0030.0339.92
5.1.50.0030.03310.04
5.1.40.0030.03710.08
5.1.30.0070.03310.11
5.1.20.0070.04310.58
5.1.10.0030.0379.85
5.1.00.0070.0309.85
5.0.50.0030.0278.47
5.0.40.0030.0278.31
5.0.30.0000.0538.19
5.0.20.0030.0278.29
5.0.10.0000.0478.16
5.0.00.0070.0378.00
4.4.90.0000.0307.46
4.4.80.0070.0177.46
4.4.70.0000.0237.46
4.4.60.0000.0237.46
4.4.50.0030.0207.46
4.4.40.0000.0437.46
4.4.30.0030.0307.46
4.4.20.0000.0237.46
4.4.10.0030.0207.46
4.4.00.0000.0337.46
4.3.110.0070.0207.46
4.3.100.0030.0307.46
4.3.90.0030.0207.46
4.3.80.0000.0377.46
4.3.70.0030.0277.46
4.3.60.0070.0177.46
4.3.50.0030.0207.46
4.3.40.0000.0337.46
4.3.30.0030.0237.46
4.3.20.0000.0237.46
4.3.10.0000.0307.46
4.3.00.0070.02013.16

preferences:
49.19 ms | 401 KiB | 5 Q