3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(parse_url('/dir/file?param=1&foo=bar&test#id')); var_dump(parse_url('dir/file#id')); var_dump(parse_url('//example.org/dir/file?param=1&foo=bar&test#id')); var_dump(parse_url('http://example.org/dir/file?param=1&foo=bar&test#id'));
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["path"]=> string(9) "/dir/file" ["query"]=> string(20) "param=1&foo=bar&test" ["fragment"]=> string(2) "id" } array(2) { ["path"]=> string(8) "dir/file" ["fragment"]=> string(2) "id" } array(4) { ["host"]=> string(11) "example.org" ["path"]=> string(9) "/dir/file" ["query"]=> string(20) "param=1&foo=bar&test" ["fragment"]=> string(2) "id" } array(5) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "example.org" ["path"]=> string(9) "/dir/file" ["query"]=> string(20) "param=1&foo=bar&test" ["fragment"]=> string(2) "id" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.61 ms | 402 KiB | 8 Q