3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('://example.com'));
Output for 5.3.6 - 7.2.0
array(1) { ["path"]=> string(14) "://example.com" }
Output for 5.3.3 - 5.3.5
bool(false)
Output for 5.2.0 - 5.3.2
Warning: parse_url(://example.com): Unable to parse URL in /in/DUnC8 on line 3 bool(false)
Output for 4.3.2 - 5.1.6
Warning: parse_url(://example.com): Unable to parse url in /in/DUnC8 on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Warning: parse_url(://example.com) [http://www.php.net/function.parse-url]: Unable to parse url in /in/DUnC8 on line 3 bool(false)