3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = []; $foo[] = ['id' => 11, 'abc' => 'def', 'ghi' => 'jkl']; $foo[] = ['id' => 22, 'def' => 'abc', 'jkl' => 'ghi']; var_dump(array_column($foo, NULL, 'id'));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [11]=> array(3) { ["id"]=> int(11) ["abc"]=> string(3) "def" ["ghi"]=> string(3) "jkl" } [22]=> array(3) { ["id"]=> int(22) ["def"]=> string(3) "abc" ["jkl"]=> string(3) "ghi" } }

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