This issue is most likely caused by your server setup. Please check what PHP version you are using. It is strongly recommended to use a minimal PHP version recommended by WordPress.
However, we recommend upgrading to PHP 7 (and newer) as it boosts your website performance significantly.
You may also want to check out your server’s PHP settings.