← All docs

call_user_func_array() — internals

Compiler internals for call_user_func_array(): lowering path, type checks, and runtime helpers.

call_user_func_array() — internals

Where it lives

Lowering notes

  • Rejects call_user_func* calls that escaped the dedicated EIR callback lowering path.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_array_product
  • __rt_array_sum

Signature summary

function call_user_func_array(callable $callback, array $args): mixed

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references