http://mydomain.com
bool(true)
http://www.mydomain.com
bool(true)
http://mydomain.com.evilsite.com
bool(false)
http://mydomain.com.mydomain.net
bool(true)
http://evilsitemydomain.com
bool(false)
http://mydomain.com.evil%45site.com
bool(false)
http://evil%45sitemydomain.com
bool(false)
http://evil%00sitemydomain.com
bool(false)
http://mydomain.com.evil%00site.com
bool(false)
http://evilsite.com/.mydomain.com
bool(false)
http://mydomain.com%00.evilsite.com
bool(false)
http://evilsite.com#.mydomain.com
bool(false)
http://evilsite.com@mydomain.com
bool(true)
http://mydomain.com@evilsite.com
bool(false)
http://evilsite.com#@mydomain.com
bool(false)
http://evilsite.com:mydomain.com
bool(false)
file://stuff@myfile:mydomain.net
bool(false)
file:///dev@mydomain.net
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
bool(false)
file:///dev?@mydomain.net
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
bool(false)
file:///dev?mydomain.net
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
bool(false)
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
http://mydomain.com
bool(true)
http://www.mydomain.com
bool(true)
http://mydomain.com.evilsite.com
bool(false)
http://mydomain.com.mydomain.net
bool(true)
http://evilsitemydomain.com
bool(false)
http://mydomain.com.evil%45site.com
bool(false)
http://evil%45sitemydomain.com
bool(false)
http://evil%00sitemydomain.com
bool(false)
http://mydomain.com.evil%00site.com
bool(false)
http://evilsite.com/.mydomain.com
bool(false)
http://mydomain.com%00.evilsite.com
bool(false)
http://evilsite.com#.mydomain.com
bool(false)
http://evilsite.com@mydomain.com
bool(true)
http://mydomain.com@evilsite.com
bool(false)
http://evilsite.com#@mydomain.com
bool(false)
http://evilsite.com:mydomain.com
bool(false)
file://stuff@myfile:mydomain.net
bool(false)
file:///dev@mydomain.net
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
bool(false)
file:///dev?@mydomain.net
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
bool(false)
file:///dev?mydomain.net
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/eT2Ft on line 13
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/eT2Ft on line 13
bool(false)
http://mydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://www.mydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://mydomain.com.evilsite.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://mydomain.com.mydomain.net
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://evilsitemydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://mydomain.com.evil%45site.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://evil%45sitemydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://evil%00sitemydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://mydomain.com.evil%00site.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://evilsite.com/.mydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://mydomain.com%00.evilsite.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://evilsite.com#.mydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://evilsite.com@mydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://mydomain.com@evilsite.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://evilsite.com#@mydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
http://evilsite.com:mydomain.com
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
file://stuff@myfile:mydomain.net
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
file:///dev@mydomain.net
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
file:///dev?@mydomain.net
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)
file:///dev?mydomain.net
Notice: Use of undefined constant PHP_URL_HOST - assumed 'PHP_URL_HOST' in /in/eT2Ft on line 4
Warning: parse_url() expects exactly 1 parameter, 2 given in /in/eT2Ft on line 4
bool(false)