HF RL Explorer

Recursive Array Diff in PHP

Recursive Array Diff in PHP: a task in Terminal-Lego-15k (Harbor dataset). Implement a PHP function that performs a recursive diff of two multidimensional arrays. Unlike PHP's built-in array diff() which only works on single-dimensional arrays, your implementation must handle nested arrays of…

The task

Implement a PHP function that performs a **recursive diff** of two multidimensional arrays. Unlike PHP's built-in `array_diff()` which only works on single-dimensional arrays, your implementation must handle nested arrays of arbitrary depth.

Part of PrimeIntellect/Terminal-Lego-15k.