← All docs

str_starts_with() — internals

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

str_starts_with() — internals

Where it lives

Lowering notes

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

Runtime helpers

The following runtime helpers are referenced:

  • __rt_explode

Signature summary

function str_starts_with(string $haystack, string $needle): bool

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references