3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(parse_url('http://username:password@hostname:8000/path?arg=value#anchor'));
based on 6Tfcn
Output for 4.3.0 - 7.2.0
Array ( [scheme] => http [host] => hostname [port] => 8000 [user] => username [pass] => password [path] => /path [query] => arg=value [fragment] => anchor )