3v4l.org

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

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