← All docs

sha1() — internals

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

sha1() — internals

Where it lives

Lowering notes

  • Lowers sha1(data, binary?) through the shared crypto-backed runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_hash
  • __rt_sha1

Signature summary

function sha1(string $string, bool $binary = false): string

What the type checker enforces

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

Eval interpreter (magician)

Cross-references