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.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.