← All docs

preg_split() — internals

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

preg_split() — internals

Where it lives

Lowering notes

  • Lowers preg_split(pattern, subject, limit?, flags?) through the regex split helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_preg_split

Signature summary

function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array

What the type checker enforces

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

Eval interpreter (magician)

Cross-references