run code in 300+ PHP versions simultaneously
<?php $ar = ['a','b','c']; $arr =& $ar; // both are now references foreach ($arr as $dummy) { $arr []= 'foo'; } var_dump($arr);
Output for git.master, git.master_jit, rfc.literals
array(6) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" [3]=> string(3) "foo" [4]=> string(3) "foo" [5]=> string(3) "foo" }

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

13.06 ms | 409 KiB | 5 Q