Nebula icon indicating copy to clipboard operation
Nebula copied to clipboard

🔮 PHP 7.4 Upgrade Features/Notes

Open chrisblakley opened this issue 3 years ago • 4 comments

PHP Version Timeline: https://www.php.net/supported-versions.php PHP Release Notes: https://php.watch/versions Version Stats: https://stitcher.io/blog/php-version-stats-january-2023

PHP 7.4 Info & References

https://php.watch/versions/7.4 https://stitcher.io/blog/new-in-php-74

  • Release Date: November 2019
  • Active Support Until November 2020
  • Security Support Until November 2021

Initial Tasks

  • [x] Update /inc/data/php_timeline.json Nebula file

Projected Nebula Minimum Version Timeline

PHP Version Proposed Date Nebula GitHub Issue
7.3 May 2022 ✅ #2089
7.4 April 2023 #1992
8.0 Late-2023 #1992
8.1 2024 #2234
8.2 2025 #2235
8.3 TBD TBD
9.0 TBD #2236

Notable Features related to Nebula in PHP 7.4

Adding this as an issue for organizational/planning purposes. Before, I was tracking some of these in the PHP 8 issue, but the timeline between these two versions will be at least a 1+ years apart. This is how I will do it in the future as well– each PHP upgrade that has potential breaking features will have its own issue. Any individual features can have their own issues to link back where more complex/specific details can be added.

As of April 2021 (Nebula v8), the minimum required version of PHP is 7.1. That will likely bump up to 7.2 within a few months and eventually 7.3 maybe late 2021 or early 2022. The loose target for this 7.4 update would then be mid/late-2022 – likely soon after the Nebula v10 release.

https://php.watch/versions/7.4 https://www.php.net/supported-versions.php

  • Numerical literal separators (underscores) 123_456_789.01
    • Added //PHP 7.4 use numeric separators here comments for these
  • Arrow functions (probably only use sparingly in Nebula) fn()
  • Null coalescing assignment operator ??= //Use null coalescing operator here

Related issues: #1805 #1992

chrisblakley avatar Apr 17 '21 21:04 chrisblakley

Here's my more specific guesstimates at PHP minimum version update dates: https://github.com/chrisblakley/Nebula/issues/2089#issuecomment-821893436

Once we bump to 7.2 and then 7.3, I'll update this issue with the next guesstimate.

chrisblakley avatar Apr 17 '21 22:04 chrisblakley

Minimum version is now PHP 7.3. Will plan to bump to 7.4 around late-2022...?

  • As of May 2022, minimum supported PHP version is 7.3.
  • 7.4 possibly around November 2022
  • 8.0 sometime in 2023?
  • 8.1 in 2024ish?

chrisblakley avatar May 03 '22 04:05 chrisblakley

https://github.com/chrisblakley/Nebula/issues/1806

chrisblakley avatar May 25 '22 03:05 chrisblakley

Top 20 PHP versions in the last 6 months:

Screen Shot 2022-12-28 at 9 17 23 AM

GA4 is somewhat splitting the data, but those are likely later versions of PHP.

I will probably coincide the 7.4 minimum version bump with the v11 release of Nebula in May.

chrisblakley avatar Dec 28 '22 14:12 chrisblakley