3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 0 => Array ( 'name' => 'test1', 'value' => 'value1' ), 1 => Array ( 'name' => 'test2', 'value' => 'value2' ) ); echo "До:\n"; print_r($array); $array = array_column($array, 'value', 'name'); echo "\nПосле:\n"; print_r($array); ?>
Output for git.master, git.master_jit, rfc.property-hooks
До: Array ( [0] => Array ( [name] => test1 [value] => value1 ) [1] => Array ( [name] => test2 [value] => value2 ) ) После: Array ( [test1] => value1 [test2] => value2 )

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:
72.79 ms | 402 KiB | 8 Q