To do this, I have a file called test.php sitting in the root of my Moodle dev environment. I can put random code in there, and load the page in my browser, to see the result. Primitive, but it works. Currently, that file seems to contain
set_url('/test.php');
$PAGE->set_context(context_system::instance());
echo $OUTPUT->header();
print_object(userdate((new DateTimeImmutable("today 23:59", core_date::get_server_timezone_object()))->getTimestamp()));
echo $OUTPUT->footer();
