3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array("Een","Twee","Drie","Vier"); foreach($array as $key => $value): if($key != 0): print_r("-"); endif; print_r($key); print_r($value); endforeach; ?>
Output for 4.3.0 - 7.1.0
0Een-1Twee-2Drie-3Vier