3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'data' => [ 'nid' => 1, 'vid' => 1, 'type' => 'article', 'field_new' => [ 'und' => [ [ 'value' => 11111 ] ] ] ] ], [ 'data' => [ 'nid' => 2, 'vid' => 2, 'type' => 'article', 'field_new' => [ 'und' => [ [ 'value' => 33333 ] ] ] ] ] ]; foreach ($array as ['data' => &$data]) { $data['value'] = $data['field_new']['und'][0]['value']; unset($data['field_new']); } var_export($array);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'data' => array ( 'nid' => 1, 'vid' => 1, 'type' => 'article', 'value' => 11111, ), ), 1 => array ( 'data' => array ( 'nid' => 2, 'vid' => 2, 'type' => 'article', 'value' => 33333, ), ), )

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