3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('http://username:password@hostname/path?arg=value&asd=qwe&sdf=wer#anchor'));
Output for 4.3.0 - 7.1.0
array(7) { ["scheme"]=> string(4) "http" ["host"]=> string(8) "hostname" ["user"]=> string(8) "username" ["pass"]=> string(8) "password" ["path"]=> string(5) "/path" ["query"]=> string(25) "arg=value&asd=qwe&sdf=wer" ["fragment"]=> string(6) "anchor" }