3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output=[]; $output[test('t1')] = test('t2'); function test($str){ echo $str,PHP_EOL; return rand(10, 100); }

preferences:
23.57 ms | 404 KiB | 5 Q