3v4l.org

run code in 500+ PHP versions simultaneously
<?php #[\NoDiscard] function test(): int { return 0; } if (random_int(1,1)) { $fn = 'call_user_func'; } else { $fn = 'nope'; } $fn('test');
Output for 8.2.0 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.28, 8.5.0 - 8.5.11

preferences:
14.31 ms | 1163 KiB | 6 Q