3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array ( 'a' => array ( 'banner_id' => '4', 'viewsCount' => '33', 'date' => '2015-06-19' ) ); $array2 = array ( 'a' => array ( 'banner_id' => '4', 'clicksCount' => '5', 'date' => '2015-06-19' ) ); print_r (array_merge_recursive($array1, $array2));
based on O9INd
Output for 4.3.0 - 7.2.0
Array ( [a] => Array ( [banner_id] => Array ( [0] => 4 [1] => 4 ) [viewsCount] => 33 [date] => Array ( [0] => 2015-06-19 [1] => 2015-06-19 ) [clicksCount] => 5 ) )