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">

preferences:
30.97 ms | 402 KiB | 5 Q