3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('dog', 'cat', 'zebra', 'elephant', 'lion', 'tiger', 'squirrel', 'leopard', 'giraff'); foreach ($a as $animal) { echo $animal . "\r\n"; } ?>
based on Mo84v
Output for 4.3.0 - 7.2.0
dog cat zebra elephant lion tiger squirrel leopard giraff