Версии php которые поддерживаются

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:

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 которые поддерживаются

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.

Читайте также:  Python чтение определенной строки

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

Источник

Чем отличаются версии языка PHP

PHP — preprocessor hypertext или язык для преобразования HTML кода. Набрал большую поддержку и вопреки заявлению «экспертов» о своем устаревании, по данным W3Techs все еще удерживает до 80% все проектов в сети.

Конечно, в первую очередь это заслуга разработчиков самым популярных Open Sourse продуктов: WordPress, Joomla, Drupal и сотни других.

Как устроено в других продуктах не возьмусь сказать. Но в случае с WordPress переживать не о чем. В административной части на хорошо видном месте появится плашка с необходимостью обновить PHP на более новую версию.

Кратко о версиях PHP

В любом продукте устаревшими считаются все версии, которые старше самой последней. Другой вопрос, насколько актуальны более старые релизы по отношению к обновленному и как долго их можно эксплуатировать.

Ведь главной проблемой является отсутствие поддержки у ряда CMS более новых версий PHP. Причина очень банальна — на момент написания ключевой бизнес логики еще не было новых инструментов, а переделывать все под новый стандарт не всегда имеет смысл.

Катастрофа начинается после отключения поддержки явно устаревших функций, которые заменены на новые. Тогда-то становится уже слишком поздно и сайт перестает работать.

Поэтому можно прийти к следующему заключению:

Можно эксплуатировать устаревшие версии PHP ровно до тех пор, пока это позволяет сам проект (отбивается от кибератак и выдерживает нагрузку), а разработчики не планируют удаление из языка жизненно важного для проекта функционала.

Этапы внедрения нового функционала в язык PHP делятся на следующие циклы:

  1. Релиз — выпуск новой версии PHP после этапов тестирования и отладки всех недочетов.
  2. Активная поддержка — два года после релиза версию будут регулярно дорабатывать и выпускать новые обновления.
  3. Минимальная поддержка — через два года развитие прекращается. Разработчики переключаются на еще более новую версию и занимаются только критическими обновлениями безопасности. Критические обновления, касающиеся серьёзных угроз безопасности.
  4. Завершение поддержки — на третий год поддержка полностью прекращается. Больше не будут выпускаться вообще никакие обновления под данную версию, но она остается полностью работоспособной.

На июль 2020 продолжают поддерживаться три версии языка:

  • 7.4 — релиз от 28 ноября 2019 и самая актуальная на сегодня версия;
  • 7.3 — 6 декабря 2018 с подходящей к концу активной поддержкой;
  • 7.2 — 30 ноября 2017 с обновлением критически важных функций, которые уже в декабре не будут выходить;

В конце 2020 самой актуальной версией станет PHP 8.0, а версии 7.0 и 7.1 уже и вовсе не получают обновления.

Читайте также:  Java code writing software

Версии 7.1, 7.0 и все версии PHP 5 больше не обновляются. А уже в конце 2020 года самой актуальной станет версия 8.0.

История предыдущих версий PHP

У данного языка есть своя предыстория. Пользователи, которые ожидают те или иные внедрения. Разочарования, как и везде, которых невозможно избежать.

PHP 6: версия, которой не было

Над 6.0 трудились долгое время и самым основным внедрением должен бы стать Юникод. Это бы значительно расширило возможности языка. Но разработчики столкнулись с трудностями из-за чего постепенно отказались от внедрения Юникода, а позже и от индекса 6.0.

Параллельно было создано множество образовательного контента и сообщество поверило о будущем внедрении Юникода. Поэтому индекс решено было переименовать в 7.0.

PHP 7 — быстрее для новых проектов

Релиз состоялся в конце 2015 года. В целом язык стал проще, чище и удобнее и для этого разработчики убрали часть устаревшего и ненужного функционала.

На сегодня по некоторым данным около половины всех сайтов базируется на PHP5. Причина — несовместимость некоторого функционала, которое было написано на удаленных в новом языке функциях.

Новинку построили на технологии phpng — PHP Next Generation. Задача — повысить производительность языка без потери совместимости, что дало прирост почти в два раза, а на синтетическом тесте bench.php — в 14 раз.

Для мобильных платформ разработчики добились снижения потребления памяти при работе языка.

PHP 8 — уже на подходе

Ожидается, что новинка будет генерировать меньше кода по технологии JIT. Код приложения будет компилироваться заново, а частично заимствоваться уже скомпилированных версий.

