3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(array(9,5,14) AS $key) $first[$key] = 1; foreach(array(8,15,23,12) AS $key) $second[$key] = 2; print_r($first); print_r($second);
Output for 4.3.0 - 7.1.0
Array ( [9] => 1 [5] => 1 [14] => 1 ) Array ( [8] => 2 [15] => 2 [23] => 2 [12] => 2 )