title: Install specific PHP version for mac
body: <p>I need a specific version of PHP for magento (7.1.3)</p>
  
  <p>With home brew or curl, I can only specify one decimal (7.1, 7.2 etc).</p>
  
  <p>Running</p>
  
  <pre><code>brew install php@7.1
  </code></pre>
  
  <p>ultimately gets me </p>
  
  <pre><code>php -v
  PHP 7.1.29 (cli) (built: May 21 2019 20:05:17) ( NTS )
  Copyright (c) 1997-2018 The PHP Group
  Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
  with Zend OPcache v7.1.29, Copyright (c) 1999-2018, by Zend 
  Technologies
  </code></pre>
  
  <p>trying to install a specific version (like you can with node using nvm):</p>
  
  <pre><code>brew install php@7.1.3
  </code></pre>
  
  <p>gets me</p>
  
  <pre><code>Error: No available formula with the name "php@7.1.3"
  </code></pre>
  
  <p>I tried using a curl command, same issue:</p>
  
  <pre><code>https://php-osx.liip.ch/install.sh | bash -s 7.1.3 
  </code></pre>
  
  <p>gets me</p>
  
  <pre><code>Did or could not download package: 7.1.3-frontenddev
  </code></pre>
  
  <p>TL;DR: How do i install exact version of PHP (7.1.3) on mac?</p>