Erfan Atp
Erfan Atp

Reputation: 393

PhpStorm Terminal result is different with OS terminal result

In the macOS terminal when I type php -v in the specific folder, it returns:

PHP 7.4.12 (cli) (built: Oct 29 2020 18:28:50) ( NTS )

But when I run the same command in the same directory in PhpStorm Terminal it returns:

PHP 7.1.23 (cli) (built: Feb 22 2019 22:19:32) ( NTS )

Anyone can help?

Upvotes: 1

Views: 426

Answers (2)

Erfan Atp
Erfan Atp

Reputation: 393

It seems we should open PhpStorm with the main OS Terminal like as this command:

open -a /Applications/PhpStorm.app/

Thanks to @lazyOne.

Upvotes: 2

Abilogos
Abilogos

Reputation: 5055

some IDE ship with a compiler/interpreter itself.

you can use their compiler/interpreter or your system compiler/interpreter.

PhpStorm ships with an integrated Php:

https://www.javatpoint.com/phpstorm

there a lot of such as these Ide`s like:

jupyter with integrated python

android studio with integrated java

this link help you to change the interpreter php:

https://www.jetbrains.com/help/phpstorm/configuring-local-interpreter.html

Upvotes: 0

Related Questions