--- /dev/null
+<?php
+
+/**
+ * Checks the increased system requirements.
+ *
+ * @author Tim Duesterhus
+ * @copyright 2001-2022 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core
+ */
+
+use wcf\system\WCF;
+
+$phpVersion = \PHP_VERSION;
+$neededPhpVersion = '8.1.2';
+if (!\version_compare($phpVersion, $neededPhpVersion, '>=')) {
+ if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
+ $message = "Ihre PHP-Version '{$phpVersion}' ist unzureichend für die Installation dieser Software. PHP-Version {$neededPhpVersion} oder höher wird benötigt.";
+ } else {
+ $message = "Your PHP version '{$phpVersion}' is insufficient for installation of this software. PHP version {$neededPhpVersion} or greater is required.";
+ }
+
+ throw new \RuntimeException($message);
+}