3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1,2,3]; $arr2 = [4,5,6]; $arr3 = [7,8,9]; $total = [$arr1,$arr2,$arr3]; var_dump( $total ); $total[0] = $arr3; $total[1] = $arr1; $total[2] = $arr2; var_dump( $total );

preferences:
27.55 ms | 402 KiB | 5 Q