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);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [hihi] => Array ( [one] => 14000 [three] => 16000 ) [huhu] => Array ( [one] => 69997 [three] => 77000 ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
31.71 ms | 406 KiB | 5 Q