3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'http://example.com:80#@google.com/'; echo parse_url($url)["host"]; echo "\n"; echo parse_url($url)["path"]; echo "\n\n"; echo parse_url($url, PHP_URL_HOST); echo "\n"; echo parse_url($url, PHP_URL_PATH);