3v4l.org

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

preferences:
57.21 ms | 700 KiB | 5 Q