3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $objs = json_decode('"obj":{"a":{"key":"a", value:2}, "b":{"key":"b", value:3}}', true); var_dump($objs); $objs = array_column($objs, null, "key"); $objs['a']['value'] = 5; var_dump($objs);
based on 7tJl0

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
NULL Warning: array_column() expects parameter 1 to be array, null given in /in/fvZ8pu on line 5 array(1) { ["a"]=> array(1) { ["value"]=> int(5) } }

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