title: How to check php version in MacOS sierra?
body: <p>I have mac os sierra machine. When I start a php project in vs code, I get the following warning</p>
  
  <p><strong>language server needs php 7, and the version found is 5.6.27.</strong></p>
  
  <p>So I used homebrew to upgrade to version 7 and confirmed it from the terminal. I am also running mamp which show version 7.
  But in the terminal of vs code the php version is still 5.6.27. So I am bit confused?</p>
  
  <p><a href="https://i.stack.imgur.com/b1dRb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b1dRb.png" alt="enter image description here"></a></p>
  
  <p>I changed the value of <code>php.validate.executablepath</code> in <code>settings.json</code> in vs code from <code>usr/bin/php</code> to <code>usr/local/bin/php</code>, but still vs code terminal showing the older version (viz. 5.6.27)</p>
  
  <p><a href="https://i.stack.imgur.com/i9zdA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i9zdA.png" alt="enter image description here"></a></p>