在终端和phpinfo中混淆了php版本

I'm confusing with my PHP version showing in my terminal and phpinfo info. as you can see in the image attached below.. diffrent between phpinfo and terminal info

anybody can help me fix this. Im trying to learn cakephp and the missing part is only the extension intl.

You either upgraded php and did not restart the web service (FPM or Apache) or you have two versions installed, and they are not slotted correctly. For a more complete answer, please provide more information about your environment.

Open terminal and enter

which php

Change to your correct php dir in

~/.bash_profile