3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SERVER['HTTP_REFERER'] = 'http://example.com/foo/bar?baz=1'; // if (in_array(parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST), [ // 'example.com', 'www.example.com', // 'domain1.com', 'www.domain1.com', // 'domain2.com', 'www.domain2.com' ])) { echo 'In referer'; } else { echo 'Not in referer'; }
Output for git.master, git.master_jit, rfc.property-hooks
In referer

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