3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url("://foo/bar"));
based on jU2Np
Output for 5.3.6 - 7.2.0
array(1) { ["path"]=> string(10) "://foo/bar" }
Output for 5.3.3 - 5.3.5
bool(false)
Output for 5.2.0 - 5.3.2
Warning: parse_url(://foo/bar): Unable to parse URL in /in/Vkcdu on line 2 bool(false)
Output for 4.3.2 - 5.1.6
Warning: parse_url(://foo/bar): Unable to parse url in /in/Vkcdu on line 2 bool(false)
Output for 4.3.0 - 4.3.1
Warning: parse_url(://foo/bar) [http://www.php.net/function.parse-url]: Unable to parse url in /in/Vkcdu on line 2 bool(false)