3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = array(2,4,5,6,7); foreach ($x as $foo) var_dump($foo); ?>
Output for 4.3.0 - 7.1.7
int(2) int(4) int(5) int(6) int(7)