3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $address = 'scheme://[aa:dd::]:123'; var_dump(parse_url($address));
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) "[aa:dd::]" ["port"]=> int(123) }
Output for 4.3.2 - 4.3.6
Warning: parse_url(scheme://[aa:dd::]:123): Unable to parse url in /in/1B6NO on line 4 bool(false)
Output for 4.3.0 - 4.3.1
Warning: parse_url(scheme://[aa:dd::]:123) [http://www.php.net/function.parse-url]: Unable to parse url in /in/1B6NO on line 4 bool(false)