3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print "omg"; $parts = parse_url("1/9999%00@1.2.3.4/btc.txt"); print "meh"; print_r($parts); print "wah"; $hosts = gethostbynamel($parts['host']); print_r($hosts); #echo bin2hex($parts["user"]); print "wtf"; ?>
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
omgmehArray ( [path] => 1/9999%00@1.2.3.4/btc.txt ) wah Notice: Undefined index: host in /in/br95l on line 7 wtf
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.17
omgmehArray ( [path] => 1/9999%00@1.2.3.4/btc.txt ) wah Notice: Undefined index: host in /in/br95l on line 7 wtf