So, you mean to highlight all pieces of code that will not work with the PHP version you are writing it in, right? That can be done here:

Preferences -> Languages & Frameworks > PHP

and the same on Mac:

PhpStorm -> Preferences (⌘,) -> Languages & Frameworks > PHP

Or with newer versions of PhpStorm in Windows:

File -> Settings -> Languages & Frameworks > PHP

then select your PHP version, for example, 7.0

This is very useful when your local system runs PHP 7.0, for example, but production is running PHP 5.5.

That way PhpStorm will warn you which parts will not work in production, show proper hints during writing code according to the selected version, etc.

Answer from Alejandro Moreno on Stack Overflow
🌐
JetBrains
jetbrains.com › help › phpstorm › php.html
PHP | PhpStorm Documentation
February 25, 2025 - To use the PhpStorm's bundled PHP stubs, make sure that the Default stubs path field is cleared and the vendor/jetbrains/phpstorm-stubs folder is excluded from the project. If the Add packages as libraries option is enabled on the PHP | Composer page of the Settings dialog (Ctrl+Alt+S) , PhpStorm automatically marks the vendor/jetbrains/phpstorm-stubs folder as excluded.
🌐
JetBrains
jetbrains.com › help › phpstorm › configuring-local-interpreter.html
Configure local PHP interpreters | PhpStorm Documentation
February 12, 2026 - In the right-hand pane of the dialog, specify the name and general settings for the new PHP interpreter. PhpStorm displays the version of the PHP engine detected in the specified folder, the debugger associated with this PHP engine in the php.ini file, and an action link to open the specified ...
Discussions

