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