3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'foo' => 'bar', 'num' => 5, 'arr' => array( 'bar' => 'baz' ) ); foreach ($arr as $k => $v) { echo "Key: $k"; var_dump($v); }
Output for 4.3.0 - 7.1.0
Key: foostring(3) "bar" Key: numint(5) Key: arrarray(1) { ["bar"]=> string(3) "baz" }