3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = parse_url('http://mydomain.com?url=http%3A%2F%2Ffoo.com'); var_dump($x);
Output for 4.3.2 - 7.1.0
array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(12) "mydomain.com" ["query"]=> string(24) "url=http%3A%2F%2Ffoo.com" }
Output for 4.3.0 - 4.3.1
array(2) { ["scheme"]=> string(4) "http" ["host"]=> string(37) "mydomain.com?url=http%3A%2F%2Ffoo.com" }