3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "/hello#b?s"; var_dump(parse_url($url));
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { ["path"]=> string(6) "/hello" ["fragment"]=> string(3) "b?s" }
Output for 5.2.12 - 5.2.17, 5.3.2 - 5.3.6
array(1) { ["fragment"]=> string(3) "b?s" }
Output for 4.3.0 - 5.2.11, 5.3.0 - 5.3.1
array(2) { ["path"]=> string(6) "/hello" ["query"]=> string(3) "b?s" }