👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.
How to get my PHP version?
There are several ways to get the PHP version installed:
- Command line : the command
php -v
displays the current PHP version. - PHP function : the PHP function
phpversion()
returns a string with the current PHP version. - PHP info : the PHP function
phpinfo()
outputs information about PHP's configuration and versions.