PHP 8.6 is out, and here’s what changes for your code (opens the publisher’s article in a new tab)
PHP 8.6 has been released. It adds partial function application, a Time\Duration class, an event-loop polling API and clamp(). Session defaults change: session.use_strict_mode and session.cookie_httponly are on and session.cookie_samesite is Lax, and custom session handlers without both create_sid() and validateId() are deprecated.