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

Sunpower's avatar

how to set php vertion?

I am working with Laravel 5.6 and I have install wamp 3.1.3 in my windows 7 pc. in my wamp php setting is showing as my php vertion is 7.2.4 but in my cmd command php -v is showing as php vertion as 5.6.35 I need install some API and it is need php vertion 7 or above. how can I fix this problem. my system variable path also set as php 7.2.4. how can I fix this problem?

0 likes
1 reply
lostdreamer_nl's avatar
Level 53

check your PATH environment, probably both PHP versions are set in your path (or only the old version)

remove the old version from your path and add the new one. after that, log out and login again (PATH only refreshes on windows on login) and try the php -v command again in a command prompt.

Please or to participate in this conversation.