All PHP 7.x versions are now EOL
PHP 7.4, the last version of PHP 7.x series, reached its End-of-Life date today. This essentially means that there will be no bug or security fixes made to any of the PHP 7 versions.
PHP 7.0.0, the first of the PHP 7.x series was released back in 2015 December, with several major improvements to the language. PHP 7.0 is the version that brought scalar types (string
, int
, float
, etc) to PHP, along with return types support. It also added support for Abstract Syntax Tree (AST), and removed a lot of deprecated and outdated functionality (such as the mysql
extension).
Some of the major feature milestones in PHP 7.x series include:
- PHP 7.1 in 2016 with Nullable types and
void
return type - PHP 7.2 in 2017 with
object
type andSodium
extension in core - PHP 7.3 in 2018 with improved Heredoc and Nowdoc support
- PHP 7.4 in 2019 with typed properties and LSP improvements
Typically, each major PHP version (7.3, 7.4, 8.0, etc) receive two years of active support, followed by one year of security support. PHP 7.4 enjoyed active support from 2019 to the end of 2021. PHP 7.4's one year of security support ends today.
All PHP applications that run on any PHP 5 or 7 versions are strongly recommended to upgrade the PHP 8. There are several significant changes between PHP 7.4 and PHP 8.0, but a comprehensive and in-depth list of changes in PHP 8.0 are available on PHP.Watch.
It might make more sense to upgrade to PHP 8.1, or upcoming PHP 8.2 (scheduled for 8th of December) because 8.1 and 8.2 are more recent, and have a relatively small number of major syntax and feature changes. Further, PHP 8.0 no longer receives active support since 26th of this month.
PHP 7.4 Usage Share Remains High
Despite reaching EOL today, PHP 7.4 is still the PHP version with highest usage share, as evident from publicly available usage statistics.
Packagist.org and WordPress.org publish the PHP version statistics reported by Composer and WordPress installations. Both of them show that PHP 7.x versions still enjoy an overwhelming majority of usage share. PHP 7.4 in particular is used by more than 50% of all Composer projects and WordPress installations.
The fact that PHP 7 is still the major PHP version by usage share is an alarming statistic because unless these applications receive Long-term support, they are practically vulnerable applications in the event a vulnerability is discovered that affects these EOL versions.
PHP 7.4 Long-Term Support
Although it is highly recommended to upgrade to PHP 8 for its new features, performance improvements, and security improvements, the truth is that there are PHP applications that the upgrade cannot be justified or even feasible.
Ubuntu 20.04 is a Long-term supported operating system that provides PHP 7.4 in its default repositories. The current LTS version, Ubuntu 22.04 has PHP 8.0. For Debian/Ubuntu and other Linux operating systems derived from them, using Ubuntu 20.04 is an easy and costless way to obtain long-term support for PHP 7.4. Ubuntu 20.04 receives hardware support and maintenance support until 2025, and extended security maintenance as part of its ESM offering.
Red Hat family of operating systems also offer PHP 7.4 in default repositories.
Note that not all PHP security fixes get back-ported to LTS operating system repositories.
PHP 7 Thanks ???
PHP 7 was fantastic! It brought several features that set the trajectory for the modern and fast programming language PHP today is.
From PHP.Watch, thank you to all those who contributed to PHP 7. You are awesome!
The above is the detailed content of All PHP 7.x versions are now EOL. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

The enumeration function in PHP8.1 enhances the clarity and type safety of the code by defining named constants. 1) Enumerations can be integers, strings or objects, improving code readability and type safety. 2) Enumeration is based on class and supports object-oriented features such as traversal and reflection. 3) Enumeration can be used for comparison and assignment to ensure type safety. 4) Enumeration supports adding methods to implement complex logic. 5) Strict type checking and error handling can avoid common errors. 6) Enumeration reduces magic value and improves maintainability, but pay attention to performance optimization.

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...
