<?php
$arr1 = array(5, 3, 9, 11, 6, 15);
$arr2 = array(11, 20, 1, 3, 8);
foreach($arr1 as $a) {
$func = function ($x, $a) { return $x < $a; }
$max = max(array_filter($arr2, $func));
echo $max;
}
- Output for 5.4.0 - 5.4.29
- Parse error: syntax error, unexpected '$max' (T_VARIABLE) in /in/JPog9 on line 8
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected T_VARIABLE in /in/JPog9 on line 8
Process exited with code 255.
preferences:
203.21 ms | 1399 KiB | 66 Q