3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $r = array() ; $r[] = array() ; $r[0]['table'] = "userSessions" ; $r[0]['data'] = array('uid'=>12345) ; $r[1]['table'] = "userTable" ; $r[1]['data'] = array('mid'=>'112233') ; $r[1]['data']['test'] = 'something' ; var_dump($r) ;
based on Vahmq
Output for 5.6.0 - 7.3.0alpha1
array(2) { [0]=> array(2) { ["table"]=> string(12) "userSessions" ["data"]=> array(1) { ["uid"]=> int(12345) } } [1]=> array(2) { ["table"]=> string(9) "userTable" ["data"]=> array(2) { ["mid"]=> string(6) "112233" ["test"]=> string(9) "something" } } }