3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!empty($_SERVER['HTTP_CLIENT_IP'])){ $ip_addrs=$_SERVER['HTTP_CLIENT_IP']; echo '$ip_addrs'; }if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ $ip_addrs=$_SERVER['HTTP_X_FORWARDED_FOR']; echo '$ip_addrs';
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected end of file in /in/a25gf on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/a25gf on line 7
Process exited with code 255.

preferences:
191.07 ms | 1395 KiB | 67 Q