Monday to Friday, 8:00 a.m. to 4:00 p.m. · Saturday, 8:00 a.m. to 1:00 p.m.

Technology

PHP 8.6 is out: what is new and when to upgrade

Open laptop with code on the screen next to a notebook and a blue pen

PHP 8.6 arrived on November 19 with partial function application, the Duration class and safer session defaults. What it brings, what it may break and why the urgent task is moving off PHP 8.2 before year end.

On November 19, 2026, the PHP project released PHP 8.6.0, the new major version of the programming language behind many websites and business systems, and it is out now for download. According to the official schedule, it will receive bug fixes until December 31, 2028 and security patches until December 31, 2030.

What is new in PHP 8.6

  • Partial function application: lets you fix some of a function's arguments in advance, using the ? and ... placeholders, and supply the rest later.
  • The Time\Duration class represents time spans (waits, timeouts or measurements) with nanosecond precision, independent of time zones.
  • The Io\Poll API watches many connections at once using the most efficient mechanism on each operating system, and is meant for libraries such as ReactPHP and AMPHP.
  • The clamp() function keeps a value within a range, and the SortDirection enum gives libraries one shared way to express ascending or descending order.
  • It also brings default values for readonly properties, easier handling of file and connection errors, post-quantum encryption in the Sodium extension and performance gains, such as faster JSON encoding.

What changes and may break

Sessions are safer by default: session.use_strict_mode and session.cookie_httponly are turned on, and the session cookie now uses SameSite=Lax. In addition, functions such as mb_ereg(), mb_split(), spl_object_hash() and strcoll() are deprecated, along with the is_double(), is_long() and is_integer() aliases. A deprecated function still works, but it raises notices and may be removed in a future version.

When to upgrade

There is no need to switch to PHP 8.6 on day one: it is better to wait until your plugins, themes and libraries support it, and to test on a copy first. The urgent task is at the other end: PHP 8.2 stops receiving security patches on December 31, 2026, and PHP 8.1 and earlier no longer get them. On the same day, November 19, PHP also fixed 18 security flaws in its supported versions.

What to do

  1. Check which PHP version each of your company's sites or systems runs.
  2. If you are on PHP 8.2 or earlier, plan the upgrade before year end to 8.4, 8.5 or 8.6, depending on what your applications support.
  3. Read the official migration guide and test the application on a copy with deprecation notices turned on; pay special attention to logins.
  4. Move to production once tests pass, with a backup and a way to roll back to the previous version.

How we help you

With custom software development we review the code of your PHP systems, fix whatever stops working and carry out the upgrade in stages. If your site needs a refresh, our web design team gets it ready for the new versions. Book a review of your site.

Sources

Source: PHP.net

Keep reading

Hand holding a phone next to a card terminal on a wooden table

Technology

Bre-B: what changes for business payments in Colombia

Colombia's central bank published new rules for Bre-B: they add payments to legal entities, a reference field to identify each charge and the business's trade name. Deadlines and what to prepare at your company.

Cardboard boxes of different sizes on a bed, ready for packing products

Technology

Mercado Libre and iNNpulsa: 12,000 spots to sell online

Colombia's trade ministry, iNNpulsa and Mercado Libre opened a call for up to 12,000 startups and small businesses to sell online with three months of no commission, their own store and training. Applications close December 20.

Two people typing on laptops with blue keyboards at a round table, seen from above

Technology

AI at work: time savings depend on training your team

Three studies published November 16 to 19, from LSE, Adecco and the IDB, agree: AI saves more time when the company trains its team and builds it into its processes, not when each person uses it on their own.

Chat with Pronetsys on WhatsApp