← All docs

bin2hex() — internals

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

bin2hex() — internals

Where it lives

Lowering notes

  • Lowers a one-argument string builtin that directly delegates to a runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_htmlspecialchars

Signature summary

function bin2hex(string $string): string

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references