We use cookies to improve your experience on our website. By browsing this site, you agree to our use of cookies.

Live chat

PHP 8.6 now available on shared hosting

PHP 8.6 is now available on shared hosting

PHP 8.6 on SLIMHOST shared hosting

SLIMHOST has added support for PHP 8.6 on all shared hosting servers. The new version of the language was released on November 19, 2026, and you can already choose it for your sites.

What’s new in PHP 8.6

The main changes include:

  • Partial function application. A ? placeholder in place of an argument creates a function that takes the remaining arguments later, for example in_array(?, $list, true).
  • The new clamp() function limits a value to a given range.
  • The Time\Duration class represents a duration with nanosecond precision.
  • The Polling API (Io\Poll) provides scalable I/O multiplexing without the limits of stream_select().
  • Streams get structured errors and TLS session resumption without a repeated handshake.
  • readonly properties can now have default values.
  • The #[\Override] attribute also works on class constants.
  • Sessions are safer by default: session.use_strict_mode and session.cookie_httponly are enabled, and session.cookie_samesite is set to Lax.
  • Closures, printf() and JSON encoding run faster.

The full list of changes is in the release announcement on php.net.

What to check before switching

Some older functions are deprecated in PHP 8.6 and are planned for removal in PHP 9. These include the mbstring regex functions (mb_ereg(), mb_split() and others), is_long(), is_integer(), is_double(), spl_object_hash(), returning a value from __construct() and __destruct(), and return inside finally. WordPress core developers have already fixed the known compatibility issues, but older plugins and themes may still contain such calls, and warnings will appear in the error log. If your site runs on outdated code, test it on a copy first.

PHP 8.6 is already available on all shared hosting servers. You can see the plans on the shared hosting page.