3v4l.org

run code in 300+ PHP versions simultaneously
<?php $master = array(); $arrColors = array('R', 'B', 'G' ,'Y'); $arrNumbers = array('1', '2', '3', '4'); foreach($arrColors as $color) { foreach($arrNumbers as $num) { array_push($master, $num); //$master += array($color => $num); //echo $color.' => '.$num; //echo "\n"; } array_push($master, $color); } print_r($master);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => R [5] => 1 [6] => 2 [7] => 3 [8] => 4 [9] => B [10] => 1 [11] => 2 [12] => 3 [13] => 4 [14] => G [15] => 1 [16] => 2 [17] => 3 [18] => 4 [19] => Y )

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:
39.42 ms | 401 KiB | 8 Q