🌐
PHP.Watch
php.watch › versions
PHP Versions • PHP.Watch
PHP 8.2 is the latest PHP version which brings readonly classes, DNF types, null, false, and true types, sensitive parameter redaction support, a new random extension, and several new features along with a few deprecations.
🌐
PHP
php.net › supported-versions.php
PHP: Supported Versions
Each release branch of PHP is fully supported for two years from its initial stable release.
People also ask

How many versions of PHP are there?
There have been multiple major versions: 1.0, 2.0, 3.0, 4.0, 5.x, 7.x, and 8.x. Each major version includes minor releases and updates.
🌐
cloudways.com
cloudways.com › home › learn php tutorials, tips and guides › php version history: brief timeline of the world’s most used backend language
PHP Version History: Brief Timeline of World’s Most Used Back-end ...
Which version of PHP is the best?
As of 2026, PHP 8.5 is the latest stable release and the recommended version for new projects. It offers improved performance, enhanced type safety, better debugging tools, and modern language features. If your hosting provider does not yet support PHP 8.5, PHP 8.4 remains a stable and production-ready option.
🌐
cloudways.com
cloudways.com › home › learn php tutorials, tips and guides › php version history: brief timeline of the world’s most used backend language
PHP Version History: Brief Timeline of World’s Most Used Back-end ...
How do I check my current PHP version?
You can check your PHP version by running php -v in your server terminal, using phpinfo() in a PHP file on your server, or checking your hosting control panel (e.g., cPanel, Plesk, Cloudways).
🌐
cloudways.com
cloudways.com › home › learn php tutorials, tips and guides › php version history: brief timeline of the world’s most used backend language
PHP Version History: Brief Timeline of World’s Most Used Back-end ...
🌐
Zend
zend.com › resources › php-versions
PHP Versions: Performance, Security, and Feature Comparisons | Zend
The table below gives the release dates and support end of life dates for PHP versions, including the most current PHP version and supported PHP versions, which include PHP 8.2, PHP 8.3, PHP 8.4, and PHP 8.5. We didn't include the 4.x versions ...
🌐
Cloudways
cloudways.com › home › learn php tutorials, tips and guides › php version history: brief timeline of the world’s most used backend language
PHP Version History: Brief Timeline of World’s Most Used Back-end Language [INFOGRAPHICS]
1 month ago - ✓ Switch PHP versions in 1 click ✓ Auto-test compatibility with your codebase ✓ Free downgrade protection for legacy apps ✓ Security patches for older PHP versions ... This timeline lists all major PHP versions, including PHP 8.4 and 8.5, ...
🌐
End of Life Date
endoflife.date › php
PHP | endoflife.date
2 weeks ago - More information is available on the PHP website. You should be running one of the supported release numbers listed above in the rightmost column. ... You can submit an improvement to this page on GitHub . This page has also a corresponding Talk Page 💬. A JSON version of this page is available ...
scripting language focused on web development
PHP is a general-purpose scripting language geared towards web development. It was created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995. The PHP reference implementation is now produced by … Wikipedia
Factsheet
Designed by Rasmus Lerdorf
Developer The PHP Development Team, Zend Technologies, PHP Foundation
Factsheet
Designed by Rasmus Lerdorf
Developer The PHP Development Team, Zend Technologies, PHP Foundation
🌐
Wikipedia
en.wikipedia.org › wiki › PHP
PHP - Wikipedia
5 days ago - PHP 5.1 and PHP 5.2 were released the following years, adding smaller improvements and new features, such as the PHP Data Objects (PDO) extension (which defines a lightweight and consistent interface for accessing databases) In 2008, PHP 5.x ...
🌐
Liquid Web
liquidweb.com › home › latest php versions: the ultimate guide
Current PHP Version 8.5 and Version History | Nexcess
January 2, 2026 - Additionally, for quick access to the PHP version you can use the phpversion() function to simply return the active PHP version used by the server. The WordPress administrator dashboard has a site health tool (under Tools -> Site Health) that details the server configuration on which the site is installed. Listed here is the installed PHP version.
Find elsewhere
🌐
PHP.Watch
php.watch › api
PHP.Watch API for PHP Versions, Usage, RFC, and Changes • PHP.Watch
PHP Versions API provides a list of PHP versions (such as 7.4, 8.2) along with their important information and current status.
🌐
CyberPanel
cyberpanel.net › blog › php-version-history
PHP Version History: Over The Years till 2026
February 2, 2026 - Its user-friendly structure has made it a favorite among developers. The PHP version history that spans from PHP 1.0 to PHP 8.x, it remains the most popular choice for web development.
🌐
Nexcess
nexcess.net › home › latest php versions: the ultimate guide
Latest PHP versions: The ultimate guide
June 4, 2025 - While originally planned, PHP 6 was abandoned and the release following PHP5.x continued with PHP 7.x. This jump in the version number was largely to prevent confusion when discussing the abandoned PHP 6 as compared to the to-be-release version following PHP 5.6. For an exhaustive list of changes, see the PHP 5.x changelog, the PHP 7.x changelog, and the PHP 8.x changelog.
Top answer
1 of 9
108

