How to check PHP version on Ubuntu - LinuxConfig.org

After installing PHP or an entire LAMP server on Ubuntu Linux, there are a few ways you can check to see what version you're running at any time. This can help you stay up to date and develop web applications that adhere to newer coding standards and conventions, since PHP is still being developed.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-check-php-version-on-ubuntu

This is a useful summary on how to check php. It could be useful to give more context though on why and when to update php. updatephp dot com is really useful. It also has a test feature that can detect the PHP version on some sites. Also the process of migrating between different versions is discussed here quite well in the official PHP docs. Google “php appendices”