3v4l.org

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