Please make sure wordpress is actually using that PHP version.
In the root folder of your installation should be a index.php file.
Replace the line that starts with require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
and change it to:
then refresh your wordpress site in the browser and you should get an info-dump of what it is really using.
Afterwards undo this change to get back to regular functionality.