To download & install the PHP Interpreter and use it in PHPStorm :

1. Visual C++ Redistributable

  1. Make sure you've installed Visual C++ Redistributable for Visual Studio 2015-2019 : x64 or x86

2. PHP Interpreter (CLI)

  1. Download the last version of the PHP interpreter (current: 2020-Apr-14 / PHP 7.4.5) at https://windows.php.net/download
  2. There you've to choose between Non Thread Safe (NTS) and Thread Safe (TS) versions.

    • If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions.
    • Otherwise proceed to download the Thread Safe (TS) version.
  3. Click the "Zip" link that suit your processor architecture (x64 for 64bit, x86 for 32bit or lower).

  4. After the downloading the file, extract the .zip archive in the directory of your choice (for example, in C:\php\)

  5. Open the directory you just extracted, you will see bunch of directories (dev, ext, lib, ...), DLL files and executables. Spot the php.exe, that's our PHP interpreter :)

3. Configure PHPStorm interpreter

  1. In PHPStorm, go to "File" menu (Windows), then Settings (Ctrl+Alt+S).
  2. Go to "Languages & Frameworks", then click on "PHP".
  3. Click the ... button from the "CLI Interpret" field.
  4. Add a new interpreter by clicking the + button.
  5. Here, provide the PHP Executable path to the php.exe we've spotted earlier (eg.: C:\php\%currentPhpVersionDir%\php.exe).

    If done correctly, PHPStorm will display the PHP version & the path to the configuration file (php.ini).

That's all for linking PHPStorm to a PHP interpreter in itself.

Answer from Adri1 on Stack Overflow
Top answer
1 of 1
15

To download & install the PHP Interpreter and use it in PHPStorm :

1. Visual C++ Redistributable

  1. Make sure you've installed Visual C++ Redistributable for Visual Studio 2015-2019 : x64 or x86

2. PHP Interpreter (CLI)

  1. Download the last version of the PHP interpreter (current: 2020-Apr-14 / PHP 7.4.5) at https://windows.php.net/download
  2. There you've to choose between Non Thread Safe (NTS) and Thread Safe (TS) versions.

    • If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions.
    • Otherwise proceed to download the Thread Safe (TS) version.
  3. Click the "Zip" link that suit your processor architecture (x64 for 64bit, x86 for 32bit or lower).

  4. After the downloading the file, extract the .zip archive in the directory of your choice (for example, in C:\php\)

  5. Open the directory you just extracted, you will see bunch of directories (dev, ext, lib, ...), DLL files and executables. Spot the php.exe, that's our PHP interpreter :)

3. Configure PHPStorm interpreter

  1. In PHPStorm, go to "File" menu (Windows), then Settings (Ctrl+Alt+S).
  2. Go to "Languages & Frameworks", then click on "PHP".
  3. Click the ... button from the "CLI Interpret" field.
  4. Add a new interpreter by clicking the + button.
  5. Here, provide the PHP Executable path to the php.exe we've spotted earlier (eg.: C:\php\%currentPhpVersionDir%\php.exe).

    If done correctly, PHPStorm will display the PHP version & the path to the configuration file (php.ini).

That's all for linking PHPStorm to a PHP interpreter in itself.

🌐
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 php.ini file in PhpStorm's editor. Clicking next to the PHP executable field opens a separate information window with the installation details and the list of loaded extensions and configured options. Customize the configuration settings of the PHP installation in the Additional area of the CLI Interpreters dialog.
Discussions

