3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['foo' => ['bar' => 'something']]; $arr2 = ['data' => ['bar' => 'something']]; array_push($arr1,$arr2); print_r($arr1);

preferences:
30.17 ms | 402 KiB | 5 Q