← All docs

phpversion()

Returns the current PHP version information.

phpversion()

function phpversion(): string

Returns the current PHP version information.

Parameters: none.

Returns: string

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how phpversion is implemented in the compiler, see the internals page.