3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh $a = [1, 2]; $b = new IteratorIterator($a); foreach ($b as $key => $value) { var_dump($key, $value); }
Output for 5.4.0 - 5.4.32
<?hh $a = [1, 2]; $b = new IteratorIterator($a); foreach ($b as $key => $value) { var_dump($key, $value); }