3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hostname = 'http://hostname.local/a/b/c'; var_dump( parse_url($hostname) );
Output for 4.3.0 - 7.1.0
array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(14) "hostname.local" ["path"]=> string(6) "/a/b/c" }