3v4l.org

run code in 300+ PHP versions simultaneously
<?php $getvals = [ [ "value" => "150mm", "label" => "150mm", ], [ "value" => "150mm", "label" => "150mm", ], [ "value" => "150mm", "label" => "150mm", ], [ "value" => "150mm", "label" => "150mm", ], [ "value" => "125mm", "label" => "125mm", ], [ "value" => "125mm", "label" => "125mm", ], ]; $takens = array_values(array_column(array_map(function ($a) { return array_diff_key($a, ['label' => '']); }, $getvals), null, 'value')); var_dump($takens); // The output is below
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(1) { ["value"]=> string(5) "150mm" } [1]=> array(1) { ["value"]=> string(5) "125mm" } }

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:
170.49 ms | 405 KiB | 5 Q