3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('/dir/file?param=1&foo=bar&test'));
Output for 4.3.0 - 7.1.0
array(2) { ["path"]=> string(9) "/dir/file" ["query"]=> string(20) "param=1&foo=bar&test" }