3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print "omg"; $parts = parse_url("http://134744072\x00:xxx\x00@1.2.3.4\x00/btc.txt\x00"); print "meh"; echo bin2hex($parts["host"]); print_r($parts); print "wah"; ?>
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.21, 7.0.0 - 7.0.6, 7.1.0
omgmeh312e322e332e345fArray ( [scheme] => http [host] => 1.2.3.4_ [user] => 134744072_ [pass] => xxx_ [path] => /btc.txt_ ) wah
Output for 5.6.28, 7.0.14
omgmeh313334373434303732Array ( [scheme] => http [host] => 134744072 [path] => _:xxx_@1.2.3.4_/btc.txt_ ) wah
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
omgmeh313334373434303732Array ( [scheme] => http [host] => 134744072 ) wah