3v4l.org

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

preferences:
49.13 ms | 402 KiB | 5 Q