3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ar = array('one','two','three','four','five'); foreach($ar as $elem){ echo $elem.'-'.end($ar); }
Output for 4.3.0 - 7.1.0
one-fivetwo-fivethree-fivefour-fivefive-five