3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = $arr = Array ( Array ( "name" => "Size", "value" => "Large", "id" => "1201" ), Array ( "name" => "Size", "value" => "Small", "id" => "1203" ), Array ( "name" => "Size", "value" => "Medium", "id" => "1204" ), Array ( "name" => "Size", "value" => "Large", "id" => "1205" ), Array ( "name" => "Size", "value" => "Large", "id" => "1206" ), Array ( "name" => "Size", "value" => "Large", "id" => "1207" ) ); $arr = array_values(array_column($arr, NULL, "value")); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(3) { ["name"]=> string(4) "Size" ["value"]=> string(5) "Large" ["id"]=> string(4) "1207" } [1]=> array(3) { ["name"]=> string(4) "Size" ["value"]=> string(5) "Small" ["id"]=> string(4) "1203" } [2]=> array(3) { ["name"]=> string(4) "Size" ["value"]=> string(6) "Medium" ["id"]=> string(4) "1204" } }

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:
76.24 ms | 406 KiB | 5 Q