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!

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl


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

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version
Chinese version, very easy to use

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1
Powerful PHP integrated development environment

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
