3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array['messi']['google'] = 2; $array['messi']['yahoo'] = 2; $array['ronaldo']['google'] = 1; $array['ronaldo']['yahoo'] = 1; foreach($array as $person => $searchEngineCounts) { echo $person."\n"; foreach($searchEngineCounts as $engine => $count) { echo $engine . ": " . $count . "\n"; } echo "\n"; }
Output for 4.3.0 - 7.1.0
messi google: 2 yahoo: 2 ronaldo google: 1 yahoo: 1