3v4l.org

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