3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(parse_url('http://example.com#@evil.com/x.txt'));
based on lZ18B
Output for 5.6.28, 7.0.13 - 7.3.0beta1
Array ( [scheme] => http [host] => example.com [fragment] => @evil.com/x.txt )
Output for 5.6.0 - 5.6.27, 7.0.0 - 7.0.12
Array ( [scheme] => http [host] => evil.com [user] => example.com# [path] => /x.txt )