<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PHP Version Error</title>
    <link rel="stylesheet" type="text/css" href="../assets/css/404-css.css">
</head>
<body>
    <div id="clouds">
        <div class="cloud x1"></div>
        <div class="cloud x1_5"></div>
        <div class="cloud x2"></div>
        <div class="cloud x3"></div>
        <div class="cloud x4"></div>
        <div class="cloud x5"></div>
    </div>
    <div class='c'>
        <!-- Heading for the PHP Version Error -->
        <div class='_404'>PHP Version Error</div>
        <hr><br>

        <?php
        $currentPHPVersion = phpversion();
        $requiredMinimumVersion = "7.4";
        $supportedMaximumVersion = "7.4";
        $errorHeading = "PHP Version Error";
        $errorMessage = "Your server's PHP version is {$currentPHPVersion}. You need to use PHP version {$requiredMinimumVersion} or above for the script to work! Currently, versions up to {$supportedMaximumVersion} are supported.";
        ?>
        
        <!-- Display the current server PHP version and the required version information -->
        <div class='_2'><?= htmlspecialchars($errorMessage, ENT_QUOTES, 'UTF-8'); ?></div><br>
    </div>
</body>
</html>