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( phpversion, $time, $randomString1, $randomString2 ); // md5(time() . browser-details-string . "some-salt-string")
based on ajvCT
Output for 7.2.0
Warning: Use of undefined constant phpversion - assumed 'phpversion' (this will throw an Error in a future version of PHP) in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "3ee9f190ff576872c3bee4f0ce33ae6164275a21" string(20) "ae8d17dac98d66ebf0a6"
Output for 7.1.10
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "b1576756901e9fa17788494855e32235e698b305" string(20) "709f7417100d9f9f6ac3"
Output for 7.1.7
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "835f168cd7b813e4de530f350422e476cb6f5750" string(20) "5bb289193ad22ed3278d"
Output for 7.1.6
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "be6892850b9339f34c65416457017fa63a29a901" string(20) "b732173d4b327c92c047"
Output for 7.1.5
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "291916eb2e29183e544c509afaad50a675d9d593" string(20) "0cf175c3adbcacbaf719"
Output for 7.1.0
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "8c4741988e21ce4b5ed48843a99f3436cd53c8cb" string(20) "571807af6492a95b0d4a"
Output for 7.0.20
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "5ff67ab693e51c181009d0f7c78f473e326564fa" string(20) "1cf94aab50ee1f369036"
Output for 7.0.10
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "9d096eaf53f3d20cc4ef79dadf255206e633b225" string(20) "437d61d3838d62df452a"
Output for 7.0.9
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "70023db3e53d61ebbb095e223946f0360541f4dd" string(20) "32807443d690bd6d90a2"
Output for 7.0.8
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "67e83fd1f7482f4e0dc90d3b195330ac8ab88e95" string(20) "72e7dd7f835de6dda7fc"
Output for 7.0.7
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "27f51b1690355cb3e0e2975d64c74f91a3924183" string(20) "cdf952355e4582488693"
Output for 7.0.6
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "1b873984d11f22e1d3fc7f5110b75f286f26e093" string(20) "6b22d735c56b72c65336"
Output for 7.0.5
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "ca0a349481936093b88dd013a38578dc077f9ee4" string(20) "a14be336b81f639e1ad0"
Output for 7.0.4
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "fc05e317e3574522a9a1731de85ce7cafe629984" string(20) "957df526eef759ea6d18"
Output for 7.0.3
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "8b4e71b80d017cdef13f9cf4d6944b307bba311c" string(20) "bc18945ab3351804aa80"
Output for 7.0.2
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "0523b24fe2e8a8a2ba5b521d8653abbed3556a84" string(20) "f433a57aa36c884fd9b5"
Output for 7.0.1
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "217f513858b1972b8c4bdf6e02f9ffea0f78a643" string(20) "dba16408363ff0dfd52f"
Output for 7.0.0
Notice: Use of undefined constant phpversion - assumed 'phpversion' in /in/BdU8P on line 10 string(10) "phpversion" int(1449585933) string(40) "d565f499166966eeed42423d960d327fa3a6900e" string(20) "16e5f31405b0a787ca1a"
Output for 5.5.0 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/BdU8P on line 5
Process exited with code 255.