3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $url = 'http://www.example.com/'; $rel = 'path/to/somewhere#foo?baz=quix'; var_dump(parse_url($rel), prase_url($url . $rel));

preferences:
36.07 ms | 402 KiB | 5 Q