3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('1' => 1, '2' => '2', '3'=>3); foreach($array as $val => $key) { echo 'foreach'; } echo $key;
based on 0kHvq
Output for 4.3.0 - 7.1.0
foreachforeachforeach3