3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = array( array( 'id' => 2135, 'extra' => array( 'jelou' => 'hi', 'first_name' => 'Albert' ), ), array( 'id' => 2145, 'extra' => array( 'jelou' => 'hio', 'first_name' => 'Alberto' ), ), array( 'id' => 2155, 'extra' => array( 'jelou' => 'hia', 'first_name' => 'Alberta' ), ) ); print_r($records); $first_names = array_column($records, 'jelou'); print_r($first_names);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [id] => 2135 [extra] => Array ( [jelou] => hi [first_name] => Albert ) ) [1] => Array ( [id] => 2145 [extra] => Array ( [jelou] => hio [first_name] => Alberto ) ) [2] => Array ( [id] => 2155 [extra] => Array ( [jelou] => hia [first_name] => Alberta ) ) ) Array ( )

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:
54.5 ms | 403 KiB | 8 Q