3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_domain($url){ $host = parse_url( $url, PHP_URL_HOST ); $host_parts = explode(".", $host); if(count($host_parts)>2){ array_shift($host_parts); } return implode(".", $host_parts); } assert( get_domain("http://eye-talk.org/") == "eye-talk.org" ); assert( get_domain("http://www.eye-talk.org/") == "eye-talk.org" ); assert( get_domain("http://www.eye-talk.org.cc/") == "eye-talk.org.cc" );
Output for git.master, git.master_jit, rfc.property-hooks

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.79 ms | 401 KiB | 8 Q