3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hkey = "12345"; $date = new DateTime('now'); $shash = sha1($hkey.$date->format('Y-m-d H:i')); echo $shash;
based on J4WEB
Output for 5.3.19 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
17ac13a091d390bd657aed9db5c2e4e5db9ac4f6
Output for 7.0.6
1cf3d30ff6bbe217dcd53357982b70c4e8529398
Output for 7.0.5
cb59e75f68919da06c07fe3ad763cfbf1864a722
Output for 7.0.4
86e4b2b862dc13189cfb6926befcbd8b4246ab3a
Output for 7.0.3
e7353b2468c7bcb36d3a651c340c0c0feb7ea776
Output for 7.0.2
d932f13868740c509f4160cde3ad7478a11060cc
Output for 7.0.1
655fac74f0821b0033d8e73b44f029081e8566d3
Output for 7.0.0
30a6ffd8524d75372e72f2b3e67b11845e0bd355
Output for 5.6.21
8f00fdc59eb10cc29ebb06e6b1af47e5ff384f63
Output for 5.6.20
1c3721693d29636377443aded27dbce9b6755b5f
Output for 5.6.19
5128d446cde1e511f17bc6393985e7f2c9179197
Output for 5.6.18
02c8911c3129d7e17ec66d37beb2b0295e007874
Output for 5.6.17
3305bc78412f88ecc695aaffff699adbc68fa84a
Output for 5.6.16
13e40ed84c040540588c3893b044818ec20a4fff
Output for 5.6.15
54bfde7e22595eb11d717200648a20b97611f88e
Output for 5.6.14
18fa08020ac0d2b5ced2b7ae88764373a69021f8
Output for 5.6.13
048cf4cfb0e9e265d82de8423b6803e52b693e73
Output for 5.6.12
8755858b20a75f9d8d7827fd789bae14629a1385
Output for 5.6.11
62433c319f590b0e1e132047aaa42d6b74f8ba9b
Output for 5.6.10
29c771a042aa156ee4d62a303b8710e5939934ef
Output for 5.6.9
d44eccaa2e3dd8779bf546c4730b9e95f14097f2
Output for 5.6.8
e61a639669741749f5dfe0576f8a22d8964ec567
Output for 5.6.7
0c5cf96c2bd9d304fc4817a3ecd88094c179d483
Output for 5.5.35
cdc872d98cce546e6abb1118bd0ed3acb3565707
Output for 5.5.34
c90e5b7d90925b1a499a90e21d5bbe38fb1cdd4c
Output for 5.5.33
f021a9853e3d1d8fd819c13b5084e40208aa10b2
Output for 5.5.32
ea41c745464c15d614741b9fbefdffc59c9af804
Output for 5.5.31
dd2e6b799df7ce2f0f9694f2f6e00a895b0d481d
Output for 5.5.30
6a4817f066c760a352968ce997d7c954590ac884
Output for 5.5.29
27a3a070b935a5a606ed452dc4ce3602d4206512
Output for 5.5.28
df29fa90c3116ca671f3fa1937c94028150e6e1d
Output for 5.5.27
cf1f787c52a5494b2344cc22f5af3f12003081b4
Output for 5.5.26
f687eeef4b4f4421bd2b6a734169a81dc1213b38
Output for 5.5.25
9cdd9da6b4c92822f8e21ffa0e65ae2c01f8a784
Output for 5.5.24
79115df650dc508d20cddf5682eaeed4a2aad3f4