3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'http://example.com/path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($x)); $y = 'path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($y)); $z = '/path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($z));

preferences:
39.23 ms | 402 KiB | 5 Q