PHP first appeared in 1995 (25 years ago). The latest version is PHP7.4, but PHP7.2 is still supported (until Nov 2020).
What comes to your mind when you hear the words ‘PHP in 2020’? Most people think that PHP is dying and maybe it is going to end soon. If you are thinking that, then the clear answer is No. PHP is not going to end in the near future, because PHP is being used in almost 80 percent of websites (source: w3techs.com). PHP is the most powerful server-side scripting language.
PHP is easy to learn backend programming and also has lots of community support and a huge ecosystem for easy development. So PHP has all the tricks for years, libraries, cheap servers, and great MySQL integration.
PHP has a large number of the framework as well like ZendFramework, Laravel or Slim that really caused PHP to step up as a professional solution. There is no near sign that can stack down PHP popularity in upcoming years.
You can write PHP code as you want, but when PHP code will be written properly, following methodologies such as DRY, SOLID and MVC, it is a very powerful, diverse and fast language with a lot to offer. PHP has evolved a lot over the years and since PHP5.3 was released in 2009, most of these complaints have been fixed. The latest version v7.1 or v7.2 is an extremely fast and streamlined language. PHP7 is also a great platform for the development of large applications and other asynchronous tasks, like access to network, database, file. Amazing support in Asynchronous programming that boosts up your experience, working with PHP. PHP7 extends the previous type declarations by adding the four scalar types: Integers (int), floats (float), booleans (bool) and strings (string) as parameter types.
The next major thing is PHP8 with JIT (Just-in-Time) compilation. The release of PHP8 is not scheduled. Larry Garfield tweeted that PHP8 is going to come out in September 2021.
Why do people shift from PHP?
PHP never forces its users to follow a particular coding style or pattern and It is totally up to your imagination. It is possible the code will get too messy if everyone follows their own style. This is also a case to change from PHP. This practice has changed after using DRY, SOLID and MVC methodologies
It is totally up to you which language you prefer in your code, but I am sure that PHP is not going to end in the near future. It has become like C or COBOL for server-side programming and will remain till decades. It may lose popularity or fade away a bit but it won’t end.