Hello,
with the command you check your version, i guess you use
php -v
you check the version of the php which is shipped with the os.
I recommend to upgrade your Plesk version to Obsidian, on Plesk Obsidian, Plesk services do not depend on system PHP