I use the following command to view installed PHP versions in Ubuntu:

sudo update-alternatives --list php

Second way go to php directory where all PHP version configuration file stored:

cd /etc/php 
dir 

Output:

 > 5.6  7.0  7.1
2 of 9
40

Since you have a Linux environment, you can run this on your console:

locate bin/php

And then for anything that looks like a PHP binary, get the version. The output for me for the above is:

/home/xx/Development/Personal/Project1/webapp/bin/phpunit
/home/xx/Development/Personal/Project1/webapp-backup/vendor/bin/phpunit
/home/xx/Development/Personal/Project2/app/vendor/bin/phpunit
/home/xx/php-threaded/bin/php
/home/xx/php-threaded/bin/php-cgi
/home/xx/php-threaded/bin/php-config
/home/xx/php-threaded/bin/phpize
/usr/bin/php
/usr/bin/php5
/usr/local/bin/php-cgi
/usr/local/bin/php-config
/usr/local/bin/php53
/usr/local/bin/phpize
/usr/sbin/php5dismod
/usr/sbin/php5enmod
/usr/sbin/php5query

Out of those, there are a few that look like PHP binaries. So let's get the version for each:

/home/xx/php-threaded/bin/php -v
/usr/bin/php -v
/usr/bin/php5 -v
/usr/local/bin/php53 -v

That will give you the versions of PHP you have installed.

I wouldn't bother deleting an old version, it might remove files that will stop things working. You can just configure the console version, or the Apache version, to use the version you want.


In answer to your supplementary question: it seems that you've followed the instructions here to add an unofficial repo to your version of Ubuntu, since the standard repo does not support 5.5.

We discovered together that the way to get it working was first to upgrade Apache from 2.2 to 2.4:

sudo apt-get upgrade apache2

It should be noted that this can cause some vhost repair to be required, as some Apache directives changed in this version. Once you have done that, you can get the new version of mod_php:

sudo apt-get install libapache2-mod-php5
🌐
GeeksforGeeks
geeksforgeeks.org › php › php-versions
PHP Versions - GeeksforGeeks
July 23, 2025 - Security: Use actively supported versions only. Performance: PHP 7+ significantly outperforms earlier versions.
🌐
CloudLinux
cloudlinux.zendesk.com › hc › en-us › articles › 4414748358930-List-of-supported-PHP-versions
List of supported PHP versions – CloudLinux
2 weeks ago - The new PHP versions are constantly added as soon as they become stable at php.net. Here is the list of currently supported PHP versions:
🌐
Bacancy Technology
bacancytechnology.com › bacancy technology › blog › php
PHP Version History: A Brief Look At The PHP Journey
December 18, 2024 - Discover the complete PHP Version History, from its origins to the latest releases. Explore their features, updates, and key milestones in the PHP journey.
🌐
ICDSoft
icdsoft.com › support › knowledge base › php › php version
Supported PHP Versions and Handlers Guide
You can view or change the default PHP version for php.cli for your account via the PHP CLI version subsection of the hosting Control Panel > PHP Settings section. A list showing the paths to the command line PHP binary files for all PHP versions supported for your account are available in ...
🌐
PHP.Watch
php.watch › versions › 8.3 › releases
PHP 8.3 releases, Docker images, source code downloads, and Windows binary downloads
PHP 8.3 release list, Docker images, source code downloads, Windows binary downloads, changelogs, commit lists, and more.
🌐
GitHub
github.com › php › php-src › releases
Releases · php/php-src
All PHP 8.5 users are encouraged to upgrade to this version. For source downloads of PHP 8.5.2 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.
Author   php