3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $m = 1; $foo = &$GLOBALS; $GLOBALS = array(); $GLOBALS["m"] = 2; var_dump($m); $m++; var_dump($foo);
Output for 4.3.0 - 7.1.10
int(1) array(1) { ["m"]=> int(2) }