ide - How can I set the PHP version in PHPStorm? - Stack Overflow
My composer PHP version is synchronized to the phpstorm , so to explicitly choose the php language level from the setting, check that the option in the picture bellow is disabled. ... You can set this per project, as outlined by @Alejandro Moreno. There is also a global setting, that allows you to set the PHP Language Level for all NEW ... More on stackoverflow.com
🌐 stackoverflow.com
How can I set PHP 8.1 in PhpStorm? - Stack Overflow
Releases Keep up-to-date on features we add to Stack Overflow and Stack Internal. ... Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives ... Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... I wanted to change PHP version in PhpStorm ... More on stackoverflow.com
🌐 stackoverflow.com
PHP Version in lower right corner
Right-click on the status bar and select "PHP Language Level." More on reddit.com
🌐 r/phpstorm
3
6
November 23, 2022
How to work properly with different projects with PhpStorm + XAMPP?
Please avoid xampp, it's far away from real world production environments. Most people use docker for the dev & production machines. More on reddit.com
🌐 r/phpstorm
9
2
October 5, 2025
🌐
JetBrains
jetbrains.com › help › phpstorm › supported-php-versions.html
Supported PHP versions | PhpStorm Documentation
January 8, 2026 - PHP coding assistance in PhpStorm includes support for the added features, syntax changes and deprecations in different PHP versions.
🌐
Michael Smith
mikesmith.us › home › development › ide › phpstorm › how to change current project php version in phpstorm 2022.2.2
How To Change Current Project PHP Version in PhpStorm 2022.2.2 - Michael Smith
October 3, 2022 - Now we just select the dropdown under heading PHP language level and choose which version you’re changing to. There is also a brief description of some of the new features next to each language level. For instance, with PHP 8.1, enumerations, ‘never’ return type, intersection types, and ‘readonly’ properties are all new features. And that’s it! Those are the two ways to update the current PhpStorm project’s PHP version.
Find elsewhere
🌐
Phpjunior
phpjunior.com › change-php-version-phpstorm-terminal
change php version of phpstorm terminal
June 23, 2023 - here I changed the php version in laragon but the version in phpstorm terminal stays the same. ... then at the new window click on the “+” sign at top left corner.
🌐
Michael Smith
mikesmith.us › home › development › ide › phpstorm › how to set a default php version for all new projects in phpstorm 2022.2.2
How To Set A Default PHP Version For All New Projects In PhpStorm 2022.2.2 - Michael Smith
October 3, 2022 - From the navigation on the left, make sure you expand the PHP menu, then click on Composer. Second, uncheck the box for Synchronize IDE Settings with composer.json. Finally, click OK to commit the changes to the settings in PhpStorm. We’ll click on File > New Project
🌐
JetBrains
blog.jetbrains.com › phpstorm › 2019 › 12 › how-to-upgrade-to-php-7-4-with-phpstorm
How to Upgrade to PHP 7.4 with PhpStorm | The PhpStorm Blog
January 9, 2024 - Check out our fresh video with a few nice tips and tricks on how to update your codebase to PHP 7.4. It combines materials from the PhpStorm 2019.2 and PhpStorm 2019.3 releases, with a few cool bonuse
🌐
JetBrains
jetbrains.com › help › phpstorm › update.html
Update PhpStorm | PhpStorm Documentation
3 weeks ago - If the IDE instance is managed ... as a separate instance and transfer your settings from the older version, use the Backup and Sync plugin....
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360004623639-PHP-version-set-for-the-project-isignored
PHP version set for the project isignored – IDEs Support (IntelliJ Platform) | JetBrains
August 19, 2019 - file/Settings/Languages & Framewoks/PHP: composer.json: I got the following error: why is it saying that my PHP version is 5.6.40 considereing I have set it equals to 7.2.18 (see first...
🌐
JetBrains
blog.jetbrains.com › phpstorm › 2022 › 10 › phpstorm-2022-3-early-access-3-support-for-php-8-2
PhpStorm 2022.3 Early Access #3: Support for PHP 8.2 | The PhpStorm Blog
January 9, 2024 - If something doesn’t work correctly, you can quickly switch back to the previous version without interfering with your workflow. ... PhpStorm 2022.3 comes with full support for PHP 8.2. Most of the changes in the IDE will fit organically into your familiar PhpStorm workflow, so we’ll only mention the new features that you need to know about. As usual, you can try new features by setting the project language level to PHP 8.2. You can switch it from the toolbar or by specifying the requirement in composer.json. We’ve added full support for one of the most anticipated features of the upcoming PHP 8.2 release.
🌐
Adobe
experienceleague.adobe.com › en › docs › commerce-learn › tutorials › upgrade › uct-phpstorm
Using the Upgrade Compatibility Tool on PHP Storm | Adobe Commerce
December 10, 2025 - The upgrade compatibility tool run configuration template is located in the PhpStorm plugin menu and to run back configurations, you need to add new configuration and choose upgrade compatibility tool. In this template, you are asked to provide the details to run the upgrade compatibility tool.
🌐
Reddit
reddit.com › r/phpstorm › php version in lower right corner
r/phpstorm on Reddit: PHP Version in lower right corner
November 23, 2022 -

Hi everyone,

Recently I noticed that the PHP version selector that appeared in the lower right corner is not there anymore. I remember in previous versions that I had a selector where I could change the PHP version used in the project, but it seems like it's not there anymore

Any ideas on how to bring it back?

🌐
JetBrains
jetbrains.com › help › phpstorm › settings-updates.html
Updates | PhpStorm Documentation
October 8, 2024 - This page contains information about the current PhpStorm version and availability of a newer version.
🌐
JetBrains
jetbrains.com › help › phpstorm › php-8-support.html
PHP 8.0 | PhpStorm Documentation
June 26, 2024 - PhpStorm provides custom open-source PHP 8 attributes. To use them in your project, add a jetbrains/phpstorm-attributes Composer dependency as described in Install Composer dependencies.
🌐
Martyfriedel
martyfriedel.com › home › blog › how to configure phpstorm to use laravel herd's php
How to configure PhpStorm to use Laravel Herd's PHP | Marty Friedel
August 7, 2023 - Paste in your copied path from before, and PhpStorm should update and read your php.ini for Herd too.