3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $values = array( array('key' => 'asdf0', 'value' => '123'), array('key' => 'asdf1', 'value' => '123'), array('key' => 'asdf2', 'value' => '123'), array('key' => 'asdf3', 'value' => '123'), array('key' => 'asdf4', 'value' => '123'), array('key' => 'asdf5', 'value' => '123'), array('key' => 'asdf6', 'value' => '123'), array('key' => 'asdf7', 'value' => '123'), array('key' => 'asdf8', 'value' => '123'), array('key' => 'asdf9', 'value' => '123'), array('key' => 'asdf10', 'value' => '123'), array('key' => 'asdf11', 'value' => '123'), ); $result = array(); foreach($values as $value) { $result[$value['key']] = json_decode($value['value']); }
based on nMRVQ
Output for 5.3.18 - 7.2.0