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:
38.16 ms | 404 KiB | 5 Q