3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('*.example.com/some/path/to/file.htm?param1=1&param2=2#anchor'));
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { ["path"]=> string(35) "*.example.com/some/path/to/file.htm" ["query"]=> string(17) "param1=1&param2=2" ["fragment"]=> string(6) "anchor" }