3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $proxy_ip=" "; if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ $proxy_ip = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']); $ip = $proxy_ip[0]; }else { $ip = $_SERVER['REMOTE_ADDR']; } ?>
based on 1773M
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: REMOTE_ADDR in /in/0OrQv on line 8
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.17
Notice: Undefined index: REMOTE_ADDR in /in/0OrQv on line 8