PHP 8.6.0 made its official debut today as the annual feature release, Phoronix reports. Headline features include partial function application, default values for readonly properties, a new clamp() function, a \Time\Duration class, a SortDirection enum, and a new Polling API for efficiently watching many streams at once using epoll, kqueue, event ports or WSAPoll depending on the platform.
It landed the same day as the PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13 security releases (I’ve got a separate post on those).
My take
The Polling API is the one I’m most interested in for long-running PHP workers. For WordPress sites, though, wait for your plugins and theme to catch up before you move to 8.6. Patch your current branch today, and test 8.6 on staging.
Review before you install: read the release notes yourself, back up your config, and try new versions somewhere you can afford to break first.
God Bless, and Use the Source!