call_user_func()
function call_user_func(callable $callback, ...$args): mixed
Calls a callback with the given arguments.
Parameters:
$callback(callable)...$args— variadic: collects excess arguments into$args.
Returns: mixed
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how call_user_func is implemented in the compiler, see the internals page.