3v4l.org

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