3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<html> <body> <?php echo "<p>Proxy IP: " . $_SERVER[‘REMOTE_ADDR’] . "</p>"; ?> </body> </html>
based on 28g14
Output for 7.2.0 - 7.3.0alpha1
<html> <body> Warning: Use of undefined constant ‘REMOTE_ADDR’ - assumed '‘REMOTE_ADDR’' (this will throw an Error in a future version of PHP) in /in/ZdWXk on line 4 Notice: Undefined index: ‘REMOTE_ADDR’ in /in/ZdWXk on line 4 <p>Proxy IP: </p> </body> </html>
Output for 5.3.20 - 7.1.7
<html> <body> Notice: Use of undefined constant ‘REMOTE_ADDR’ - assumed '‘REMOTE_ADDR’' in /in/ZdWXk on line 4 Notice: Undefined index: ‘REMOTE_ADDR’ in /in/ZdWXk on line 4 <p>Proxy IP: </p> </body> </html>