In my terminal put that command
# php -v
i am getting
PHP 5.6.23-2+deb.sury.org~trusty+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
but in my localhost phpinfo(); i am getting 5.5.9
PHP Version 5.5.9-1ubuntu4.14
how can i got 5.6 in locahost phpinfo(); i am using localhost wamp server in ubundu os..