3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(array_map(function ($x, $y) { if ($x % 2) { return ['elems' => [$x, $y]]; } }, [1, 2, 3], ['a', 'b', 'c']));

preferences:
50.59 ms | 402 KiB | 5 Q