3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('//foo/bar'));
Output for 5.4.7 - 7.2.0
array(2) { ["host"]=> string(3) "foo" ["path"]=> string(4) "/bar" }
Output for 4.3.0 - 5.4.6
array(1) { ["path"]=> string(9) "//foo/bar" }