Reputation: 393
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
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
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:
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