3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $answers = array( 'answer' => array( -1 => array( -1 => 'first', -2 => 'second', ), -2 => array( -3 => 'third' ), ), 'incorrect' => array(), ); foreach (array_keys($answers['answer'][-1]) as $answer) { echo $answer; }
based on 7X0pW
Output for 4.3.0 - 7.1.0
-1-2