3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(parse_url("%20http://www.yahoo.com/r/sx/*-http://search.yahoo.com/search"));
Output for 5.3.6 - 7.2.0
Array ( [path] => %20http://www.yahoo.com/r/sx/*-http://search.yahoo.com/search )
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.3.5
Array ( [host] => %20http [path] => //www.yahoo.com/r/sx/*-http://search.yahoo.com/search )
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
Array ( [scheme] => %20http [host] => www.yahoo.com [path] => /r/sx/*-http://search.yahoo.com/search )