← All docs

str_split() — internals

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

str_split() — internals

Where it lives

Lowering notes

  • Lowers str_split(string, length?) into the fixed-width string-array splitter.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_str_split

Signature summary

function str_split(string $string, int $length = 1): array

What the type checker enforces

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

Eval interpreter (magician)

Cross-references