# Latest/highest possbile PHP version for cakePHP 2.8.5

**URL:** <https://discourse.cakephp.org/t/latest-highest-possbile-php-version-for-cakephp-2-8-5/11729>\
**Category:** Need Help\
**Created:** [December 10, 2023, 11:37am UTC](https://discourse.cakephp.org/t/latest-highest-possbile-php-version-for-cakephp-2-8-5/11729 "2023-12-10T11:37:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorigoor2](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dorigoor2](https://discourse.cakephp.org/u/dorigoor2)\
**Post date:** [December 10, 2023, 11:37am UTC](https://discourse.cakephp.org/t/latest-highest-possbile-php-version-for-cakephp-2-8-5/11729/1 "2023-12-10T11:37:06Z")

</div>

I use a legacy application that uses cakePHP 2.8.5  
I can’t change that application or upgrade cakePHP to a higher version.  
I will however have to upgrade the PHP version on server which currently PHP 5.something.  
How high can the PHP version be and still not break cakePHP 2.8.5?  
in version PHP 8, I get the following error:  
PHP Fatal error: Cannot use ‘Object’ as class name as it is reserved in /var/www/qrop/Vendor/cakephp/cakephp/lib/Cake/Core/Object.php on line 30  
which is an error you get from PHP 7.2 and above

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [December 11, 2023, 7:03am UTC](https://discourse.cakephp.org/t/latest-highest-possbile-php-version-for-cakephp-2-8-5/11729/2 "2023-12-11T07:03:45Z")

</div>

FYI: CakePHP 2 is EOL since June 15, 2021 and therefore won’t recieve any further PHP support updates.  
But there are other people forking cakephp 2 and making it PHP 8.0/8.1 compatible which you can find in e.g. this Github issue.

> <https://github.com/cakephp/cakephp/issues/15197>
>
> This is a (multiple allowed):
> 
> \* \[\] bug
> \* \[\] enhancement
> \* \[x\] feature-disc…ussion (RFC)
> 
> \* CakePHP Version: 2.X

> **[GitHub - kamilwylegala/cakephp2-php8: CakePHP 2 fork that supports PHP 8](https://github.com/kamilwylegala/cakephp2-php8)**
>
> CakePHP 2 fork that supports PHP 8. Contribute to kamilwylegala/cakephp2-php8 development by creating an account on GitHub.
