3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'ftp://some.ftp.host.ru/path/to/main.page.htm'; var_dump(parse_url($url));
Output for 4.3.0 - 7.1.0
array(3) { ["scheme"]=> string(3) "ftp" ["host"]=> string(16) "some.ftp.host.ru" ["path"]=> string(22) "/path/to/main.page.htm" }