3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url("/path?value=a:2")); var_dump(parse_url("http://path?value=a:2"));
Output for 7.0.0 - 7.2.0
array(2) { ["path"]=> string(5) "/path" ["query"]=> string(9) "value=a:2" } array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(4) "path" ["query"]=> string(9) "value=a:2" }
Output for 5.3.20 - 5.6.28
bool(false) array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(4) "path" ["query"]=> string(9) "value=a:2" }