3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filterA = array('blue', 'red', 'black'); $filterB = array('s', 'm', 'l'); $filterC = array('men', 'woman'); $result = []; foreach ($filterC as $a) { foreach ($filterB as $b) { foreach ($filterA as $c) { $result[] = "$a,$b,$c"; //$result[] = [$a, $b, $c]; } } } print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => men,s,blue [1] => men,s,red [2] => men,s,black [3] => men,m,blue [4] => men,m,red [5] => men,m,black [6] => men,l,blue [7] => men,l,red [8] => men,l,black [9] => woman,s,blue [10] => woman,s,red [11] => woman,s,black [12] => woman,m,blue [13] => woman,m,red [14] => woman,m,black [15] => woman,l,blue [16] => woman,l,red [17] => woman,l,black )

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