php version not change

Hello,
When i change the php version on virtual server, it seem not change, and stay on old version.
I use phpinfo in my file to know the current version, but i’m not sure that it’s the good way…

thank in advance