3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! var_dump(parse_url('://www.foo.com/house/../bar'));
Output for 5.3.6 - 7.2.0
array(1) { ["path"]=> string(27) "://www.foo.com/house/../bar" }
Output for 5.3.3 - 5.3.5
bool(false)
Output for 5.2.0 - 5.3.2
Warning: parse_url(://www.foo.com/house/../bar): Unable to parse URL in /in/E19CF on line 4 bool(false)
Output for 4.3.2 - 5.1.6
Warning: parse_url(://www.foo.com/house/../bar): Unable to parse url in /in/E19CF on line 4 bool(false)
Output for 4.3.0 - 4.3.1
Warning: parse_url(://www.foo.com/house/../bar) [http://www.php.net/function.parse-url]: Unable to parse url in /in/E19CF on line 4 bool(false)