3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function hello() { $test = array( 'a' => function ($test) { echo 'hello'; } ); } } $t = new Test(); var_dump($t->hello());

preferences:
34.23 ms | 402 KiB | 5 Q