<?php
var_dump(getenv());
- Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
- array(8) {
["TERM"]=>
string(5) "xterm"
["PATH"]=>
string(13) "/usr/bin:/bin"
["LANG"]=>
string(1) "C"
["SHELL"]=>
string(7) "/bin/sh"
["MAIL"]=>
string(16) "/var/mail/nobody"
["LOGNAME"]=>
string(6) "nobody"
["USER"]=>
string(6) "nobody"
["HOME"]=>
string(4) "/tmp"
}
- Output for 5.5.38, 5.6.24 - 5.6.40, 7.0.9 - 7.0.33
- Warning: getenv() expects at least 1 parameter, 0 given in /in/fkFoR on line 3
bool(false)
- Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.23, 7.0.0 - 7.0.8
- Warning: getenv() expects exactly 1 parameter, 0 given in /in/fkFoR on line 3
bool(false)
preferences:
82.4 ms | 409 KiB | 5 Q