3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = array('something1', 'foo'); $array_2 = array('something3', 'bar'); $array_3 = array(); $array_4 = array('something1', 'foobar'); $array_5 = "not an array"; foreach([$array_1,$array_2,$array_3,$array_4,$array_5] AS $array) { $final = array_merge((array)$array,(array)$final); }; print_r($final);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $final in /in/u942D on line 9 Array ( [0] => not an array [1] => something1 [2] => foobar [3] => something3 [4] => bar [5] => something1 [6] => 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


preferences:
61.13 ms | 401 KiB | 8 Q