How to set a default PHP version for all projects in this computer?

I have to keep setting the php version for every new project along with its interpreter. How do  I make them global default?


Set it using this menu:

You can also disable "Synchronize IDE Settings with composer.json" option at File | New Project Settings | Languages & Frameworks | PHP | Composer for it to not overwrite your IDE language level based on composer.json.


Do note (at least with PHPStorm 2021+) that when you go to regular settings menu, PHP is an option way at the top.

But when setting it for all projects, PHP is suddenly under languages and frameworks.


Please sign in to leave a comment.