← All docs

long2ip() — internals

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

long2ip() — internals

Where it lives

Lowering notes

  • Lowers long2ip(value) through the IPv4 formatting runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_ip2long
  • __rt_long2ip

Signature summary

function long2ip(int $ip): string

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references