3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $elements = array(1, 2, 3); foreach ($elements as $element) { } var_dump($element);
Output for 4.3.0 - 7.1.0
int(3)