3v4l.org

run code in 300+ PHP versions simultaneously
<?php $table_array = array(); $result = array('hi', 'hello', 'there'); array_walk($result, function(&$row, $my) { //printf('%s ', $row); $index = &$row; $my[$index] = array(); }); var_dump($table_array);

preferences:
36.02 ms | 402 KiB | 5 Q