3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
int(1) array(1) { ["m"]=> int(2) }
Output for hhvm-3.10.0 - 3.12.0
int(2) array(0) { }