Your server can have different CLI and Web PHP version. If you try to run “php -v” command on your server CLI, you might get different version that actual version using by your server on Web.

To check your server Web PHP version, please upload a test.php file with phpinfo() inside which will give you exact version of the PHP using your server.