3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $y = 'path/to/somewhere#foo'; var_dump(parse_url($y));
Output for 4.3.0 - 7.1.0
array(2) { ["path"]=> string(17) "path/to/somewhere" ["fragment"]=> string(3) "foo" }