Question #98   Submitted by Answiki on 06/19/2020 at 05:24:17 PM UTC

How to know my PHP version in command line?

Answer   Submitted by Answiki on 10/26/2021 at 11:41:30 AM UTC

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 )

8 events in history
Answer by Answiki on 10/26/2021 at 11:41:30 AM

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 )

Answer by Answiki on 10/12/2021 at 06:16:11 PM

The following bash command displays the current PHP version:

php -v

Question by Answiki 09/11/2020 at 06:14:01 AM
How to get PHP version in command line?
Answer by Answiki on 06/19/2020 at 05:24:33 PM

The following command displays the current PHP version:

php -v

Question by Answiki 06/19/2020 at 05:24:26 PM
How get PHP version in command line? replaced by #100.
Question by Answiki 06/19/2020 at 05:24:17 PM
How to know my PHP version in command line?
Answer by Answiki on 06/19/2020 at 05:23:58 PM

The following command displays the current PHP version:

php -v

Question by Answiki 06/19/2020 at 05:23:26 PM
How to check my PHP version in command line?
# ID Query URL Count

Icons proudly provided by Friconix.