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.13.2, 7.0.0 - 7.1.0
Notice: Undefined variable: aa in /in/isTF9 on line 5 201120112010
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: aa in /in/isTF9 on line 5 201120112010