3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function main() { $g = $GLOBALS; foreach (array_keys($GLOBALS) as $k) { unset($GLOBALS[$k]); } var_dump($g); var_dump((bool)$g); }
Output for 4.3.0 - 7.1.0