3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'id' => 1, 'channel_id' => 1, 'field_group' => 1, 'url_title' => 'the_very_first_entry', 'title' => 'The Very First Entry', 'fields' => array ( 0 => array ( 'label' => 'Enter Item Name:', 'type' => 'text', 'channel_data_id' => 1, 'value' => 'Item one', 'field_id' => 1 ), 1 => array ( 'label' => 'Enter Item Description', 'type' => 'textarea', 'channel_data_id' => 2, 'value' => 'Some long text blah blah', 'field_id' => 2 ) ) ); $field = array_pop($array); var_dump($field, $array);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(5) { ["label"]=> string(16) "Enter Item Name:" ["type"]=> string(4) "text" ["channel_data_id"]=> int(1) ["value"]=> string(8) "Item one" ["field_id"]=> int(1) } [1]=> array(5) { ["label"]=> string(22) "Enter Item Description" ["type"]=> string(8) "textarea" ["channel_data_id"]=> int(2) ["value"]=> string(24) "Some long text blah blah" ["field_id"]=> int(2) } } array(5) { ["id"]=> int(1) ["channel_id"]=> int(1) ["field_group"]=> int(1) ["url_title"]=> string(20) "the_very_first_entry" ["title"]=> string(20) "The Very First Entry" }

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:
165.06 ms | 407 KiB | 5 Q