← All docs

strrpos() — internals

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

strrpos() — internals

Where it lives

Lowering notes

  • Lowers strpos()/strrpos() and boxes position-or-false results as Mixed.

Runtime helpers

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

Signature summary

function strrpos(string $haystack, string $needle, int $offset = 0): mixed

What the type checker enforces

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

Eval interpreter (magician)

Cross-references