3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($s) { echo "'$s': "; foreach (parse_url($s) as $k=>$v) echo "$k($v) "; echo "\n"; } f(' http://example.com/'); f('http://example.com#foo=1;bar=2'); f('http://example.com#foo=1/bar=2'); f('tel:1234567'); f('tel:05000');
Output for git.master, git.master_jit, rfc.property-hooks
' http://example.com/': path( http://example.com/) 'http://example.com#foo=1;bar=2': scheme(http) host(example.com) fragment(foo=1;bar=2) 'http://example.com#foo=1/bar=2': scheme(http) host(example.com) fragment(foo=1/bar=2) 'tel:1234567': scheme(tel) path(1234567) 'tel:05000': host(tel) port(5000)

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:
59.44 ms | 401 KiB | 8 Q