3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('//example.com/foo/bar/baz/4321:1234'));
Output for 5.5.24 - 5.5.38, 5.6.8 - 7.2.0
array(3) { ["host"]=> string(11) "example.com" ["port"]=> int(1234) ["path"]=> string(22) "/foo/bar/baz/4321:1234" }
Output for 5.5.0 - 5.5.23, 5.6.0 - 5.6.7
bool(false)