3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('http://www.baidu.com@10.42.6.20@google.com?/'));
based on 35AhW
Output for 5.6.28 - 5.6.30, 7.0.13 - 7.3.1
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(10) "google.com" ["user"]=> string(24) "www.baidu.com@10.42.6.20" ["query"]=> string(1) "/" }
Output for 5.6.0 - 5.6.27, hhvm-3.15.4, 7.0.0 - 7.0.12
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "google.com?" ["user"]=> string(24) "www.baidu.com@10.42.6.20" ["path"]=> string(1) "/" }