В итоге производительность PHP8 должна стать на порядок выше, чем PHP7. Выпуск в массы полноценной боевой версии ожидается уже в декабре 2020.

Поэтому не стоит затягивать с переходом на новые технологии. Как видно, они дают ощутимый прирост к мощности.

Источник

WordPress PHP Versions: Best PHP for WordPress in 2023

FI WordPress PHP Version Compatibility

Different WordPress versions can work with multiple PHP versions. Yet, the platform recommends specific PHP requirements for each WP version. Choosing the best WordPress PHP version is crucial to make sure that the website is secure and free of bugs.

This article discusses the compatibility between PHP and WordPress in terms of the recommended, minimum, and latest PHP versions for WordPress.

IMPORTANT: This article is being checked and updated regularly by our team to reflect the most accurate and up-to-date information. In case you found anything incorrect or inaccurate please don’t hesitate to contact us.

LAST UPDATED: May 04, 2023

In this article:

1. Overview

WordPress substantially relies on PHP to work and operate. Updates for both platforms are being published regularly to fix security loopholes and bring enhancements in usability and performance. Thus, WordPress users have to continuously update their software and confirm its compatibility with supported PHP versions.

WordPress PHP versions depend on the compatibility between WordPress and PHP. As each version of WP requires specific minimum PHP requirements. In this context, this article aims to explore the compatibility of the multiple versions of WordPress with PHP, in light of continuous updates being published on a regular basis for both platforms.

Читайте также:  Javascript только цифры при вводе

2. Supported PHP Versions

Updates of PHP programming language are being published regularly. The updates usually include bug fixes and security improvements besides other functional and performance enhancements.

When published, each PHP version remains supported for a period of 3 years from its initial stable release , the support period runs over two main successive phases:

  • 2-Years Active Support: the support includes fixing BOTH BUGS and SECURITY ISSUES.
  • 1-Year Security Support: the support includes fixing ONLY CRITICAL SECURITY ISSUES.

PHP Versions Lifetime

Once the support period is completed (after 3 years), the version reaches its end of life (EOL) and becomes no longer supported. It’s strongly not recommended to use an unsupported version of PHP as it might expose the application using it to security vulnerabilities and bugs.

3. WordPress Current PHP Versions

The official PHP website maintains a specific webpage to check the status of supported versions. Accordingly, the currently supported PHP versions that can be safely used for WordPress are:

  • PHP Version 7.4– No Longer Supported
  • PHP Version 8.0(Security Support, ends on 26/11/2023)
  • PHP Version 8.1(Active Support, ends on 25/11/2023)
  • PHP Version 8.2(Active Support, ends on 08/12/2024)

When an older PHP version runs out of support, it is removed from the list and, usually, a new version with full support is added.

4. WordPress PHP Requirements

In general, WordPress requires specific server requirements, which cover PHP requirements, hosting details, and other software dependencies.

Technically speaking, each version of WordPress has specific PHP versions that it is compatible with. That being said, although the software might work on legacy PHP versions that reached their End Of Life, the platform recommends using only supported PHP versions.

Important: a compatible PHP version is a version that WordPress requires to work properly, regardless of whether it is still supported or not.

Here is a list of the compatible PHP versions for each version of WordPress, knowing that we only consider WP versions that can work with the currently supported PHP versions:

WordPress Check PHP Version

To read our easy guide with pictures to finding PHP version in WordPress without a plugin please refer to this article. In case you are unable to access the admin control panel, you can find the PHP version by accessing your hosting cPanel or consulting your hosting service provider.

FI Check WordPress Php Version Without Plugin

How to Check PHP Version in WordPress Without Plugin?

There are many ways to check the PHP version being used by a WordPress installation, usually using third-party plugins. In this article, we will find step-by-step how to check PHP version in WordPress without any plugin.

9. Conclusion

To avoid vulnerabilities and obtain the best performance for your website, WordPress and PHP versions should be always compatible with each other.

In this article, we discussed the PHP requirements of WordPress platform in terms of compatibility and possibly usable PHP versions.

  • PHP Supported Versions: https://www.php.net/supported-versions.php
  • WordPress Requirements: https://wordpress.org/about/requirements/
  • WordPress Server Environment: https://make.wordpress.org/hosting/handbook/server-environment/
  • PHP Compatibility and WP Versions: https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

Источник

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