3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $y = array(2012,2011,2011,2011,2010,2010,2009); foreach ($y as $value) { if ($aa == $value) { echo '$aa'; } $aa = $value; }
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: aa in /in/1A3Z7 on line 5 $aa$aa$aa
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: aa in /in/1A3Z7 on line 5 $aa$aa$aa