Question #162   Submitted by Answiki on 10/27/2021 at 09:29:01 AM UTC

Find my PHP version?

Answer   Submitted by Answiki on 10/27/2021 at 09:30:09 AM UTC

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.
11 events in history
Answer by Answiki on 10/27/2021 at 09:30:09 AM

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.
Question by Answiki 10/27/2021 at 09:29:28 AM
How to know the PHP version?
Question by Answiki 10/27/2021 at 09:29:24 AM
How to know my PHP version?
Question by Answiki 10/27/2021 at 09:29:15 AM
How to find the PHP version?
Question by Answiki 10/27/2021 at 09:29:10 AM
How to check the PHP version?
Question by Answiki 10/27/2021 at 09:29:06 AM
Get my PHP version?
Question by Answiki 10/27/2021 at 09:29:01 AM
Find my PHP version?
Question by Answiki 10/27/2021 at 09:28:55 AM
Check my PHP version?
Answer by Answiki on 09/23/2020 at 05:14:26 PM

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.

Answer by Answiki on 09/23/2020 at 05:10:41 PM

Command line : the following command displays the current PHP version :

$ php -v


PHP function : the PHP function phpversion() returns a string with the current version.


PHP info : the PHP function phpinfo() outputs information about PHP's configuration and versions.

Question by Answiki 09/23/2020 at 05:05:48 PM
How to get my PHP version?
# ID Query URL Count

Icons proudly provided by Friconix.