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 › supported-php-versions.html
Supported PHP versions | PhpStorm Documentation
January 8, 2026 - There is no enforced correlation between the PHP version used in the project and the PHP language level configured in PhpStorm. Although the language version of each interpreter is detected automatically, you can still tell PhpStorm to provide you with coding assistance that corresponds to a different language level.
🌐
JetBrains
jetbrains.com › help › phpstorm › php.html
PHP | PhpStorm Documentation
February 25, 2025 - The page and all the pages under this node are available only when the PHP plugin is enabled. The PHP plugin is bundled with PhpStorm and activated by default.
🌐
JetBrains
jetbrains.com › help › phpstorm › configuring-local-interpreter.html
Configure local PHP interpreters | PhpStorm Documentation
February 12, 2026 - 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 ...
🌐
JetBrains
jetbrains.com › phpstorm › whatsnew
What's New in PhpStorm 2026.1
June 2, 2021 - Explore what's new in PhpStorm 2026.1, including integrated MCP tools, expanded AI agent support, project indexing optimization, and Laravel updates.
🌐
YouTube
youtube.com › jetbrainstv
How to upgrade to PHP 7.4 with PhpStorm - YouTube
A few nice tips and tricks on how to update your codebase to PHP 7.4, with some cool bonuses to boot. https://jetbrains.com/phpstorm/ 0:32 Why update? 1. Sec...
Published   December 20, 2019
Views   12K
🌐
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 - 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 ...
Find elsewhere
🌐
JetBrains
jetbrains.com › phpstorm › download
Download PhpStorm: The PHP IDE
June 2, 2021 - Download the latest version of PhpStorm for Windows, macOS or Linux.
🌐
JetBrains
jetbrains.com › phpstorm › download › other
Other Versions - PhpStorm
June 2, 2021 - Get past releases and previous versions of PhpStorm.
🌐
JetBrains
jetbrains.com › help › phpstorm › php-8-support.html
PHP 8.0 | PhpStorm Documentation
June 26, 2024 - In PHP 8, throwing exceptions is allowed in all places where expressions are accepted, for example, in arrow functions, the coalesce operator ??, and the ternary operator ?:. PhpStorm provides a live template that lets you quickly add a throw ...
🌐
JetBrains
blog.jetbrains.com › phpstorm › 2023 › 11 › phpstorm-now-supports-php-8-3
PhpStorm Now Supports PHP 8.3 | The PhpStorm Blog
PhpStorm now provides full support for PHP 8.3 feature: the new `#[Override]` attribute and `json_validate()` function, and more!
Published   September 17, 2025
🌐
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 bonuses to boot.
🌐
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?

🌐
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 - Before we start, take note of the current projects PHP version in the Status Bar along the lower right corner of the IDE software. The default, out-of-the-box configuration that PhpStorm uses is PHP version 5.6.
🌐
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 - We’ve added full support for one of the most anticipated features of the upcoming PHP 8.2 release. There is a quick-fix to convert a class with only readonly properties to a readonly class, but we also added inspections to make sure that readonly ...
🌐
JetBrains
blog.jetbrains.com › phpstorm › category › releases
Releases : The PhpStorm Blog | The JetBrains Blog
Welcome to PhpStorm 2026.1! This release brings new PhpStorm MCP tools, new third-party agents inside your IDE, support for Git worktrees, and lots of other productivity-enhancing features for PHP and Laravel developers.
🌐
JetBrains
blog.jetbrains.com › phpstorm › 2026 › 03 › phpstorm-2026-1-is-now-out
PhpStorm 2026.1 is Now Out | The PhpStorm Blog
3 weeks ago - Welcome to PhpStorm 2026.1! This release brings new PhpStorm MCP tools, new third-party agents inside your IDE, support for Git worktrees, and lots of other productivity-enhancing features for PHP and Laravel developers.
🌐
JetBrains
blog.jetbrains.com › phpstorm › 2025 › 12 › phpstorm-2025-3-is-now-out
PhpStorm 2025.3 Is Now Out | The PhpStorm Blog
January 22, 2026 - Welcome to PhpStorm 2025.3! This release brings native Claude Agent integration, out-of-the-box Laravel support, support for PHP 8.5, improvements in generics, a new Islands theme, and more.
🌐
Reddit
reddit.com › r/phpstorm › unexpected/incorrect php version when running unit tests
r/phpstorm on Reddit: Unexpected/Incorrect PHP Version when running unit tests
June 27, 2022 -

Hi, probably me doing something stupid but after much google-fu and delving in storm's preferences I still cannot crack it.

I am running a mac and use brew to install / switch between multiple PHP versions. In terminal I am running the expected PHP version (8.1):

$ which php

/opt/homebrew/opt/php/bin/php

$ /opt/homebrew/opt/php/bin/php -v

/opt/homPHP 8.1.7 (cli) (built: Jun 9 2022 14:08:46) (NTS)

Copyright (c) The PHP Group

Zend Engine v4.1.7, Copyright (c) Zend Technologies

with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans

with Zend OPcache v8.1.7, Copyright (c), by Zend Technologies

In Preferences -> PHP

I have PHP language level set to 8.1 and CLI Interpreter to my 8.1 executable location (which shows the correct version and xdebug version).

However, when I run my unit tests it is using my php 7.4 version.