3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url("http://example.com:80#@google.com/"));
Output for 5.6.28, 7.0.13
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "example.com" ["port"]=> int(80) ["fragment"]=> string(12) "@google.com/" }
Output for 5.6.0 - 5.6.27, 7.0.0 - 7.0.12
array(5) { ["scheme"]=> string(4) "http" ["host"]=> string(10) "google.com" ["user"]=> string(11) "example.com" ["pass"]=> string(3) "80#" ["path"]=> string(1) "/" }