3v4l.org

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

preferences:
33.23 ms | 402 KiB | 5 Q