3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array(array(1=>2,3=>4),array(5=>6,7=>8)); foreach ($foo as $key => $value) { echo "{$key} => {$value}"; echo '<br />'; } ?>
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/vvrXB on line 4 0 => Array<br /> Notice: Array to string conversion in /in/vvrXB on line 4 1 => Array<br />
Output for 4.3.0 - 5.3.29
0 => Array<br />1 => Array<br />