3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('http://example.com/some/path/to/file.htm?param1=1&param2=2#anchor'));
Output for 4.3.0 - 7.1.0
array(5) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "example.com" ["path"]=> string(22) "/some/path/to/file.htm" ["query"]=> string(17) "param1=1&param2=2" ["fragment"]=> string(6) "anchor" }