3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $path = "//www.example.com/bar?zot=fot"; var_dump(parse_url($path));
Output for 5.4.7 - 7.1.0
array(3) { ["host"]=> string(15) "www.example.com" ["path"]=> string(4) "/bar" ["query"]=> string(7) "zot=fot" }
Output for 4.3.0 - 5.4.6
array(2) { ["path"]=> string(21) "//www.example.com/bar" ["query"]=> string(7) "zot=fot" }