Using PHP as CLI Interpreter in PhpStorm
Issue Summary I would like to use the version of PHP tied to the site in LocalWP in PhpStorm as the CLI Interpreter for things like Composer and PHPUnit. If I open the shell, run which php, and then paste that URL into PhpStorm for the interpreter it almost works. More on community.localwp.com
🌐 community.localwp.com
3
0
December 3, 2021
php - How to add interpreter to PhpStorm 2016.1.1 - Stack Overflow
I am brand new to PHP, but very familiar with JetBrains IDEs, so I chose PhpStorm as my IDE to learn. I can create PHP files just fine, however finding and installing an interpreter has proven to be an issue I can't figure out. I have downloaded PHP version 7.0.6 from php.net, but it is just ... More on stackoverflow.com
🌐 stackoverflow.com
April 10, 2019
PHPStorm 7 don't find PHP Interpreter on Windows - Stack Overflow
Set the PHP exectuable to wherever you put your download above. It just needs to see php.exe · That's it. I've been using that to run Composer from PhpStorm... though I'm not convinced by the results. As an alternative I would highly recommend using Vagrant for your PHP needs. You don't need PHP in Windows at all, and I've been developing this way for about 2 years. PhpStorm's remote support (including Vagrant, SSH and Remote Interpreter... More on stackoverflow.com
🌐 stackoverflow.com
October 31, 2013
apache - How to install CLI interpreter to run .php file in PhpStorm? - Stack Overflow
I'm trying to open a .php file in Chrome for a while now but I couldn't because it seems like it doesn't have interpreter: Whenever I tried, it keeps on showing Object not found: When I use XAMPP, ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
JetBrains
jetbrains.com › help › phpstorm › php-interpreters.html
CLI Interpreters | PhpStorm Documentation
Use this dialog to configure PHP engines as interpreters, refer to Configure local PHP interpreters and Configure remote PHP interpreters.
🌐
Medium
medium.com › @zacbanas27 › a-quick-guide-to-configuring-php-on-phpstorm-35aa163048e4
A quick guide to configuring PHP on PhpStorm | by Zac Banas | Medium
November 30, 2021 - So now you need to point your PhpStorm to the php.exe file in your XAMPP folder, which if you listened to me and are on Windows, should be located at c:\XAMPP. If the XAMPP folder is not there, you need to find it and follow the rest of this tutorial with the proper path in mind. We are going to bring up our PhpStorm again and click on the three dots next to the entry field “CLI Interpreter”
🌐
JetBrains
jetbrains.com › help › phpstorm › configuring-remote-interpreters.html
Configure remote PHP interpreters | PhpStorm Documentation
February 12, 2026 - If no configurations with this host are found, PhpStorm displays an error message informing you that path mappings are not configured. Click in the Path mappings field and map local folders to the folders on the server manually. For details, see Configure custom mappings. By using the Docker configuration type, you can access a PHP interpreter installed in a Docker container. Make sure that Docker is downloaded...
🌐
DEV Community
dev.to › arielmejiadev › add-a-cli-interpreter-for-phpstorm-in-montereyos-1l8p
Add a CLI interpreter for PHPStorm in MontereyOS - DEV Community
April 23, 2022 - If you are using PHPStorm too maybe you want to take advantage of the running tests feature, but you need to configure a PHPCLI interpreter and every version has its own executable path.
Find elsewhere
🌐
Quora
quora.com › How-do-I-download-and-install-a-PHP-interpreter-on-Mac-for-using-with-PhpStorm
How to download and install a PHP interpreter on Mac (for using with PhpStorm) - Quora
Answer: The simplest approach is to download and install MAMP. I have the Pro version, which has a few perks, but you can start with the free version and it might be all you need. MAMP & MAMP PRO
🌐
JetBrains
jetbrains.com › help › phpstorm › php.html
PHP | PhpStorm Documentation
February 25, 2025 - The PHP plugin is bundled with PhpStorm and activated by default. If the plugin is disabled, enable it in Settings | Plugins as described in Managing plugins. Use this page to configure PHP development and unit testing support in the project ...
🌐
Stack Overflow
stackoverflow.com › questions › 58814468 › how-to-install-cli-interpreter-to-run-php-file-in-phpstorm
apache - How to install CLI interpreter to run .php file in PhpStorm? - Stack Overflow
What you need is a PHP interpreter and optionally a webserver. When you are using Windows, you can just install PHP to use it for CLI. I am personally preferring running both in a local Ubuntu installation (just for free in the windows store).
🌐
JetBrains
jetbrains.com › phpstorm › download
Download PhpStorm: The PHP IDE
June 2, 2021 - Download the latest version of PhpStorm for Windows, macOS or Linux.
🌐
GitHub
gist.github.com › VeryStrongFingers › 973ef6343d1a38cf1badbc788ad9caf2
PHPStorm - PHP-PHPDBG Interpreter proxy · GitHub
Learn more about clone URLs · ...c788ad9caf2 to your computer and use it in GitHub Desktop. Download ZIP · PHPStorm - PHP-PHPDBG Interpreter proxy ·...
🌐
JetBrains
jetbrains.com › help › phpstorm › configuring-php-development-environment.html
PHP development environment | PhpStorm Documentation
January 22, 2026 - PhpStorm integrates with your PHP development environment for running, debugging, or unit testing the applications opened in the IDE. Integrate your PHP engine with PhpStorm as described in Configure local PHP interpreters or Configure remote PHP interpreters.
🌐
Tinkerwell
tinkerwell.app › docs › 5 › getting-started › phpstorm-plugin
PHPStorm Plugin - Tinkerwell
The plugin allows you to evaluate PHP code using the configured PHP CLI – even via SSH. It comes with database query inspection and a table mode. You can download the plugin from the JetBrains marketplace:
🌐
Experts Exchange
experts-exchange.com › questions › 28969416 › Configure-a-Local-PHP-Interpreter-for-Phpstorm.html
Solved: Configure a Local PHP Interpreter for Phpstorm | Experts Exchange
September 13, 2016 - You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the webmaster. Error 403 localhost Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24 2- Phpstorm asking me to Configure a Local PHP Interpreter.
🌐
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 - Let’s jump back to PhpStorm and pop open the settings - Cmd + , (yep, that’s Command and the comma key) or from the PhpStorm menu, and select PHP on the tree on the left. Look at your CLI Interpreter, and go for the three dots to the right of the dropdown.
🌐
7th Zero
7thzero.com › blog › setup-php-xdebug-and-phpstorm-on-mac-os-10-7-xcode-4-3-2
Setup php, xdebug and PhpStorm on Mac OS 10.7 + Xcode 4.3.2 | 7th Zero
Once the CLI Tools have been installed ... change to take into account the fact that Mac Lion doesn't ship with wget: Download the phar file: curl -O http://pear.php.net/go-pear.phar...