Php versions and features

Php versions and features

The manual contains information about past, current, and future versions of PHP. Changes in behaviour are documented as notes, changelogs, and inline text within the manual pages. The earliest documented version is PHP 7.0.0.

When documentation exists for the latest (unreleased) developmental versions of PHP, it will be labeled as either «available in Git» or «development version.» And while these changes should be planned for, in rare cases they may change.

All development takes place in Git and may be checked out as described within the » anonymous Git access page.

And to clarify, the manual will refer to major, minor and point PHP releases. Using PHP 7.3.1 as an example, the 7 refers to the major version, 3 to minor, and 1 is the point release. Typically PHP only adds new features to major and minor releases, and fixes bugs in point releases. However, this convention is not always true.

Also note that the PHP manual is written in present tense, not future tense, even for documented features that are not yet available. The reason for this is so the manual can stand the test of time, thus not require tedious grammar updates with every PHP release.

Many times the PHP manual lists «Default Values» for PHP directives. These values are based on how PHP behaves without a php.ini configuration file, so this may differ from values found in the distributed php.ini-development and php.ini-production files. They also refer to the latest version of PHP, although changelog entries do mention past values. See the PHP directive appendix for details regarding these values and changes.

User Contributed Notes

Источник

Supported Versions

Each release branch of PHP is fully supported for two years from its initial stable release. During this period, bugs and security issues that have been reported are fixed and are released in regular point releases.

After this two year period of active support, each branch is then supported for an additional year for critical security issues only. Releases during this period are made on an as-needed basis: there may be multiple point releases, or none, depending on the number of reports.

Once the three years of support are completed, the branch reaches its end of life and is no longer supported. A table of end of life branches is available.

Currently Supported Versions

Branch Initial Release Active Support Until Security Support Until
8.0 26 Nov 2020 2 years, 7 months ago 26 Nov 2022 7 months ago 26 Nov 2023 in 4 months
8.1 25 Nov 2021 1 year, 7 months ago 25 Nov 2023 in 4 months 25 Nov 2024 in 1 year, 4 months
8.2 8 Dec 2022 7 months ago 8 Dec 2024 in 1 year, 4 months 8 Dec 2025 in 2 years, 4 months

Or, visualised as a calendar:

Читайте также:  Установка java google chrome

Key

Active support A release that is being actively supported. Reported bugs and security issues are fixed and regular point releases are made.
Security fixes only A release that is supported for critical security issues only. Releases are only made on an as-needed basis.
End of life A release that is no longer supported. Users of this release should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities.

Источник

PHP Versions

PHP Versions

PHP is the widely used open source web development scripting/programming language, that can have HTML codes in its scripting. Since the first version release in 1994, there have been 5 more versions released for PHP upgradation purposes. The Eight versions of PHP are named as ‘PHP version 1.0’, ‘PHP version 2.0’, ‘PHP version 3.0’, ‘PHP version 4.0’, ‘PHP version 5.0 and 6.0’, ‘PHP version 7.0’, ‘PHP version 7.1’, ‘PHP version 7.2’, ‘PHP version 7.3’, ‘PHP version 7.4,’ and the current version PHP 8

Web development, programming languages, Software testing & others

Top PHP Versions

Given below are the top PHP versions:

Top 6 PHP Versions

1. PHP Version 1.0

  • As mentioned before, PHP development started way back in 1994 and was developed by Rasmus Lerdorf. He used C as a scripting language and wrote several Common Gateway Interface programs.
  • He originally used them to maintain his personal homepage. He later extended these code specs to work with web forms and databases. This upgraded implementation was called Personal Home Page or Forms interpreted.
  • This initial version of PHP already had several basic functionalities. It has form handling capabilities, Perl like variables and the ability to work with HTML. The syntax was also similar to; however, it was simpler but inconsistent.

2. PHP Version 2.0

  • The initial version of PHP, though not very refined gained a lot of popularity by the developer community when it was released for public usage in 1995.
  • As its popularity continued to grow, a formal developer team was formed to work on the inconsistencies of version 1.
  • Once the inconsistencies were overcome, the updated language was released as version 2 in 1997.

3. PHP Version 3.0

  • As PHP’s popularity grew, it attracted the attention of Zeev Suraski and Andi Gutmans.
  • In 1997, Zeev Suraski and Andi Gutmans rewrote the internal PHP parser and formed the basic structure for PHP 3. The official launch of PHP 3 was done in June 1998 once the public testing was completed.
  • Later, Suraski and Gutmans started with re-write the core PHP and produced the Zend engine in 1999. This led to the foundation of Zend Technologies in Israel.

4. PHP Version 4.0

  • Finally, in the year 2000, PHP version 4 powered by Zend Engine 1 was released for public usage.
  • By 2008, PHP version 4 had evolved and reached 4.4.9. However, it is no more supported for security updates.

