3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'HTTP_CLIENT_IP'.$_SERVER['HTTP_CLIENT_IP']; echo 'HTTP_X_FORWARDED_FOR'.$_SERVER['HTTP_X_FORWARDED_FOR']; echo 'REMOTE_ADDR'.$_SERVER['REMOTE_ADDR']; ?>
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: HTTP_CLIENT_IP in /in/jJ0G7 on line 2 HTTP_CLIENT_IP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /in/jJ0G7 on line 3 HTTP_X_FORWARDED_FOR Notice: Undefined index: REMOTE_ADDR in /in/jJ0G7 on line 4 REMOTE_ADDR
Output for 4.3.0 - 5.4.45
HTTP_CLIENT_IPHTTP_X_FORWARDED_FORREMOTE_ADDR