3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = 'FOO'; $value = false; putenv("{$name}={$value}"); var_dump(getenv($name)); $value = true; putenv("{$name}={$value}"); var_dump(getenv($name));
based on GPJLJ
Output for 5.6.0 - 7.2.0
string(0) "" string(1) "1"