3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ['id' => 12, 'name' => 'Martin', 'cellphone' => '0019949437'], ['id' => 15, 'name' => 'Alex', 'cellphone' => "00183847394"] ]; function unsetCellPhone($u){ unset($u['cellphone']); return $u; } $res = array_map("unsetCellPhone", $arr); print_r($res);

preferences:
27 ms | 405 KiB | 5 Q