title: How to upgrade PHP version in Windows?
body: <p>I'm using the WAMP server (x64 in windows) and recently upgraded my PHP version by downloading and installing the files from <a href="http://wampserver.aviatechno.net/" rel="nofollow noreferrer">Wamp Server Files</a></p>
  
  <p>I configured apache and changed php.ini file for needed extensions and it's working very well.</p>
  
  <p>When I go to localhost -> phpinfo (in WAMP Server), It shows me the version as <code>7.3.4</code> which means PHP upgrade is working on the server.</p>
  
  <p>But, when I run <code>php -v</code> on CMD, I get the version as 7.0.10 (My previous version).</p>
  
  <p>I tried these things</p>
  
  <ul>
  <li>WAMP server tray icon (Right click) -> Change PHP CLI version -> 7.3.4</li>
  <li>Adding PHP 7.3.4 path to the PATH variables (It's <code>C:\wamp64\bin\php\php7.3.4</code>)</li>
  </ul>
  
  <p>But, still it does not work.</p>
  
  <p>Then, I tried <code>where php</code> in CMD.</p>
  
  <p>It gave me this result.</p>
  
  <pre><code>C:\wamp64\bin\php\php7.0.10\php.exe
  C:\wamp64\bin\php\php7.3.4\php.exe
  </code></pre>
  
  <p>In PATH variables, there's <code>C:\wamp64\bin\php\php7.3.4\php.exe</code> which I added. But, there is no <code>C:\wamp64\bin\php\php7.0.10\php.exe</code>. Where does it come from?</p>
  
  <p>If I could remove that, I think I could solve the problem.</p>
  
  <p>Or is there any other way that I can solve the problem?</p>