3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'A' => array(1, 2, 3, 4), 'B' => array(5, 6), 'C' => array('a', 'b', 'c')) function makeCombinations($array){ foreach($array as $value){makeCombinations($array) } }
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /in/6NVVQ on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_FUNCTION in /in/6NVVQ on line 4
Process exited with code 255.

preferences:
190.59 ms | 1395 KiB | 62 Q