3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 'A' => array(1, 2, 3, 4), 'B' => array(5, 6), 'C' => array('a', 'b', 'c')); $values=""; $val = $array(); function makeCombinations($array,$values){ foreach($array as $value) { if(is_array($value)) makeCombinations($value,$values); else $val[]=$value } } makeCombinations($array,$values); //echo $values;
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '}' in /in/I9opD on line 12
Process exited with code 255.