3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_array=array(array('name' => 'michi'),array('name' => 'stefan'),array('name' => 'eva')); var_dump($my_array); unset ($my_array[1]); var_dump($my_array);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> array(1) { ["name"]=> string(5) "michi" } [1]=> array(1) { ["name"]=> string(6) "stefan" } [2]=> array(1) { ["name"]=> string(3) "eva" } } array(2) { [0]=> array(1) { ["name"]=> string(5) "michi" } [2]=> array(1) { ["name"]=> string(3) "eva" } }