3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: text/plain'); $arr = [ ["thread", 4211], ["thread", 4210], ["thread", 4212], ["thread", 4207], ["thread", 4097], ["thread", 3993], ]; var_dump(array_column($arr, 1)); $arr = [ ['x' => "thread", 'y' => 4211], ['x' => "thread", 'y' => 4210], ['x' => "thread", 'y' => 4212], ['x' => "thread", 'y' => 4207], ['x' => "thread", 'y' => 4097], ['x' => "thread", 'y' => 3993], ]; var_dump(array_column($arr, 'y'));
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { [0]=> int(4211) [1]=> int(4210) [2]=> int(4212) [3]=> int(4207) [4]=> int(4097) [5]=> int(3993) } array(6) { [0]=> int(4211) [1]=> int(4210) [2]=> int(4212) [3]=> int(4207) [4]=> int(4097) [5]=> int(3993) }

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