👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

php -v

The following bash command displays the current PHP version:

php -v


Here is an example of value returned:

$ php -v
PHP 7.2.24-0ubuntu0.18.04.6 (cli) (built: May 26 2020 13:09:11) ( NTS )

More