3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $address = 'foo.com:123'; var_dump(parse_url($address));
Output for 4.3.0 - 7.2.0
array(2) { ["host"]=> string(7) "foo.com" ["port"]=> int(123) }