3v4l.org

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