<?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/Hk0bM on line 8
Process exited with code 255.
preferences:
225.75 ms | 1399 KiB | 66 Q