3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); function say() { echo 'Dick'; } array_walk($fruits, 'say');

preferences:
32.89 ms | 402 KiB | 5 Q