# CakePHP 2.6 and PHP 7.X?

**URL:** <https://discourse.cakephp.org/t/cakephp-2-6-and-php-7-x/5551>\
**Category:** Uncategorized\
**Created:** [January 19, 2019, 11:45am UTC](https://discourse.cakephp.org/t/cakephp-2-6-and-php-7-x/5551 "2019-01-19T11:45:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruslan](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ruslan](https://discourse.cakephp.org/u/Ruslan)\
**Post date:** [January 19, 2019, 11:45am UTC](https://discourse.cakephp.org/t/cakephp-2-6-and-php-7-x/5551/1 "2019-01-19T11:45:43Z")

</div>

Hi ,  
I use now PHP 5.6, tell me please, Can I change it yo 7.x without code refactoring?

I see in documentation : (CakePHP version 2.6 and below support PHP 5.2.8 and above).  
But for me interesting opinian men who realy did it.

Thank you.

---

<div class="post-metadata">

**Author:** ![Graziel](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Graziel](https://discourse.cakephp.org/u/Graziel)\
**Post date:** [January 19, 2019, 5:27pm UTC](https://discourse.cakephp.org/t/cakephp-2-6-and-php-7-x/5551/2 "2019-01-19T17:27:49Z")

</div>

[https://github.com/cakephp/cakephp/blob/73de35c1196593078f9f9cecb770513a1da4fc37/.travis.yml](https://github.com/cakephp/cakephp/blob/73de35c1196593078f9f9cecb770513a1da4fc37/.travis.yml) says its tested up to 7.3

but your code can require changes so its up to you to check it - hopefully you have tests : )

---

<div class="post-metadata">

**Author:** ![Ruslan](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ruslan](https://discourse.cakephp.org/u/Ruslan)\
**Post date:** [January 19, 2019, 5:40pm UTC](https://discourse.cakephp.org/t/cakephp-2-6-and-php-7-x/5551/3 "2019-01-19T17:40:39Z")

</div>

Thank you.  
Sure, I havn’t it ))

---

<div class="post-metadata">

**Author:** ![Graziel](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Graziel](https://discourse.cakephp.org/u/Graziel)\
**Post date:** [January 21, 2019, 12:19am UTC](https://discourse.cakephp.org/t/cakephp-2-6-and-php-7-x/5551/4 "2019-01-21T00:19:30Z")

</div>

woops sorry, i made mistake, ive checked it for latest 2.x and not 2.6 as in title, heres for 2.6.13

> <https://github.com/cakephp/cakephp/blob/e079f577aea9f70f3fd19371c9e40fbcd08b5a59/.travis.yml>
