3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = time(); $randomString = bin2hex(random_bytes(20)); var_dump( $time, $randomString, $_SERVER ); // md5(time() . browser-details-string . "some-salt-string")
Output for 7.2.6
int(1449585779) string(40) "0c30f80537abeb87a5dd06c226d621436d923946" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0037) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.2.0
int(1449585779) string(40) "841d750271254cfbdd4b2b83fb851834f6d44c16" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0041) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.1.10
int(1449585779) string(40) "3115a47ab4546f751f3e5463548e388b485eb784" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0036) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.1.7
int(1449585779) string(40) "959fbebee8c3bc0f29ead803e721f2af281b4aed" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0027) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.1.6
int(1449585779) string(40) "24c9399ec748c94bdc08e5bb7ca422321a5d3afa" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0128) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.1.5
int(1449585779) string(40) "2d9168a52d38885e47041592787731418d84135e" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0062) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.1.0
int(1449585779) string(40) "8381494d059913601fcb77a0b34ad58e54f796dc" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0039) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.20
int(1449585779) string(40) "a74559aa513337859bc624f98602829b892ad02d" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0025) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.10
int(1449585779) string(40) "91d37e800652232404a46aae0d6746fe5ca22659" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.004) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.9
int(1449585779) string(40) "92c8f74f7b4fdef5d5f09309f44dd03a8e16988d" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0028) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.8
int(1449585779) string(40) "4435e68e57168d94ed7d02988b99b0bc4862bfd0" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0025) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.7
int(1449585779) string(40) "9f4c4cd676b1b4d26dd098c2b21eda667f78d008" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.003) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.6
int(1449585779) string(40) "1cda61f1b1895a8d6506c07945c563cada1f1ae3" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.003) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.5
int(1449585779) string(40) "107d7fa1aef90202bb50980875bfa982fc541f5f" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0026) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.4
int(1449585779) string(40) "eb60d9f0e9a14a9909cb98452f403e8807d134e1" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0036) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.3
int(1449585779) string(40) "772c8bf9075dc5751762ac34d8a285c3a470cfa8" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0028) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.2
int(1449585779) string(40) "5ccbe2f27b9bb023737fe4fb48a79bf5e72c0313" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0037) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.1
int(1449585779) string(40) "9cbd083249e4dfc870b45ef038cc7e0974ff4199" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0028) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 7.0.0
int(1449585779) string(40) "4951a9574c425951817400d54d7fa9d9f2855c55" array(18) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" ["PHP_SELF"]=> string(9) "/in/B7WR9" ["SCRIPT_NAME"]=> string(9) "/in/B7WR9" ["SCRIPT_FILENAME"]=> string(9) "/in/B7WR9" ["PATH_TRANSLATED"]=> string(9) "/in/B7WR9" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1449585779.0039) ["REQUEST_TIME"]=> int(1449585779) ["argv"]=> array(1) { [0]=> string(9) "/in/B7WR9" } ["argc"]=> int(1) }
Output for 5.5.0 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/B7WR9 on line 5
Process exited with code 255.