title: How to install php extensions via pecl for different php versions on Mac
body: <p>I am not able to install php extensions like apcu for different php versions separately. I am running php7.1 and php7.3 (installed via brew) on MacOS Mojave</p>
  
  <p>I already tried things like 
  <code>pecl -d php_suffix=7.1 install &lt;package&gt;</code>
  as I found this suggestion here. But it doesn't work at all.</p>
  
  <p>The specific problem is to install apcu for php7.1 while php7.3 is also installed. No matter what I do - apcu get's only available for php7.3.</p>
  
  <p>When I run <code>php -v</code> I get <code>PHP 7.1</code>
  When I check the directory <code>/usr/local/Cellar/php@7.1/7.1.30_1/include/php/ext</code> there is no apcu</p>
  
  <p>Isn't there any way of telling pecl for which version it is supposed to install the extension?</p>