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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
key1a = key7b, key1a = key8b, key1a = key9b, key2a = key7b, key2a = key8b, key2a = key9b, key3a = key7b, key3a = key8b, key3a = key9b,