3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uris = [ 'http://exmaple.com', 'https://exmaple.com', 'ftp://exmaple.com', '//exmaple.com', '/exmaple', 'exmaple', '\\e', '///////', ]; foreach ($uris as $uri) { echo var_dump([$uri => parse_url($uri)]) . "\r\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["http://exmaple.com"]=> array(2) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "exmaple.com" } } array(1) { ["https://exmaple.com"]=> array(2) { ["scheme"]=> string(5) "https" ["host"]=> string(11) "exmaple.com" } } array(1) { ["ftp://exmaple.com"]=> array(2) { ["scheme"]=> string(3) "ftp" ["host"]=> string(11) "exmaple.com" } } array(1) { ["//exmaple.com"]=> array(1) { ["host"]=> string(11) "exmaple.com" } } array(1) { ["/exmaple"]=> array(1) { ["path"]=> string(8) "/exmaple" } } array(1) { ["exmaple"]=> array(1) { ["path"]=> string(7) "exmaple" } } array(1) { ["\e"]=> array(1) { ["path"]=> string(2) "\e" } } array(1) { ["///////"]=> bool(false) }

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:
36.8 ms | 403 KiB | 8 Q