3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $images['caravan-1'] = array(); $img = array(); $img['name'] = 'name'; array_push($images['caravan-1'], $img); var_dump($images);
Output for 4.3.0 - 7.1.0
array(1) { ["caravan-1"]=> array(1) { [0]=> array(1) { ["name"]=> string(4) "name" } } }