3v4l.org

run code in 300+ PHP versions simultaneously
<?php $country = file_get_contents('http://api.hostip.info/country.php?ip='.$_SERVER['REMOTE_ADDR']); echo $country; //Remove this line ?> <IMG SRC="http://api.hostip.info/flag.php" width="30" height="20" BORDER="0" ALT="Your Choice">
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "REMOTE_ADDR" in /in/t0cRe on line 2 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for api.hostip.info failed: System error in /in/t0cRe on line 2 Warning: file_get_contents(http://api.hostip.info/country.php?ip=): Failed to open stream: php_network_getaddresses: getaddrinfo for api.hostip.info failed: System error in /in/t0cRe on line 2 <IMG SRC="http://api.hostip.info/flag.php" width="30" height="20" BORDER="0" ALT="Your Choice">

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:
38.06 ms | 402 KiB | 8 Q