3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $my_array['index1']['index2'] = 'foo'; unset( $my_array['index1']['index2'] ); var_dump( $my_array );
based on 9dCoq
Output for 5.3.21 - 7.2.0
array(1) { ["index1"]=> array(0) { } }