← All docs

simplexml_import_dom() - internals

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

simplexml_import_dom() - 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_import_dom(object $node, ?string $class_name = 'SimpleXMLElement'): ?SimpleXMLElement

What the type checker enforces

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

Eval interpreter (magician)

Cross-references