← All docs

hash() — internals

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

hash() — internals

Where it lives

Lowering notes

  • Lowers hash(algo, data, binary?) through the shared runtime digest dispatcher.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_hash

Signature summary

function hash(string $algo, string $data, bool $binary = false): string

What the type checker enforces

  • Arity: takes 2–3 arguments (1 optional).

Eval interpreter (magician)

Cross-references