3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pero = array('asd' => array('a' =>'erp', 'b' => 'bb'), 'aa' => array('b' => 'bb2','a' =>'erp2')); $res = array(); foreach($pero as $val) { unset($val['a']); $res[] = $val; } print_r($pero); print_r($res); ?>
Output for 4.3.0 - 7.1.0
Array ( [asd] => Array ( [a] => erp [b] => bb ) [aa] => Array ( [b] => bb2 [a] => erp2 ) ) Array ( [0] => Array ( [b] => bb ) [1] => Array ( [b] => bb2 ) )