3v4l.org

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