3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array(); $test['a'] = 'first'; $test['d'] = 'second'; $test['c'] = 'third'; $test['e'] = 'penultimate'; $test['b'] = 'last'; foreach($test as $value) { var_dump($value); }
based on HeVJm
Output for 4.3.0 - 7.1.0
string(5) "first" string(6) "second" string(5) "third" string(11) "penultimate" string(4) "last"