Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

chandram97's avatar

Php version from 7.3 to 8.2 for Laravel version 7.3

Hi Team,

I am planning to Upgrade my Php version from 7.3 to 8.2 for laravel version 7.3. I want to understand the impact of this.

last time when I did the Upgrade I got this below link for you team https://travis-ci.org/github/laravel/framework

but this has only till Laravel 5.8 and php compatibility. Can you please help to provide the latest link which has build and test report.

0 likes
4 replies
Talinon's avatar

@chandram97

There can be several things that can impact your application. The first thing you'd want to do is review the PHP change logs. Start with 7.3 -> 7.4, then 7.4 -> 8, then all the 8.x versions.

https://www.php.net/manual/en/migration74.php

https://www.php.net/manual/en/migration80.php

https://www.php.net/manual/en/migration81.php

https://www.php.net/manual/en/migration82.php

Are you going to be upgrading your Laravel version as well? If so, then you'll want to review the Laravel migration guides.

Does your application have a lot of package dependencies? If you only have a few, upgrading will likely go easier. If you have many, then you might run into incompatibility or version constraint issues. You should check all your dependency packages to see if they support PHP 8.2.

Do you have test coverage for your app? If you do, then this will be less painful. Your tests will immediately provide feedback on anything that breaks. If you don't, then upgrading will be scarier for you. Regardless, it would be a good idea to try upgrading on a staging environment first, especially if you don't have any test coverage.

You could also look into Laravel Shift. I've never used it personally, but it has been around for a long time.

https://laravelshift.com/

chandram97's avatar

Hi @talinon,

Thanks for the suggestion, It was helpful.

We are planning for upgrade Laravel as well, but we want to do one step at a time. So first we want to go with Php Version and then Laravel Version.

So I want to know the compatibility of Php Versions with Laravel versions. Like which version of Laravel is compatible for which version of PHP.

This link helped us last time to choose php version and Laravel version https://travis-ci.org/github/laravel/framework

Need the latest one for this.

Sinnbeck's avatar

@chandram97 personally I have upgraded a non laravel project to newer php versions. I used docker to test it out on a new version and then when all tests was green, I upgraded by own version at a time until I was at 8.1 (from 5.6). And composer will yell at you if you try to use a version that is too high. Just run composer update

jlrdw's avatar

@chandram97 just a suggestion, why not just create a new laravel 10 project and copy over your custom code:

  • Models
  • Controllers
  • views
  • any custom classes.

I have done both in the past, upgraded and new. And actually doing a new app and migrating custom code over time wise is about the same. Sometimes faster.

Edit:

And as above, go through the various PHP changes to identify any code changes you need to make. There are a few. But it's not too bad.

Please or to participate in this conversation.