← All docs

strstr() — internals

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

strstr() — internals

Where it lives

Lowering notes

  • Lowers strstr(haystack, needle) by searching and returning the matching suffix.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function strstr(string $haystack, string $needle, bool $before_needle = false): string

What the type checker enforces

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

Eval interpreter (magician)

Cross-references