3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1 = array( 'key1a'=>'value', 'key2a'=>'value', 'key3a'=>'value' ); $arr2 = array( 'key7b'=>'value', 'key8b'=>'value', 'key9b'=>'value' ); foreach($arr1 as $i => $val) { foreach($arr2 as $j => $val2) { echo $i,$j; } }
Output for 4.3.0 - 7.1.0
key1akey7bkey1akey8bkey1akey9bkey2akey7bkey2akey8bkey2akey9bkey3akey7bkey3akey8bkey3akey9b