3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = array( array(array('test' => 11), array('test' => 12)), array(array('test' => 21), array('test' => 22)), ); foreach ($tmp as &$items) { $items[] = array(array('test' => 99)); } var_dump($tmp);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(3) { [0]=> array(1) { ["test"]=> int(11) } [1]=> array(1) { ["test"]=> int(12) } [2]=> array(1) { [0]=> array(1) { ["test"]=> int(99) } } } [1]=> &array(3) { [0]=> array(1) { ["test"]=> int(21) } [1]=> array(1) { ["test"]=> int(22) } [2]=> array(1) { [0]=> array(1) { ["test"]=> int(99) } } } }

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:
61.55 ms | 402 KiB | 8 Q