<!DOCTYPE html>
<html lang="ru">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>PHP script</title>
</head>

<body>
    <?php
        $sleepTime = mt_rand(1000, 4000);
        usleep($sleepTime * 1000);

        echo '<p>container hostname (PHP): ' . gethostname() . '</p>';
        echo '<p>uptime: ' . shell_exec('uptime -p') . '</p>';
        echo '<p>sleep time: ' . $sleepTime . '</p>';
    ?>
</body>

</html>
