3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( Array ( 'record_num' => 18152, 'title' => 'Title of post ' ), Array ( 'record_num' => 18150, 'title' => 'Title of post 2' ), Array ( 'record_num' => 18134, 'title' => 'Title of post 3' ), Array ( 'record_num' => 18134, 'title' => 'Title of post 3' ) ); $arr = array_values(array_column($arr, null, 'record_num')); Var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(2) { ["record_num"]=> int(18152) ["title"]=> string(14) "Title of post " } [1]=> array(2) { ["record_num"]=> int(18150) ["title"]=> string(15) "Title of post 2" } [2]=> array(2) { ["record_num"]=> int(18134) ["title"]=> string(15) "Title of post 3" } }

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