<?php
/* $_GET is set even for command line
execution, this may depend on your php.ini settings. $argv suffers from the same
ambiguity, so isset($argv) may not work either, though it is far less likely to
be set when accessing over the web. If you find this does not work, try testing
for an argument count in $argc.
*/
if (isset($argv)) {
$argument1 = $argv[1];
$argument2 = $argv[2];
echo "\r\n";
echo md5($argument1)."\r\n";
echo md5($argument2)."\r\n";
}
else {
$argument1 = $_GET["argument1"];
$argument2 = $_GET["argument2"];
echo "\r\n";
echo md5($argument1)."<br />";
echo md5($argument2)."<br />";
echo "Current date and time: " . md5(date("Y-m-d H:i:s"))."<br />";

$dt = new DateTime();
$dt->setTimezone(new DateTimeZone("America/Phoenix"));
$dt->setTimestamp(time());
echo "UTC: " . $dt->format("Y-m-d H:i:su");
}
/*Source: http://stackoverflow.com/questions/9612166/passing-command-line-arguments-to-a-php-script*/
/*Example site: http://www.miraclesalad.com/webtools/md5.php */
?>

d41d8cd98f00b204e9800998ecf8427e
d41d8cd98f00b204e9800998ecf8427e
Current date and time: 98480139a12b9012ce3430cfd0d23cf2
UTC: 2025-07-06 03:04:07000000
2025-07-05 20:04:07000000
20-digit date: 20250705200407000000