3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP'); echo ipaddress;
based on 9qN0g
Output for 7.2.0
Warning: Use of undefined constant ipaddress - assumed 'ipaddress' (this will throw an Error in a future version of PHP) in /in/OCJcc on line 6 ipaddress
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant ipaddress - assumed 'ipaddress' in /in/OCJcc on line 6 ipaddress