3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = $_SERVER['HTTP_HOST']; preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches); echo "domain name is: {$matches[0]}\n";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "HTTP_HOST" in /in/DtCBk on line 2 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/DtCBk on line 3 Warning: Undefined array key 0 in /in/DtCBk on line 4 domain name is:

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.01 ms | 402 KiB | 8 Q