Moodle Supported PHP Versions

  • Moodle 3.0.1 and later support PHP 7, however
    • Moodle 3.1 and earlier does not support PHP 7.1 or later (this means that there is currently no combination of releases of Moodle and PHP that are still supported before Moodle 3.4);
  • Moodle 3.4 and Moodle 3.5 require PHP 7.0 or PHP 7.1 or PHP 7.2
  • Moodle 3.6 requires PHP 7.0 or later
  • Moodle 3.7 requires PHP 7.1 or later
  • Moodle 3.9 requires PHP 7.2 to 7.4
  • Moodle 3.11 and 4.0 requires PHP 7.3 to 8.0
  • Moodle 4.1 (LTS) requires PHP 7.4 to 8.1
  • Moodle 4.2 requires PHP 8.0 to 8.1

REFERENCE

https://docs.moodle.org/403/en/Installation