3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); function test_print($item, $key) { if ($item != "orange") echo "$item \n"; } array_walk($fruits, 'test_print'); ?>

preferences:
37.73 ms | 402 KiB | 5 Q