3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $submenu = array("hello", "world");  $key = 0; $menu[$key]['submenu'] = $submenu;    print_r($menu[$key]['submenu']);
based on 7sgP3
Output for 5.3.0 - 5.4.32
<?php $submenu = array("hello", "world");  $key = 0; $menu[$key]['submenu'] = $submenu;    print_r($menu[$key]['submenu']);