WordPress and PHP Version Upgrade issue [closed]

The version of PHP used in the cli and your web server can vary depending upon your hosting and/or Apache configuration. Obviously, you are checking the command line interface version.

You can use your cPanel to determine what versions of PHP Apache is using, you can install a PHPinfo type plug that shows the standard phpinfo() output in the WP admin area, or you can create a simple phpinfo() page outside of WordPress.