3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('unix:///foo/bar'));
Output for 5.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false)
Output for 5.2.0 - 5.3.2
Warning: parse_url(unix:///foo/bar): Unable to parse URL in /in/b8091 on line 3 bool(false)
Output for 4.3.2 - 5.1.6
Warning: parse_url(unix:///foo/bar): Unable to parse url in /in/b8091 on line 3 bool(false)
Output for 4.3.0 - 4.3.1
array(2) { ["scheme"]=> string(4) "unix" ["host"]=> string(8) "/foo/bar" }