← All docs

hash_equals() — internals

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

hash_equals() — internals

Where it lives

Lowering notes

  • Lowers hash_equals(known, user) through the timing-safe runtime compare helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_hash_algos_list
  • __rt_hash_equals
  • __rt_hash_init

Signature summary

function hash_equals(string $known_string, string $user_string): bool

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references