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

zigo's avatar
Level 1

Laravel and php version compatibility

I want to ask that that one of my team member created a laravel project in php 7(composer installed on php 7) I want to run that project on php 5.6.25 but not working I have tried on 3 computers same problem of php only runs on php 7 is there any solution I can run that project on php 5.6.25

0 likes
3 replies
zachleigh's avatar

What version of Laravel is it? The most recent version of Laravel requires PHP >= 5.6.4.

zigo's avatar
Level 1

my project: laravel version : 5.4 php version : 5.6.25 my team member project: laravel version : 5.4 php version : 7.0

Nash's avatar

As @zachleigh pointed out, Laravel 5.4 requires at least PHP 5.6.4, but there might be even more to it than that. If the projects has any dependencies which require PHP 7 or if it uses any PHP 7 specific syntax/features, then it might take a lot of work to refactor. I think your best bet is to use PHP 7.

Please or to participate in this conversation.