3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = ['a','b','c']; $array_main[] = &$my_array; $array_main[] = [1, 2]; $array_main[] = [4, 5]; $array_main[] = ['etc', 'bla']; $iterations = count($array_main); for ($i = 1; $i < $iterations; $i++) { $array_main[0] = array_merge( $array_main[0], $array_main[$i] ); } echo '<pre>'; print_r($my_array);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => a [1] => b [2] => c [3] => 1 [4] => 2 [5] => 4 [6] => 5 [7] => etc [8] => bla )

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:
102.02 ms | 405 KiB | 5 Q