http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases
The row for 3.7 of moodle
3.7 php min 7.1 php max 7.3
PHP from command line doesn't use the same PHP as web, but rather, php-cli.
So from CLI and in moodle code directory:
which php
that will show the path to php-cli
Use that path with -v to show version of PHP.
In moodle code directory:
/path/to/php-cli -v
Obscured ... not really a .x
elearning.wnu.edu.x
elearning.wnu.edu.x. 14400 IN A 95.217.x.x
Hosted with Hetzner Online GmbH
Non evasive curl test to site shows:
Server: Apache
X-Powered-By: PHP/7.2.34
In moodle code directory ... does an .htaccess file exist?
If so, there is a line in that file that sets PHP version.
Highest you can go is 7.3 with moodle 3.7
.htaccess files are controlled by panel.
Question: where you are currently hosted, can you upgrade hosting environment? If so, what would be lowest/highest of PHP in the upgraded hosting? (don't do that until known)
'SoS', Ken