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

ziben69's avatar

Update PHP version from 7.1 to 7.2 in Laravel's project

Hello guys,

could somebody write me how to improve the php version in an existing project. So that I don't make a mistake.

I currently have PHP version 7.1 and I need to upgrade to version 7.2

Thanks for the help!

0 likes
8 replies
Sinnbeck's avatar

What are you running it on? Homestead? Ubuntu? Xammp?

Sinnbeck's avatar

It seems that 5.7.28 also support php 7.2 :)

ziben69's avatar

ok I have in xampp now PHP version 7.2.6, what next? :)

Sinnbeck's avatar

I am not sure what your are asking. Do you mean if you can run both 7.1 and 7.2 at the same time? (7.1 for some projects and 7.2 for others)

ziben69's avatar

I just need update version of PHP in my Laravel project.

Now I have in my composer.json:

 "require": {
        "php": "^7.1.3",
},

Please or to participate in this conversation.