Skip to content
PHP

PHP 8.5: What's New and Does Your Business Need to Upgrade?

Jamie Richards · · 3 min read

Person holds up blue sticker featuring elephant and PHP logo on their arm

PHP 8.5 is due for release shortly, continuing the yearly update cycle the language has followed for some time now. If you run a PHP-based website or application, it's worth knowing roughly what's changing and whether it affects you.

This isn't a post about flashy new features that will transform your business overnight. It's a straightforward look at what's coming, who should care, and what to ask your developer.

What's actually new

One change worth mentioning is that PHP 8.5 allows closures inside what are called "constant expressions" - certain fixed values used in attributes and defaults throughout the code. This sounds technical because it is, but the practical effect is that frameworks and libraries can offer smarter, more dynamic configuration without extra workarounds.

A concrete example comes from the Symfony framework, which uses this to let command-line tools generate their own help text dynamically, rather than having developers write it out by hand and risk it going out of date. It's a small quality-of-life improvement for developers, not something that changes what your website does day to day.

Beyond that, PHP 8.5 brings the usual mix of minor performance tweaks, deprecations of old features, and tidying up of inconsistencies in the language.

Why this matters for your business

New PHP versions matter less for what they add and more for what they mean for support. Each PHP version gets two years of active support, then a further year of security-only fixes, then nothing. Running a version that's past that window means any newly discovered vulnerability stays open, because nobody is patching it.

If your site runs on a hosting platform that upgrades PHP automatically, you may already be running a newer version without realising it, and it's worth checking your code still works properly against it. If you manage your own server or use fixed hosting, nobody upgrades PHP for you by default, and version drift can quietly become a liability.

For most businesses, the right question isn't "should we move to PHP 8.5 the week it comes out" - there's rarely a rush for a brand new version. It's "what PHP version are we actually on, and when does support for it run out."

What to ask your developer

  • Which PHP version is our site or application currently running?
  • When does that version stop receiving security updates?
  • Is there anything in our codebase that would break on a newer PHP version?
  • Do we need to test an upgrade on a staging copy of the site before moving the live one?

A good developer should be able to answer these plainly, without it turning into a big project unless your code genuinely needs work to catch up. Often it's a modest, well-tested piece of maintenance rather than a rebuild.

The wider picture

It's also worth knowing that PHP's wider ecosystem - frameworks like Symfony and Laravel, and the tools built on top of them - tend to pick up new language features fairly quickly, often before most projects have upgraded their own PHP version. That's one reason it's useful to keep your core PHP version reasonably current: new library versions may expect it, even if your own code doesn't use anything new directly.

If you're not sure which version your site is running, or when it was last reviewed, that's a sensible place to start. Get in touch via our contact page if you'd like a second opinion on where your project stands.

Sources

PHPupdates

Questions about your own platform?

I reply to every enquiry within 2 working days.

Get in touch →