PhpStorm 2024.1 Help

Supported PHP versions

PHP coding assistance in PhpStorm includes support for the added features, syntax changes and deprecations in different PHP versions. The supported PHP language levels are:

To set the language level for your project, go to the Settings dialog (Ctrl+Alt+S) |PHP.

Change PHP language level

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. However, if you attempt to use a code construct that is not supported by the specified language level, PhpStorm suggests a Switch to PHP <version> quick-fix.

Last modified: 11 February 2024