3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump($_ENV['foo']); putenv('foo', 'bar'); var_dump($_ENV['foo']);
Output for 5.3.0 - 7.1.0
Notice: Undefined index: foo in /in/ZMrhl on line 2 NULL Warning: putenv() expects exactly 1 parameter, 2 given in /in/ZMrhl on line 3 Notice: Undefined index: foo in /in/ZMrhl on line 4 NULL
Output for 4.3.0 - 5.2.17
Notice: Undefined index: foo in /in/ZMrhl on line 2 NULL Warning: Wrong parameter count for putenv() in /in/ZMrhl on line 3 Notice: Undefined index: foo in /in/ZMrhl on line 4 NULL