← All docs

sscanf() — internals

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

sscanf() — internals

Where it lives

Lowering notes

  • Lowers sscanf(string, format) into the shared scanner helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_sscanf
  • __rt_str_split

Signature summary

function sscanf(string $string, string $format, ...$vars): array

What the type checker enforces

  • Arity: takes exactly 2 arguments.
  • Variadic: collects excess arguments into $vars.

Eval interpreter (magician)

Cross-references