Apart from environmental stuff, the moodle_minimum_php_version_is_met() function is executed by all installs (web, cli, database, ...) and halts any installation (early) not meeting the PHP constraints.