3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(getenv());
Output for 7.1.0
Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIN] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [USERNAME] => nobody [HOME] => / )
Output for 5.5.38, 5.6.24 - 5.6.28, 7.0.9 - 7.0.14
Warning: getenv() expects at least 1 parameter, 0 given in /in/NOqXB on line 2
Output for 4.3.0 - 5.5.37, 5.6.0 - 5.6.23, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.8
Warning: getenv() expects exactly 1 parameter, 0 given in /in/NOqXB on line 2