3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $sweet = array('a' => 'apple', 'b' => 'banana'); $fruits = array('sweet' => $sweet, 'sour' => 'lemon'); function test_print($item) { echo "holds $item\n"; } array_walk_recursive($fruits, 'test_print'); print_r(error_get_last());

preferences:
50.68 ms | 402 KiB | 5 Q