I wonder if there is any faster way of finding differences between two multidimensional arrays. By differences I mean (from perspective of `array1`) 

how many rows are in `array1` and in `array2` 

[![enter image description here](https://i.stack.imgur.com/Y3hRr.png)](https://i.stack.imgur.com/Y3hRr.png)  

(source: [matematyka.pl](https://www.matematyka.pl/public/zbiory/iloczyn.png)) 

how many rows are in `array1` and they are not in `array2`
![enter image description here](https://i.stack.imgur.com/Hlx2U.png)

and vice versa how many rows are in `array2` and are not in `array1`.

Solution I tried is iterate through both arrays and compare columns. But the fact that those arrays have about `7 columns` it made it pretty annoying.

Is there any use for functions like `array_diff` or something like this?