If you get the same error like below in VScode editor then you are the right place to
"PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath setting"
Solution: this error is shown because the PHP IntelliSense extension in VScode editor.
1) To solve this open setting button or go to file -> preferences -> settings
2) Search php and select PHP IntelliSense like below Image