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('//www.foo.com/house/../bar'));
Output for 5.4.7 - 7.1.0
array(2) { ["host"]=> string(11) "www.foo.com" ["path"]=> string(13) "/house/../bar" }
Output for 4.3.0 - 5.4.6
array(1) { ["path"]=> string(26) "//www.foo.com/house/../bar" }