How can you determine if PHP with IMAP support is running or not?

To determine if PHP with IMAP support is running, you can create a PHP script that checks for the presence of the IMAP extension using the `extension_loaded` function. If the IMAP extension is loaded, then PHP with IMAP support is running.

if (extension_loaded('imap')) {
    echo 'PHP with IMAP support is running.';
} else {
    echo 'PHP with IMAP support is not running.';
}