3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(parse_url('http://[:::127.0.0.1]:123/hello'));
Output for 4.3.7 - 7.1.0
Array ( [scheme] => http [host] => [:::127.0.0.1] [port] => 123 [path] => /hello )
Output for 4.3.2 - 4.3.6
Warning: parse_url(http://[:::127.0.0.1]:123/hello): Unable to parse url in /in/mZ8A8 on line 3
Output for 4.3.0 - 4.3.1
Warning: parse_url(http://[:::127.0.0.1]:123/hello) [http://www.php.net/function.parse-url]: Unable to parse url in /in/mZ8A8 on line 3