How to check multiple PHP versions available on Ubuntu?
In many cases, we may need to change the PHP version to the latest version. We might need to check available PHP versions on the server.
If we are in debian or ubuntu system, then it relatively easy. We can use the following command to check available PHP versions:
$ cd /etc/php $ ls -l // Output // 5.6 // 7.0 // 7.1 // 8.0