Home php How to Check Current PHP Version in Ubuntu?

How to Check Current PHP Version in Ubuntu?

by Shahriar Sagor

Hello Dev, Today now in this detailed guide i will cover how to check the installed php version in ubuntu. We can also see how to check current php version in ubuntu. So here I’m going to show you about the check php version command line linux. Now I explained this simply about ubuntu check the php versions installed.

If you want to know your current installed PHP version in ubuntu, Then here I will help you how to check it. Also we can use php -v command to check the current running PHP version in ubuntu. let’s see an example command with output:

We can use this command with our ubuntu 21.10, ubuntu 21.04, ubuntu 20.04, ubuntu 18.04 and ubuntu 16.04 any server.

Check Current Installed PHP Version in Ubuntu

Command:

php -v
PHP Version in Ubuntu

Check All Installed PHP Version in Ubuntu

Command:

update-alternatives --list php
PHP Version in Ubuntu

Read Also: How To Create Login And Registration Using Ajax ?

Thanks for read. I hope it help you. For more you can follow us on facebook

close

You may also like