We’re happy to announce that we’re getting ready to support the upcoming PHP 8.5 release.
This release isn’t just about new features for developers; above all, it brings major speed and stability improvements that every one of your websites will benefit from.
Take a look at the key changes in PHP 8.5 that boost performance and security.
Major performance improvements
1. Built-in OPcache: mandatory and optimized
The most important change from a performance standpoint is the integration of OPcache as a mandatory, integral part of PHP.
- What it means: OPcache is a crucial tool that stores compiled code (bytecode) in memory, eliminating the need to parse and compile scripts again on every request.
- What you get: We guarantee that every PHP 8.5 project on our hosting will take advantage of this top-tier optimization, leading to significantly faster-loading websites and lower server load.
2. Smaller but important internal optimizations
PHP 8.5 includes a number of other internal tweaks and improvements to the virtual machine (Zend Engine) that make code execution more efficient and reduce memory usage. In practice, this means:
- Faster operations: Improved memory management and optimized code-processing routines lead to faster execution and shorter response times.
Stronger security and stability
1. Stack traces for fatal errors: faster diagnostics
While this isn’t a direct security improvement, it greatly boosts stability and reaction time when errors occur:
- What’s changing: Fatal errors now include a full stack trace by default.
- What you get: When your code fails, you immediately get detailed information so you can fix the problem quickly. This minimizes the time your website might be down or vulnerable.
2. Phasing out outdated code (deprecations)
Every new PHP version actively removes old, vulnerable, or inefficient functions.
- For example: PHP 8.5 deprecates all
MHASH_*constants and recommends using the more modern and securehashextension. This keeps our hosting environment clean and safe from old methods that could pose a risk.
For developers: faster, more readable code
For completeness, here are some features that aren’t primarily hosting-related but lead to higher-quality, and therefore more stable, code:
- Pipe operator (
|>): Makes complex function chains easier to read. - The
#[NoDiscard]attribute: Warns about bugs where a developer forgets to use a return value. The result is more robust code.
Important note on deployment and compatibility
The stable release of PHP 8.5 is scheduled for November 2025.
Heads-up: Once PHP 8.5 is released, it takes time for the whole ecosystem (libraries, frameworks, extensions) to become compatible. Some critical packages, such as database drivers or caching extensions, may not be compiled right away for this new version.
Don’t worry: as soon as stable versions of these packages are available and we’ve finished our final testing, the new versions for PHP 8.5 will be rolled out and fully available to you!
We recommend thoroughly testing your project’s compatibility with PHP 8.5 before going live.
In the app at app.wpcloud.cz, you can easily switch between versions and test new features.
