3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'remote addr: '.$_SERVER['REMOTE_ADDR'].'<br>'; $details = gethostbyaddr($_SERVER['REMOTE_ADDR']). print_r(dns_get_record(gethostbyaddr($_SERVER['REMOTE_ADDR'])),true); echo $details; ?>
Output for 5.5.21 - 5.5.38, 5.6.5 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 3 Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 4 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 4 Warning: dns_get_record(): A temporary server error occurred. in /in/MatBG on line 4
Output for hhvm-3.12.0
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr() expects parameter 1 to be string, null given in /in/MatBG on line 3 Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 4 Warning: gethostbyaddr() expects parameter 1 to be string, null given in /in/MatBG on line 4 Warning: dns_get_record() expects parameter 1 to be string, null given in /in/MatBG on line 4
Output for hhvm-3.10.0
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 4
Output for 5.3.2 - 5.5.20, 5.6.0 - 5.6.4
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 3 Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 4 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 4 Array ( )
Output for 5.3.1
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 3 Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 4 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 4
Output for 5.3.0
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 3 Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 4 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 4 Warning: dns_get_record(): res_nsend() failed in /in/MatBG on line 4
Output for 5.0.0 - 5.2.17
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 3 Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 4 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 4 Warning: dns_get_record(): res_nsend() failed in /in/MatBG on line 4
Output for 4.4.5 - 4.4.9
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 3 Fatal error: Call to undefined function: dns_get_record() in /in/MatBG on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 3 Fatal error: Call to undefined function: dns_get_record() in /in/MatBG on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 2 remote addr: <br> Notice: Undefined index: REMOTE_ADDR in /in/MatBG on line 3 Warning: gethostbyaddr() [http://www.php.net/function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /in/MatBG on line 3 Fatal error: Call to undefined function: dns_get_record() in /in/MatBG on line 4