3v4l.org

run code in 300+ PHP versions simultaneously
<?php $samples=array( array('page' => 'page1', 'name' => 'pagename1'), array('page' => 'page2', 'name' => 'pagename2'), array('page' => 'page3', 'name' => 'pagename3') ); $names = array_column($samples, array('name', 'page'), 'page'); print_r($names);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_column(): Argument #2 ($column_key) must be of type string|int|null, array given in /in/gpQY5:7 Stack trace: #0 /in/gpQY5(7): array_column(Array, Array, 'page') #1 {main} thrown in /in/gpQY5 on line 7
Process exited with code 255.

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:
48.92 ms | 401 KiB | 8 Q