phpversion

string phpversion(void) 

Displays PHP version information.

Returns:

Current PHP version

Description:

Outputs the current version of PHP used.

Version:

Existing since version 4.0

Example:

Display current PHP version
echo "This server is running PHP, version ", phpversion(); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.