5. PHP Version 5.0 and 6.0

  • In 2004, this was released and was powered by Zend Engine 2.
  • It included several new features and better support for Object-Oriented Programming (OOP), PDO (PHP Data Objects) extension which provides a lightweight interface to programmers for accessing database and many other performance improvements.
  • It scaled up to version 5.6. In December 2018, official support for PHP security ended but Debian continued to provide security support until 2020.
  • When the developers started to use PHP 5 for the development of applications, it was realized that PHP 5.0 had insufficient support for Unicode encoding due to which the developer community had mixed opinions about it.
  • In 2005, Andrei Zmievski took charge to overcome this hindrance and launch a project to embed Unicode support throughout the PHP system.
  • In order to achieve this, he included the ICU i.e International Components for Unicode library across the basic PHP system. With this change, the text strings in PHP were internally represented as 16 bit Unicode Transformation Format or commonly known as UTF – 16.
  • The migration was partially completed, when it was realized that conversion to and from UTF – 16 could also cause several performance issues and eventually the project was midway abandoned. This exercise further stressed on the importance of an efficient method to embed Unicode support in PHP’s core.
  • In the month of March 2010, PHP’s version 6.0 was released with non-Unicode features like traits and closure binding. This update left the developer community hoping for efficient Unicode integration.
Читайте также:  Unhandled exception java sql sqlexception

6. Current Version 7.0

  • During the period of 2016 and 2017, PHP underwent major changes and the update was released as PHP 7. The version number selected for rolling out this release has to face several debates.
  • In spite of the PHP Unicode project not officially released, several books had referencing included in them addressing it as PHP version 6. If an actual release would have been also rolled out as version 6, it would have caused confusion in the developer community. Hence, it was decided to release this update as version 7.0.
  • PHP 7 is based on phpng which stands for PHP next Generation. PHP Next Generation was an initiative by developers to overcome the high-performance constraints of previous PHP versions. The phpng branch served as the base branch for PHP version 7.0.
  • PHP 7 did provide several optimizations and performance improvements. It also included an in-build caching mechanism for better performance. But these could never match the performance a JIT compiler could provide.
  • Though PHP can continue to evolve it also has certain drawbacks due to which it may not appeal to all developers. PHP is an open-source code language, which means anybody can access its core ode base and identify shortcomings to take advantage of.
  • As a result of this weakness, the probability of PHP websites to be hacked is higher than those built-in other languages. Since PHP is not very modular, it is not a favorable language for developing large applications. Also, PHP data types may surprise new programmers. For instance, the string “1000” is the same as “1e3” as they both cast to float type.

7. PHP version 7.3

PHP version 7.3 is a popular programming language used for web development. Released in December 2018, it brought several improvements and new features to enhance the efficiency and productivity of developers. Some notable features include flexible heredoc and now doc syntax, allowing for cleaner string handling. It introduced a trailing comma syntax in function calls, making it easier to add or remove parameters. PHP 7.3 also introduced improved JSON support, allowing for better handling of JSON data. Additionally, it included enhancements to error handling, performance improvements, and improved security with new functions and options. Overall, PHP 7.3 aimed to provide developers with more robust and efficient tools for building web applications.

Читайте также:  Python while and lists

php versions 7.3

8. php versions 7.4

PHP version 7.4 is a popular release of the PHP programming language, introduced on November 28, 2019. It brought several enhancements and new features to the language, making it more powerful and efficient. Some notable features include the introduction of arrow functions for concise anonymous functions, improvements in the typed properties feature, preloading for faster performance, support for typed properties in more contexts, and coalescing assignment operator. Additionally, PHP 7.4 introduced various language improvements and performance optimizations, resulting in faster execution and reduced memory consumption. Overall, PHP 7.4 offered developers new tools and capabilities to build robust and high-performance web applications.

PHP versions 7.4

9. php versions 8 and 8.4 (PHP 8, released in November 2020)

PHP versions 8 and 8.4 introduce several significant features and improvements to the language. PHP version 8, the 25th year of PHP history, introduced the JIT (Just-In-Time) compiler, providing better performance for certain types of code. It also introduced union types, allowing variables to have multiple acceptable types. The null safe operator was introduced, simplifying null value checks. Attributes were added, enabling developers to add metadata to classes, methods, and properties. PHP 8.1 added enhancements, including read-only properties, named arguments, and the str_contains() function. PHP 8.2 (November 24, 2022) and 8.3 introduced further optimizations, bug fixes, and smaller feature improvements. PHP 8.4, the latest version at the time of writing, focuses on stability and bug fixes, enhancing the overall reliability of the language. Coming soon, PHP 8.4, released in August 2023, is a subsequent update that builds upon PHP 8.

Conclusion

As seen above, from its first release itself, PHP has been very popular in the developer community despites it’s inconsistencies and performance issues. It is an easy to use language and its creators are committed to continuing PHP’s evolution to overcome these issues. The continuous improvement cycle of PHP has still kept many developers hooked to PHP as a web development language in spite of cutting edge competition from PHP peers like Python and Java.

This is a guide to PHP Versions. Here we discuss the basic concept and top 9 PHP versions with their detailed explanation. You may also look at the following articles to learn more –

25+ Hours of HD Videos
5 Courses
6 Mock Tests & Quizzes
Verifiable Certificate of Completion
Lifetime Access
4.5

92+ Hours of HD Videos
22 Courses
2 Mock Tests & Quizzes
Verifiable Certificate of Completion
Lifetime Access
4.5

83+ Hours of HD Videos
16 Courses
1 Mock Tests & Quizzes
Verifiable Certificate of Completion
Lifetime Access
4.5

PHP Course Bundle — 8 Courses in 1 | 3 Mock Tests
43+ Hours of HD Videos
8 Courses
3 Mock Tests & Quizzes
Verifiable Certificate of Completion
Lifetime Access
4.5

Источник

Оцените статью