3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hkey = "12345"; $date = new DateTime('now'); $shash = sha1($hkey.$date->format('Y-m-d H:i')); echo $shash;

preferences:
68.8 ms | 402 KiB | 5 Q