3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('x://:pass@hh:123'));
based on RIJad
Output for 5.5.24 - 7.2.0
array(5) { ["scheme"]=> string(1) "x" ["host"]=> string(2) "hh" ["port"]=> int(123) ["user"]=> string(0) "" ["pass"]=> string(4) "pass" }
Output for 4.3.0 - 5.4.45
array(4) { ["scheme"]=> string(1) "x" ["host"]=> string(2) "hh" ["port"]=> int(123) ["pass"]=> string(4) "pass" }