3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $random_string = function($length) { $bag = str_split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'); $string = ''; while ($length--) { $string .= $bag[array_rand($bag)]; } return $string; }; $client_id = $random_string(16); $client_secret = base64_encode(hash('sha256', uniqid(microtime(1), true), true)); var_dump($client_id); var_dump($client_secret);
based on kKhHB
Output for 7.1.0
string(16) "66mwBwWorFXM0chk" string(44) "o5IrXcs/q6osCOJWYN07BvRQ77rqgtJ9QYJGLHzfK6U="
Output for 7.0.14
string(16) "rSdRt0tbHRJ92W0J" string(44) "3P7UFZzTKhHgmHWSRf0Sy1fQcSJAXBJtzcdb6bdBzm8="
Output for 7.0.6
string(16) "YQ8HgT5fmOxKsbEQ" string(44) "KAb9+p2fB43sGpt0JI2LXlR45WQq3XLSTnX9n3mFKgE="
Output for 7.0.5
string(16) "xtfWNwdJLb7AMOnI" string(44) "4je8riussQqZZBiRpAUtsdUH813Dzl2PA5tK1rLDWiA="
Output for 7.0.4
string(16) "UGXQ6D9IFh4gGlNk" string(44) "pmPCmNHTHfbjLZXtgKJAvRa7Na2r+90ZUSqdRbgc0SI="
Output for 7.0.3
string(16) "xbi5rPwMTuAtf6Zq" string(44) "CRAs0DajqIKzLNXeBB0W/1sNt3hxq/j83tYMB0Va46Q="
Output for 7.0.2
string(16) "R2KxIpoxLQT2SXAi" string(44) "aUgJNrwAWF18oJLf3a1qKldLX3s+lO+aWMXcW+QO2RQ="
Output for 7.0.1
string(16) "oxeLNsmLcOa5osBr" string(44) "b+0h1TQBuIfjEux4MqVCNNFMDC8Kmia/g72meYtVMl8="
Output for 7.0.0
string(16) "OwZ0P6sVBc2PVLyG" string(44) "Spqvx9zRKP4nZszg+RwNl0PAuqAdacP5oDQlC/IVenE="
Output for hhvm-3.12.0
string(16) "3Dp1lPHD0C4wTGdo" string(44) "yP1sH+9qEgPEbWDUiEoO+FMb3Egf02bifZ334+Y1rI8="
Output for hhvm-3.10.0
string(16) "71nXHZwDiEwVTeQL" string(44) "N/emGc0oRYOKDqG4uMnlof6SqJaPlgF6+BBn3obutGY="
Output for 5.6.28
string(16) "wBJhx3uKQWEk65Qx" string(44) "Ds72AZYNTfnzWIfwjWzPfL6Q9KcmO+HAa1zFI6pCiu0="
Output for 5.6.21
string(16) "MQzTQLylGN0yG0ox" string(44) "2016icW+bKPkgJErfZvnO5eXzcrI4KQb8iZCSIFq2no="
Output for 5.6.20
string(16) "9hZeNPtMPJ7nbnuh" string(44) "pG/350I3YwN1RjPaYygL7kVGTDvhXizDkujxC2Nlgk8="
Output for 5.6.19
string(16) "KNBW7D96KTvmnzcr" string(44) "LfLH1QrXlKkzZwxXtVxmRaq9R0jeA3cuaOXzDoaWt+o="
Output for 5.6.18
string(16) "1pjAqgW162EzzASQ" string(44) "iRrdKiSVOrvOi7GoRqvBme1vrBQf7x+MPBmZIUtp9Uk="
Output for 5.6.17
string(16) "HJHmpYpd4tQIEaap" string(44) "3NcK69DEAN7YEiqJaXAy6rwv3f0uhGSbxD7rm1uu55c="
Output for 5.6.16
string(16) "JKCHD3TzejXuTs7j" string(44) "VeUMB9eZVkAwVp2tKvsr1fmB4i7Va7vPFgb3OSE1NOo="
Output for 5.6.15
string(16) "TfURi0YeaT7Xg0zt" string(44) "m+sWaZNnznSk1SbDcL3oJghOvDr+B5uxbcVvFlj29UA="
Output for 5.6.14
string(16) "T8GYOp5i40UPZCAR" string(44) "pDb9DxAIeWj8xn+9733VCA2Hg3Dm5vPwv8J/uzgz5Lg="
Output for 5.6.13
string(16) "ZXkCAoxhsnOkE5DH" string(44) "Dk7u8d14Mvp+TOAxqfT9wMp9w/aH1DWSGXjv6Lt7K3U="
Output for 5.6.12
string(16) "20FtRKLXQQPvswA4" string(44) "6XThwEpiyLA5f7/krFxwj+BxnDCAEsO8u4y/PVmHVUA="
Output for 5.6.11
string(16) "snNt8CqqweciLLhL" string(44) "6Dz0OfIPb0hp6TVF/SpovDO8Y+3p6Z/WosI+diN3bwg="
Output for 5.6.10
string(16) "FFb3NNCDSA05b5zq" string(44) "HP4w4XUmdVz4B1gzgrThQtsxh3lKV3BOswl0nfkJABk="
Output for 5.6.9
string(16) "3cskIBcn7jYzydAq" string(44) "h71WOS6g6Ab1l5iW+mWkrGgyDvoQKuiqsWhuhEAnla4="
Output for 5.6.8
string(16) "9X3Pg6iY36PH6yWQ" string(44) "upC7e7nGCzuOlSbWL7JEgl6PUnOof3rPqhsaym+JC0Q="
Output for 5.5.35
string(16) "rrpJ7iiuqTdwl69B" string(44) "L1ibhBb4qKcLQz8wipG4L4vCl2ZPgxgrwKa1O4HHjw0="
Output for 5.5.34
string(16) "di71fZoBFuYNWfLM" string(44) "jyhXP/lcz63psoiu9BCQ7i6WbUL0rS6mOlHw1jM6XE8="
Output for 5.5.33
string(16) "0bP6bVv0mIfQ64Cb" string(44) "RoD6iXj3HIskVYrOrIdsrGRkwkzji0mSUAbPe0OFopw="
Output for 5.5.32
string(16) "UaT2QNcoPS2JqX5H" string(44) "jQGwZ9wDZKnkrkKboF0Vmp70v93CQ/d9TffCe3UUwQE="
Output for 5.5.31
string(16) "FkvJZZzG0rPKjwgz" string(44) "cRvLQAUdRDtxJtK6ILKKCq3gTg3v5e89SYCUIWzpNZc="
Output for 5.5.30
string(16) "LmWgL5p7hZKIdpVE" string(44) "6wG+0fJDmSwMgu5usJlGJVXT2J5cAy/yRW6lPX4C6MQ="
Output for 5.5.29
string(16) "yODteYuriyDb4t4Y" string(44) "un+KgQ+FtrRU1CJSW4ggqzLLHHnBsjz2DXJpvgpNhGM="
Output for 5.5.28
string(16) "hM6SImWXLPq6Dh1T" string(44) "ABwW+sU0vSaySYgyQpcGpkNF95Dfv2R3vnKHxniQ1Wc="
Output for 5.5.27
string(16) "TCTTM1GOTeiWTNxN" string(44) "SmakFryp95cpJEjXFr4ye/bCi74JWDVhHSdETl+xzkQ="
Output for 5.5.26
string(16) "xp8I3wuKOaMNIqly" string(44) "nqzpVKADhLOAJxvT/TeUiFMliArcANXcIBbeay8oDzg="
Output for 5.5.25
string(16) "dlptRfoiA2dfax6P" string(44) "phK8do+ElfEH0+hPQ2mPMybepOhBpTNz/KPfzhd4ISw="
Output for 5.5.24
string(16) "eJLiiNpzaThsDt7A" string(44) "Z3UxYJUqJoKzAnaH0p4wG1RjOrM7JjuuiQo6rEIzUUY="
Output for 5.4.45
string(16) "Rs29tKRweD2AsqmH" string(44) "KQ93IYjL9553UesG1BMn8XqtGX8ITZVvNuQ5w1VZRuE="
Output for 5.4.44
string(16) "kyLPhh5P0bSroJqv" string(44) "XW2nluW0B7l1R9MBF1cghhVSqOJMda6+oW8KQT/sWsE="
Output for 5.4.43
string(16) "xtPX0XUXJwXAMCCV" string(44) "m2sOUbbH1X12Z5C0K80hLOvvGimzEIxSWoAd+mZNaCk="
Output for 5.4.42
string(16) "3dw5hStHkUtPyHi5" string(44) "me/GjFcIO4vp0NY+1avc5pl3jirZOiQMA5j2lmHIdBo="
Output for 5.4.41
string(16) "nyM8ZHKBcYgZzwZd" string(44) "SaQ++NA3MzVp5Ys35mjBH3YvLbTs9oiufo8uA53E1Yk="
Output for 5.4.40
string(16) "k2CbiiTqnCIjJoC5" string(44) "9bK/G8f3ABFgsL/2lDV5EqjPbpDAU/IQ9TUK8mvkcqA="
Output for 5.4.39
string(16) "Em0lRSLF0v0rYkux" string(44) "MTv+gXE/fytnVJ23EHpmBMhiNogYsMKKMGT7amen3Ek="
Output for 5.4.38
string(16) "XgYbvGLU0QU57bOJ" string(44) "2MYomwCO4PcZmnD09UDBP7+kwprYc+FxVkf63jgeJl4="
Output for 5.4.37
string(16) "KyZJPIgucQsrqWcy" string(44) "qUsRLhLFAg7u+X1choO5olHXqgMmS+bh6gbCRjBPD+k="
Output for 5.4.36
string(16) "qf7nWsT0dZXaYdig" string(44) "20NVx1xq65QFdPy/ER750UNMuM4gAAN36XhJAIjPbDo="
Output for 5.4.35
string(16) "qQYgP82t6ctr9Lw0" string(44) "kAPEkYts1ayoPomufSOHH8GpeeEA8bFr8I/52ZxBW6w="
Output for 5.4.34
string(16) "p23Wlpo4mvsOE2vL" string(44) "GcWItnCvcZntDVcy2wo3wrWi8k9ylUGV4HakYBLAoas="
Output for 5.4.32
string(16) "9tr81yipC0Ag4LWT" string(44) "lHGch2CIwYT1zNZaqjrhG2kcyL+9ds0tJBHcUulrSQc="
Output for 5.4.31
string(16) "3igN6KISCDUc2bgB" string(44) "EqqBJdpHpoLerx+n0HnZ5O8WVoLv3BEJGgwW9oLc5GU="
Output for 5.4.30
string(16) "3LSj0Vr2hYhHdZ1N" string(44) "FqQQJrycNHyex/4IjhtuX4U6k/l+mvCTnmkyTTZuVVs="
Output for 5.4.29
string(16) "xCzBcby3NJmFVu81" string(44) "FCXhMMniaaC70uN2fuXpHo7JI7GCFzws5RREGHNsLBc="
Output for 5.4.28
string(16) "Wd9fmjgGXEamuh6U" string(44) "WmscNY49OiIZnlVKLb/4yAQ9gnGnbqxa0HAhUPI6gLo="
Output for 5.4.27
string(16) "apGQYHbKCg5Zk0Qd" string(44) "6purSXHshRjeZb3a1KvUsUj2RgI5fbjYx4O6spnZRpQ="
Output for 5.4.26
string(16) "J6p0zm1PQSqURJGU" string(44) "ylYCYoZGM5+2vfkE/S0BAGcUJESf047yRVntSdaxAIk="
Output for 5.4.25
string(16) "kgvbFo0btdAeIHUU" string(44) "296CUt5CwPY8533ML8VcKEb4+f5pe0QFeqVrSjsOGhk="
Output for 5.4.24
string(16) "OOT2yj1rsu4qpLZh" string(44) "DKrzmudnMWyow5LGeaabE5QJTV360aWZd88QFcZreM8="
Output for 5.4.23
string(16) "ymfkGRhYmwivjnIh" string(44) "r6bGUnyOmGI4NfKJwzUNG6Pj3+u9mVtY+Pig/Kon2Vc="
Output for 5.4.22
string(16) "BfoX1xVKGPYcXg98" string(44) "/SijEghFdXtXaIQqSzbTRjqJkgVNbr+ZtP7hBMB8PxY="
Output for 5.4.21
string(16) "rw5OwXZCPMLUVNAB" string(44) "Do8EOER5fjU+cME8Mt+pB3+XKQjlc+/MM7Lmn4E80Sk="
Output for 5.4.20
string(16) "pmZ8VQZDsoQqJkJC" string(44) "jqJKN+gaIEkXho26rmimZYfu4e03BvxI6Fo82ZAh5qs="
Output for 5.4.19
string(16) "vDR4aa0mIREqWLm5" string(44) "XZBdPSZE/hrHk1MuVjVZljZSp2n6N99jYcB5oOYWDVQ="
Output for 5.4.18
string(16) "dSsiMaXXCx8736gn" string(44) "fLSvyNBMPKCVmSz9aMtq0GoBt04RyZLShppQ8zgtte8="
Output for 5.4.17
string(16) "8XXoCx4R60bWYZzo" string(44) "wtu32qjyuQASyv7o4cy9Hk1Oq/x5VR43MAECNP2XM8E="
Output for 5.4.16
string(16) "bKNFLPSG8xUXa52y" string(44) "7V1YRjXBpxKeRdu5pLpiMRrzpD7H2crZAAgETEUKlGg="
Output for 5.4.15
string(16) "9oUgHeWnAahrriM7" string(44) "MjFbITGasXnsDmolCE6zN5QMKSrQr/hdbEsV1gCXp7w="
Output for 5.4.14
string(16) "3SnEaBSrY2oOHLiV" string(44) "zw4NeK1j3r5xktul3spTX+yVEcbOZn8KikO2oqqEuU4="
Output for 5.4.13
string(16) "oZ1xnoHSI6UFUQ2p" string(44) "Mk+LWeb+d8xBed7HXLtDoo3ZBb2kn4Gc6eAoCgHkBIE="
Output for 5.4.12
string(16) "5eSFxqUrhPc5NT2a" string(44) "ZCjnFEvGks7DioyJSnLXONQ5ZvqlzcLEwumP4ZNAEyQ="
Output for 5.4.11
string(16) "cNV6UIOjGTLIrtJl" string(44) "PpWcm0PfpiToihXAPeSAdPGnWFBtQpm6lf0PHLGcPzA="
Output for 5.4.10
string(16) "WxWXLZJmMieHeZMK" string(44) "lvh0UA3WbPQgk3g6XCGCB3AT8SaCO+Zy4gLgbOo8/iA="
Output for 5.4.9
string(16) "YwIkc5D9QyCnfMkV" string(44) "mJoxhL8W5pBpMZUlAtzOfY6wgsXm/738VpjaqGR8qas="
Output for 5.4.8
string(16) "HFy3zKvv1tIaLTJO" string(44) "ibKY7kXnsBm0mQVpEjDRUFXxOtmUIEzKv1ZyS6fSr6Q="
Output for 5.4.7
string(16) "hJeI9ynM2QzsXsa3" string(44) "O0Zm7KxtwRhvcPnJBqO2pY+Cidi/C0uTzSiuvoqvJeE="
Output for 5.4.6
string(16) "NZKqCMr5nbA8WXYF" string(44) "lUUJnxsaegKKU5W58FsxTXeoWB6wQB9zvQ8Da822JTw="
Output for 5.4.5
string(16) "9AuqsMGspUiXnIpP" string(44) "xShqhaAyx2LWO9HCDjJzL+DZNimQR9SGzYZepTds8vM="
Output for 5.4.4
string(16) "VlejbXzm39ed2hbj" string(44) "bL58OZ2oDfGi4MinWgwAbzbJl4QYQ3hrn8vHTIieF6w="
Output for 5.4.3
string(16) "MaLqCIWFBcLEwuB4" string(44) "V9samo6fhqng9XzSN/UFn6nj/49ZooK+qJ5weRY+bjQ="
Output for 5.4.2
string(16) "ElpxK4GoevDBiO9V" string(44) "MrKZxuGJVvnANzM7UBU1VEa6BXJ5U4bznTkB+Ahak0M="
Output for 5.4.1
string(16) "6Ez7GHouaSnDMk4C" string(44) "QDlrx7leF6E64MTyfQGWtd1aCxcFaAohdwl39ijLOuI="
Output for 5.4.0
string(16) "sVshBdmhqjIfxpdh" string(44) "SefPi56fWQZlmgjIzeY2296B5yLoZSjCXFRcvz7i6PI="
Output for 5.3.29
string(16) "1ygpm9qdkfaGeDYe" string(44) "227X23Oq0V9VU4kf3U2e+1mSoqwN1x5pxwZokCzVu0I="
Output for 5.3.28
string(16) "M4Vhc5Srl6phXZGQ" string(44) "TihTyu0y31xYb9uH6IjjsJNVdBhGZ/HPCPDKuNS2w2s="
Output for 5.3.27
string(16) "ujo5aU69XXVXhnvR" string(44) "RBlIxQdMiGQrXAI/cgEc+WjM7qFmuBBkLNHNYGYUNGo="
Output for 5.3.26
string(16) "EM8skiNoIOJIhA1z" string(44) "CUwgq+rGAdwRzR2mZ1msVbxuS9xugpIRzTHmtjnisVo="
Output for 5.3.25
string(16) "QquYTLvAgAgjYb1I" string(44) "FMxDvA6F6PvHc91J5KFZLyZIvSNxExATPo6i+4qdVWo="
Output for 5.3.24
string(16) "4m9uL0flMQJGGcUL" string(44) "YTSt9Whal2SaWtFIDPfYVYhc1r7oRQk1LxYf1oeZsDc="
Output for 5.3.23
string(16) "TvPVDTuGGaa3M73Z" string(44) "bq0+NrQWuLcyT02lfDBrFEciCthixLTcUiDhs0uAb7E="
Output for 5.3.22
string(16) "BHXduROHTPh6TFn9" string(44) "WSfrz/nPI1n+Ta9tZ96WRqVvIcrt919CCyU5QsTZDzk="
Output for 5.3.21
string(16) "w1MWg63zpkR3L4Gn" string(44) "Jz9RjsnWsi3j1LdWCAybo6WShQSsdXfUPBnGpUAHbyE="
Output for 5.3.20
string(16) "JYfB2MZr5Z2Jg4Lq" string(44) "AmwM386TxjdvcY8AQWbmuxg6s3GMqImX3Vqg9ob6DkE="
Output for 5.3.19
string(16) "BoKdd2O1Uo4wSnzq" string(44) "9wmpXzqQ5F/JB27Ck4GjyUCpa4tkdOgecc2o1qNItGQ="
Output for 5.3.18
string(16) "ZzCPxsHELRw5FXXU" string(44) "6EFmBFc0y9g2MYinqs3p5Ek9rvjza2vf+jFcg7pPakk="
Output for 5.3.17
string(16) "8hOUHL4zKad8Tscf" string(44) "UntHhOcHzM0/4eBHWKesVClCV1iNEGzAVtxiskLVduo="
Output for 5.3.16
string(16) "3WQiRv3vtGlFfKru" string(44) "rTooE1c706Iwh1mZ0m1Kw587yBOS3+zNunizQ8tRs3w="
Output for 5.3.15
string(16) "WDUEmMdUAMaPFteY" string(44) "e68fu//givSGICheNG3SdlF/LhIAZm7IRBajK/2CL64="
Output for 5.3.14
string(16) "lFKZZkGGDozrA2ab" string(44) "g4putY+WVMpmN/62jJw3nbXHv6o+WIKt5rAeoT4wqhk="
Output for 5.3.13
string(16) "fIbiJScpeSYNGbWu" string(44) "O4zyzFhl9SFiqqO3PEizbd9hVJb+oQZ+Ld3uW9BcSTI="
Output for 5.3.12
string(16) "LXFFBctU0OCiMa5l" string(44) "aYKpZ2YD8D/548uEghO7z6IkL8CVHySNZZs6gcAEhOQ="
Output for 5.3.11
string(16) "9UsTIMcqHZ3oFZde" string(44) "iJNi7AIBIGgPaC5z4y8qbHXQaCA+xZyehCKH9RiTm2M="
Output for 5.3.10
string(16) "1su3ifHL3YVO4cu3" string(44) "kYnIOl2KsEQDqieAjXO4lTxrwrJIEZ33J28Ng/M/D2g="
Output for 5.3.9
string(16) "D0eGsIGFVbhRJPms" string(44) "Op0RHoM/7MfeLmZwKW0UwHaboY3nMykLl2k8Lkb+6BE="
Output for 5.3.8
string(16) "1vjbLU3hMEqmCWIO" string(44) "dEv+vig/O3TOtI4U8yyffZ6QDHcMkrpG/xjQ9tEsSe8="
Output for 5.3.7
string(16) "jhBcClMdekSqmGZl" string(44) "g6ln3i0Z4LUoA+AgD4r9bbBxUteKl2+P+AfMeOOBsO4="
Output for 5.3.6
string(16) "23xsll2HhmckImUY" string(44) "eD4nPEMKUTRkI/5M4DF3VEEi7pbXfk1AuQszNihQrFE="
Output for 5.3.5
string(16) "GmDrTYciwlA1eXP4" string(44) "2rc+v724UR0Wi09D0txPMCxcIuTSwzfR7HxVMlkF5KQ="
Output for 5.3.4
string(16) "ItbDWSfC7wYhAkl0" string(44) "TP15oJr7cmSe9k4ib2sezdmqmfIOncbwx4hufjrgKZA="
Output for 5.3.3
string(16) "U7mrUz7sWmx8Jo5q" string(44) "q1s7lzhb9ifI4aDtYzZUIEiQ6bUSPIGGI9jHYxhIa1o="
Output for 5.3.2
string(16) "oXOKRPj9UXH8RemW" string(44) "pj9Pdai25ZQbO1REeQMmy0e9pht9IXxPtY0X5+/jgqk="
Output for 5.3.1
string(16) "vwgZu4vhiXFOmw0a" string(44) "wvD8Ergcq7b2My4IQqm51ludJbVgta8qUYfwlRRe2qY="
Output for 5.3.0
string(16) "N5WSNBA1RtWujFgg" string(44) "kkG+mv29bmVTaxwKASUJe/SHmjJwymZSlzHoZGn5vpc="
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/5C6mU on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/5C6mU on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/5C6mU on line 3
Process exited with code 255.