← All docs

simplexml_load_string() - internals

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

simplexml_load_string() - internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected xml prelude.

Semantic descriptor

Shared contract implemented by an injected elephc-PHP prelude.

EIR and runtime boundary

Implemented by an injected elephc-PHP prelude.

Signature summary

function simplexml_load_string(string $data, ?string $class_name = 'SimpleXMLElement', int $options = 0, string $namespace_or_prefix = '', bool $is_prefix = false): SimpleXMLElement|false

What the type checker enforces

  • Arity: takes 1–5 arguments (4 optional).

Eval interpreter (magician)

Cross-references