3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $host = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $host;
Output for 5.3.0 - 7.1.0
Notice: Undefined index: REMOTE_ADDR in /in/OU6HV on line 2 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/OU6HV on line 2
Output for 4.3.2 - 5.2.17
Notice: Undefined index: REMOTE_ADDR in /in/OU6HV on line 2 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/OU6HV on line 2
Output for 4.3.0 - 4.3.1
Notice: Undefined index: REMOTE_ADDR in /in/OU6HV on line 2 Warning: gethostbyaddr() [http://www.php.net/function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /in/OU6HV on line 2