3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array("thing one", "thing two", "thing three"); echo implode(', ', array_walk($list, function($v, $k) { return $k + 1 . ". $v"; }));

preferences:
52.06 ms | 402 KiB | 5 Q