title: How composer check php version?
body: <p>I just wondering how composer check which php to use when check for requirements. I use MacOS and in terminal type:</p>
  
  <pre><code>composer require phpunit/phpunit
  </code></pre>
  
  <p>the result is something like:</p>
  
  <pre><code>Problem 1
  - phpunit/phpunit 5.0.4 requires php &gt;=5.6 -&gt; your PHP version (5.5.27) or "config.platform.php" value does not satisfy that requirement....
  </code></pre>
  
  <p>When I check php version:</p>
  
  <pre><code>php -v
  </code></pre>
  
  <p>The result is:</p>
  
  <blockquote>
    <p>PHP 5.6.10 (cli) (built: Jun 12 2015 14:08:56) Copyright (c) 1997-2015
    The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend
    Technologies
        with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans</p>
  </blockquote>
  
  <p>Which is:</p>
  
  <pre><code>which php
  </code></pre>
  
  <p>php: aliased to /Applications/MAMP/bin/php/php5.6.10/bin/php</p>
  
  <p>Can someone explain this. Thanks in advance!</p>