← All docs

imagefilter() — internals

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

imagefilter() — internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected image 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 imagefilter(mixed $image, int $filter, int $arg1 = 0, int $arg2 = 0, int $arg3 = 0, int $arg4 = 0): bool

What the type checker enforces

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

Eval interpreter (magician)

Not callable from eval’d code — the magician interpreter has no entry for this builtin.

Cross-references