Composer uses wrong php version, but php -v shows the correct one (Ubuntu) : <p>I'm trying to install my composer packages, but it gives me this:</p>

<p><code>This package requires php &gt;=7.0.0 but your PHP version (5.5.9)</code></p>

<p>But <code>php -v</code> gives me this: <code>PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )</code></p>

<p>I am running an Ubuntu 16.04.3 LTS machine, I found some soultions for Mac and Windows, but nobody seems to have the issue on Linux?</p>
