If you have changed the PHP version but your website still shows a different version, it is possible that cPanel has added additional PHP configuration code to your .htaccess file.

Go to your cPanel -> File Manager and open your public_html directory or the directory containing your code.

Open the .htaccess file (It is a hidden file so you may need to enable hidden files in the file manager configurations) and look for a section similar to the one below and remove that. Save the file afterwards and clear your browser cache.

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

What are you looking for?