3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url='https://m.facebook.com/home.php?refsrc=https%3A%2F%2Fm.facebook.com%2F&refid=8&_rdr'; var_dump(parse_url($url)['host']); var_dump(parse_url($url)['scheme']); var_dump(array_intersect_key(parse_url($url), array('host'=>1,'scheme'=>1)));
Output for git.master, git.master_jit, rfc.property-hooks
string(14) "m.facebook.com" string(5) "https" array(2) { ["scheme"]=> string(5) "https" ["host"]=> string(14) "m.facebook.com" }

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:
31.04 ms | 405 KiB | 5 Q