Hi,
No version of PhpMyAdmin is installed "by default" !
It is you and only you who choose which version you want to launch, either via the Left-Click menu of Wampmanager, or via the home page of Wampserver ('http://localhost/' ) and, in these two methods, it is very clearly indicated if the version of PhpMyAdmin is not compatible with the version of PHP used.
As RiggsFolly pointed out, you are confusing "database manager" (DBMS) and graphical interface to access DBMS.
PhpMyAdmin and Adminer - regardless of the version - are graphical interfaces to the database managers MySQL and MariaDB.
Changing PhpMyAdmin version will not solve your problem!Nevertheless, if you want to replace PhpMyAdmin 4.9.7 by the version 5.1.1, it's extremely simple and easy, just install PhpMyAdmin 5.1.1 and choose "Replace the existing version".
All versions of PhpMyAdmin are available on
https://wampserver.aviatechno.net---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons