3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( 'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3', 'key4' => 'value4', 'key5' => 'value5' ); foreach ($array as $what => $what) { echo $what, '<br>'; }
Output for 4.3.0 - 7.2.0
key1<br>key2<br>key3<br>key4<br>key5<br>