3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( 'foo' => 80, 'bar' => 81, 'baz' => 82 ) ); $init = $arr[0]; $l = count($init); while(count($arr) < 4) { foreach($init as &$prop) { $prop += l; } $arr[] = $init; } var_dump($arr);

preferences:
46.93 ms | 402 KiB | 5 Q