3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = parse_url("http://8.8.8.8?1.2.3.4/btc.txt"); print_r($x); ?>
Output for 5.6.28 - 5.6.38, 7.0.13 - 7.3.0rc4
Array ( [scheme] => http [host] => 8.8.8.8 [query] => 1.2.3.4/btc.txt )
Output for 4.3.0 - 5.6.27, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.0.12
Array ( [scheme] => http [host] => 8.8.8.8?1.2.3.4 [path] => /btc.txt )