- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21
- Parse error: syntax error, unexpected '}' in /in/g9G9P on line 5
Process exited with code 255.
<?php
$nums = array(1,2,3,4,5,6);
$even = array_reduce($nums, function($acum, $num) {if($num % 2 == 0) {$acum[] = $num}}, array());