← All docs

hash_init() — internals

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

hash_init() — internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected hash prelude.

Semantic descriptor

Shared contract implemented by an injected elephc-PHP prelude.

EIR and runtime boundary

Implemented by an injected elephc-PHP prelude.

Signature summary

function hash_init(string $algo): HashContext

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references