3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $address = '[aa:dd::]:123'; var_dump(parse_url($address));
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
array(1) { ["path"]=> string(13) "[aa:dd::]:123" }
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
array(2) { ["scheme"]=> string(3) "[aa" ["path"]=> string(9) "dd::]:123" }