← All docs

str_contains() — internals

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

str_contains() — internals

Where it lives

Lowering notes

  • Lowers str_contains() through strpos() and converts found positions to bool.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_strpos

Signature summary

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

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references