3v4l.org

run code in 500+ PHP versions simultaneously
<?php $all_array = [ ["id" => 1, "value" => 111], ["id" => 2, "value" => 222], ["id" => 3, "value" => 333], ["id" => 4, "value" => 111], ]; $array = array_column($all_array,null,'value'); $array = array_values($array); //if the array is to be re-indexed var_dump($array);
Output for rfc.property-hooks, git.master, git.master_jit
array(3) { [0]=> array(2) { ["id"]=> int(4) ["value"]=> int(111) } [1]=> array(2) { ["id"]=> int(2) ["value"]=> int(222) } [2]=> array(2) { ["id"]=> int(3) ["value"]=> int(333) } }

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:
53.99 ms | 1330 KiB | 4 Q