3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = time(); $randomString1 = bin2hex(random_bytes(20)); $randomString2 = bin2hex(random_bytes(10)); var_dump( $time, $randomString1, $randomString2 ); // md5(time() . browser-details-string . "some-salt-string")
based on B7WR9
Output for 7.2.0
int(1449585894) string(40) "11917ec2e103f4db31ef8133f5e199c9d402bf0d" string(20) "bd0e1e408fe47239a8a3"
Output for 7.1.10
int(1449585894) string(40) "ceeb598222c04ad2401bda57c189db27d063925c" string(20) "19bd7f90e5e6158565af"
Output for 7.1.7
int(1449585894) string(40) "972de9328bc9e56a286ebc3e015c8a894b7cfe5f" string(20) "9bc04df7b7a5b5135370"
Output for 7.1.6
int(1449585894) string(40) "a8af4e9325fd5ae48e2eeb59346d777cbd6e61c1" string(20) "db41b0063bbee5d56853"
Output for 7.1.5
int(1449585894) string(40) "f25e5441f44cca10a942ed930968858e0b1418b5" string(20) "16b98649f4860b937697"
Output for 7.1.0
int(1449585894) string(40) "068e7f3e5d1d0a42ab051bb7b81496211984c06f" string(20) "bf9b7b0b0a4f91faac78"
Output for 7.0.20
int(1449585894) string(40) "9bcf246a16518b98e8f3aa019b0810e62d8720fc" string(20) "7a55b6e54ffe16d08236"
Output for 7.0.10
int(1449585894) string(40) "24086de86fe50e91788d54f321c6406aa9fea605" string(20) "c0885580b67bb889ab28"
Output for 7.0.9
int(1449585894) string(40) "955170eb9a6e87f016bc5540ca74f71d8faca153" string(20) "e8d3369cd3682f9c72ea"
Output for 7.0.8
int(1449585894) string(40) "1336fad04669e01a8713700117ea2d6d13692401" string(20) "7842c226ebc531f3ce4b"
Output for 7.0.7
int(1449585894) string(40) "942f37c6ef4b3cc272a0f751e540b1289bb6b40b" string(20) "f4e8bb7338dfa411c551"
Output for 7.0.6
int(1449585894) string(40) "40ea490851074eb3d1c6ae4177b9ff809d4e67c7" string(20) "0223454d29eb7af8d550"
Output for 7.0.5
int(1449585894) string(40) "7213d1f90a85ccc632d0b93f572a8de531681b7e" string(20) "22640a5b7c952348b2ef"
Output for 7.0.4
int(1449585894) string(40) "c1d35d725d719d942f595e2f163a72434b3f35cf" string(20) "42e726a2a1d7684dbd30"
Output for 7.0.3
int(1449585894) string(40) "9472a7ab075ecb64f968aca1bde1f4fc595d4fb6" string(20) "94f2a5767373684d0e40"
Output for 7.0.2
int(1449585894) string(40) "e771bf987e0fb5468bdd92524fa3e6b1f80aaed5" string(20) "183109fb4403a21117c5"
Output for 7.0.1
int(1449585894) string(40) "92f9b5573b57219045e535df09d38d02fffe3c46" string(20) "3a2e9484822df0084ce6"
Output for 7.0.0
int(1449585894) string(40) "17b0b32d200a262f884ace6ee5d68f8110dfda38" string(20) "b283dcc1ef53e004cc76"
Output for 5.5.0 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/ajvCT on line 5
Process exited with code 255.