filter_var() URL Validation

Two different representations of using the filter_var() and the available flags with a number of URLs.

See more about filter_var() and FILTER_VALIDATE_URL and find the code that generated these tables.

URLNullFILTER_FLAG_SCHEME_REQUIREDFILTER_FLAG_HOST_REQUIREDFILTER_FLAG_PATH_REQUIREDFILTER_FLAG_QUERY_REQUIREDFILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIREDFILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_PATH_REQUIREDFILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIREDFILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIREDFILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIRED
http://www.bbc.co.ukTRUETRUETRUEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
http://www.hashbangcode.comTRUETRUETRUEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
http://www.hashbangcode.com/blogTRUETRUETRUETRUEFALSETRUETRUEFALSETRUEFALSEFALSETRUEFALSEFALSEFALSE
http://www.example.com/index.html#anchorTRUETRUETRUETRUEFALSETRUETRUEFALSETRUEFALSEFALSETRUEFALSEFALSEFALSE
http://www.example.com/index.html?q=123TRUETRUETRUETRUETRUETRUETRUETRUETRUETRUETRUETRUETRUETRUETRUE
example.comFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
www.example.comFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
www.example.com/blogFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
www.example.com/index.html?q=123FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
/index.html?q=123FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
https://www.example.com/TRUETRUETRUETRUEFALSETRUETRUEFALSETRUEFALSEFALSETRUEFALSEFALSEFALSE
https://localhostTRUETRUETRUEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
https://localhost/TRUETRUETRUETRUEFALSETRUETRUEFALSETRUEFALSEFALSETRUEFALSEFALSEFALSE
https://127.0.0.1/TRUETRUETRUETRUEFALSETRUETRUEFALSETRUEFALSEFALSETRUEFALSEFALSEFALSE
http://.comFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
http://...FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
http://FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
http://i'me really trying to break this url!!!"£$"%$&*()FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE

FLAGhttp://www.bbc.co.ukhttp://www.hashbangcode.comhttp://www.hashbangcode.com/bloghttp://www.example.com/index.html#anchorhttp://www.example.com/index.html?q=123example.comwww.example.comwww.example.com/blogwww.example.com/index.html?q=123/index.html?q=123https://www.example.com/https://localhosthttps://localhost/https://127.0.0.1/http://.comhttp://...http://http://i'me really trying to break this url!!!"£$"%$&*()
NullTRUETRUETRUETRUETRUEFALSEFALSEFALSEFALSEFALSETRUETRUETRUETRUEFALSEFALSEFALSEFALSE
FILTER_FLAG_SCHEME_REQUIREDTRUETRUETRUETRUETRUEFALSEFALSEFALSEFALSEFALSETRUETRUETRUETRUEFALSEFALSEFALSEFALSE
FILTER_FLAG_HOST_REQUIREDTRUETRUETRUETRUETRUEFALSEFALSEFALSEFALSEFALSETRUETRUETRUETRUEFALSEFALSEFALSEFALSE
FILTER_FLAG_PATH_REQUIREDFALSEFALSETRUETRUETRUEFALSEFALSEFALSEFALSEFALSETRUEFALSETRUETRUEFALSEFALSEFALSEFALSE
FILTER_FLAG_QUERY_REQUIREDFALSEFALSEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIREDTRUETRUETRUETRUETRUEFALSEFALSEFALSEFALSEFALSETRUETRUETRUETRUEFALSEFALSEFALSEFALSE
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_PATH_REQUIREDFALSEFALSETRUETRUETRUEFALSEFALSEFALSEFALSEFALSETRUEFALSETRUETRUEFALSEFALSEFALSEFALSE
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFALSEFALSEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIREDFALSEFALSETRUETRUETRUEFALSEFALSEFALSEFALSEFALSETRUEFALSETRUETRUEFALSEFALSEFALSEFALSE
FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFALSEFALSEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFALSEFALSEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIREDFALSEFALSETRUETRUETRUEFALSEFALSEFALSEFALSEFALSETRUEFALSETRUETRUEFALSEFALSEFALSEFALSE
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFALSEFALSEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFALSEFALSEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIREDFALSEFALSEFALSEFALSETRUEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE

See more about filter_var() and FILTER_VALIDATE_URL and find the code that generated these tables.