3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('http://::1:80/'));
Output for 4.3.7 - 7.1.0
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(3) "::1" ["port"]=> int(80) ["path"]=> string(1) "/" }
Output for 4.3.2 - 4.3.6
Warning: parse_url(http://::1:80/): Unable to parse url in /in/kpVuN on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Warning: parse_url(http://::1:80/) [http://www.php.net/function.parse-url]: Unable to parse url in /in/kpVuN on line 3 bool(false)