diff --git a/lib/versioncheck.php b/lib/versioncheck.php
index 8477442935a87..6a5bda54055e2 100644
--- a/lib/versioncheck.php
+++ b/lib/versioncheck.php
@@ -26,9 +26,9 @@
*
*/
// Show warning if a PHP version below 7.4 is used,
-if (PHP_VERSION_ID < 70400) {
+if (PHP_VERSION_ID < 80000) {
http_response_code(500);
- echo 'This version of Nextcloud requires at least PHP 7.4
';
+ echo 'This version of Nextcloud requires at least PHP 8.0
';
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
exit(1);
}