PHP Array kartesische Produkt

In Laravel you have this nice helper
Arr::crossJoin();
https://laravel.com/docs/8.x/helpers#method-array-crossjoin
Also on Collections
https://laravel.com/docs/8.x/collections#method-crossjoin
Index out of bounds