3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "arrays" => [ "hihi" => [ "one" => "14000", "two" => "15000", "three" => "16000" ], "huhu" => [ "one" => "69997", "two" => "72000", "three" => "77000" ] ]]; $newArray = array_map(function($v) { unset($v["two"]); return $v; }, $array["arrays"]); print_r($newArray);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
226.43 ms | 3392 KiB | 12 Q