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); $raw_hash = hash('sha256', uniqid(microtime(1), true), true); $client_secret = base64_encode($raw_hash); var_dump($client_id); var_dump($client_secret);
Output for 7.1.0
string(16) "u8t77G2SrTW8VWQB" string(44) "1+YPKkstE6MlNK4KpmHZWVmVWDDmJhIBMq6XHPbsM5M="
Output for 7.0.14
string(16) "3qdGLfnJpP2GnUfU" string(44) "cyCEsjOOFWPApFoPUw6ZEk+AWQnIQnU/XEKXrg4GOUI="
Output for 7.0.6
string(16) "8elpSbQ4ehZBHog3" string(44) "st2phKshsNpQt2/NqEHcQ6g6MIiUl4W9LLx+45r5Hfw="
Output for 7.0.5
string(16) "xkaapbD09dJCXcvt" string(44) "aqk/J/LG6kUPtHEOqHBupu0BN/Dma4y6WLWSRvQJHZc="
Output for 7.0.4
string(16) "etgjOIB1rKPipht7" string(44) "BJDdMVFEK41YbFYq5DZqd1i3Gw31cZCbD3KONzlTUDQ="
Output for 7.0.3
string(16) "T2gZ1wdXmP0HzjBO" string(44) "lj9AuL+rNvrAmwk/+E2gcrp1W4Km4M6cfBbw5etehqo="
Output for 7.0.2
string(16) "RYCH70sSJ1RPnyBf" string(44) "eSEinARh9iBlUT0OSfK+K+dfFhQ07tmfNJpVQLDmjRE="
Output for 7.0.1
string(16) "ob9UiVQbw35KuLKz" string(44) "GHnCwbW1pFkRhEUAadxU54+WSPua977QeWCFMO8+7Fc="
Output for 7.0.0
string(16) "iWPEk7C25bhaHQfN" string(44) "5mBm+nG0dBg05t0BrVrnKYqbnleqV4FpxD2SxbMDsqE="
Output for 5.6.28
string(16) "HZi8KSnLXv5AtqjF" string(44) "scIXEx5JwYu4MlkNOgm/irrQ3l1NeQSD6C3evfWEgoI="
Output for 5.6.21
string(16) "FrOHRNe3J6hzrweB" string(44) "mSjbiRQHzti44efkeH61hZkS1waSggyKAudXqWDRfBc="
Output for 5.6.20
string(16) "WOrtGN4gucRBSnzY" string(44) "q0hxsOR8EqNgfwP4OHHE2WPU+wMK4VT1fYGF9X87rAs="
Output for 5.6.19
string(16) "c7XQ0JtGzUyp7bNl" string(44) "++PLxWVXp4BOm1DBVh1BJXBnf4bk0kIgMyQjGo44d74="
Output for 5.6.18
string(16) "dTHhdgi8hk1gzrCs" string(44) "jX91xz4Pmwp5+nzM53w7WZNWoLp6wleMMYj2GMK2baE="
Output for 5.6.17
string(16) "WxJUXWWzVL3lixpe" string(44) "7BCHLDqxK8/lnNwS9XMqL9o3GzUYyPa1ZwzY6vfVly8="
Output for 5.6.16
string(16) "EyghQ5ktAnhdLqSQ" string(44) "EbPw2tzhx/0hXINgaKG5daAZSg9MkSKFWOte6Pw+8h0="
Output for 5.6.15
string(16) "XOWVgejBd0IqUP0c" string(44) "NT+TX6oviMTWx7DAtg/yO0yXXv9wpdbiBGuNb8cJmKA="
Output for 5.6.14
string(16) "U3m6kxtFoGysP4OF" string(44) "D27MXJ3LkcKc0jyPLZG4lT3XyiqWhGasaiFbx1UHqxY="
Output for 5.6.13
string(16) "TGuXbitrVHrn3mAo" string(44) "cgUZU5YNgumgTeR1zbdYGhGSwxdwyKzUu2fmJzI1960="
Output for 5.6.12
string(16) "MnFlbLquV9bANaWd" string(44) "ev1iW1l7AlbJE2k95Cd43LhHyPiC+x0xOv6QukLb1hs="
Output for 5.6.11
string(16) "kHQgAMpN8XBztg26" string(44) "X0J0GJV6PSuDUlVbm9RP1Bt4NgjI/MMkO2g3sb0y3BI="
Output for 5.6.10
string(16) "nvLpUcb7ylMFOhId" string(44) "yK1KX8Q8IJAEK/0pJ5cVR+vmRHOGxOUugP0NAnKFRf4="
Output for 5.6.9
string(16) "srGms2yfLLsmCXXP" string(44) "y5Rlric4+x15W2EIv37CIOpLt3fSKwHsLa47etiO/y8="
Output for 5.6.8
string(16) "ow0yPb1F1njH74F3" string(44) "7sJt9lWIvhzfKEx8jPu5oljhLH94Oo1zIkWtqFBoBT4="
Output for 5.5.35
string(16) "UzuIdSJIcGalH6Ta" string(44) "eAAd1vA0qHcOPh3QjmJFBvTqrzunYyw2A15RmUfBMdk="
Output for 5.5.34
string(16) "RJmBCRDXbY0iAUpa" string(44) "V0A2eterxmhfG5KazXhE9R1+pY7ErxoLiqRLmDI1YL8="
Output for 5.5.33
string(16) "X3qKrqy3J7qFBVkN" string(44) "7/E41jGzjgMcre0duJG05weMvKsIV8+WTFE01vfdbD4="
Output for 5.5.32
string(16) "VrohOrutWaB9qv0O" string(44) "GuC39IZ9WJ3Fx4LtzfVOHD7LcYXoAhFey7r8kyx5EkA="
Output for 5.5.31
string(16) "SBfKC4X6xsEOrNnH" string(44) "ITHvCVqGl9nNCRu6QKCuSucD1JyA1wfLklB7CkPh/yY="
Output for 5.5.30
string(16) "PZBDBcvD0rovTtU5" string(44) "rmk0rPOWJtQb3uHAVTBS0CZLKaQl20LPvtQtEpSbzq8="
Output for 5.5.29
string(16) "mX1XpGVM4ITInT5Z" string(44) "bCm8yoJ0CSntSBOAXQDVdSxGkrGms4Pf0caJBSKb/V8="
Output for 5.5.28
string(16) "HvMqC35YMRlG99Kw" string(44) "Fz2SG+VcF/AH+GNLx0VaK6ZVcnb7WkzM82qlJYvdbS4="
Output for 5.5.27
string(16) "xp28KhPsA6J8Ec5H" string(44) "V1dmeIvyH2uaX3KIggr/YGgmJ8ePG6GPyyIh4E1pjew="
Output for 5.5.26
string(16) "tMQDKfHLigFpQy4c" string(44) "+SkxVn1TAnWS41K4Ai/lahL0i9MtFSP7PzL1RMdYG9A="
Output for 5.5.25
string(16) "i6kWH4owzYehq4Q1" string(44) "kuYEfuEqvBKSENNworN/vHHccjynPkEEOodYUQV9vs0="
Output for 5.5.24
string(16) "DvBG6prwTwbN6TVy" string(44) "cSGta8xs1utZpLfahg1IoNtzMKWklxq2CDHy6Vyw6VA="
Output for 5.4.45
string(16) "fs6IucCXUiflwnR6" string(44) "tq401PqM+3dExinEtAPJ5Wc1JVXF8NAJ4iUop35e2KU="
Output for 5.4.44
string(16) "iFBfuJlvDynYlkvp" string(44) "UzQORHrYRFfE0U0C772t8GV35meypmbztiIKcU9TJXw="
Output for 5.4.43
string(16) "HKOQxlfJph2VVZRy" string(44) "LkM2NRT5j8Jt1xZq4Z05WBceLg3PDctvf6l1dPVP/VI="
Output for 5.4.42
string(16) "5aRdUmozl2RDNMVh" string(44) "RqaxcGDriOhaJiyjYLsRy1ycWOzGSk6ZbTLF33E3QWA="
Output for 5.4.41
string(16) "UxaeLN2SLLu7mtB2" string(44) "ztTmsglgmdbsbYY+u118HwL5c6xRwiA00k1amhiiEac="
Output for 5.4.40
string(16) "38D2RkyCadDnFzyQ" string(44) "nsCS8SSnMtGH+0TlgdayTM525OozGD34OJeJ4gx3ImM="
Output for 5.4.39
string(16) "t7oqu7A9OKMdaWTV" string(44) "G8FwoDZohUc3LgLzEc4nssy3TLljM7VWl4VUKi72zs4="
Output for 5.4.38
string(16) "K5b3Brifns9MXxQK" string(44) "k/aDHKk2B9rfxcjFejTj8shWx+ivozCELJ6GAtwCK7Y="
Output for 5.4.37
string(16) "ECPUPkQZSm8gYzMO" string(44) "ceRrtXO6Bd5WgdoK4SqBYZsJFjc//gC2hxWqSnTrhus="
Output for 5.4.36
string(16) "piojIJR43P4VsIoK" string(44) "GrSdRpush/3hGB5gE2rTWWXbBKLrXRUjE4xbcsvfbms="
Output for 5.4.35
string(16) "UgiGuBcyUySLcfOh" string(44) "4ZCf4r5pa2ZYdMEEHZVlM23Yyk+owYXMKoNhtyKxZN0="
Output for 5.4.34
string(16) "pD49d4d5HTIUvKwZ" string(44) "6VZLTIZNBIDEVg3pvP13vtKSkljloYK6pRBu0L/1HR0="
Output for 5.4.32
string(16) "CKDcZNTGYSrvSVjt" string(44) "9MDy6ED5Q/mwZwMvmQdUGHPIiexp7QYahxp4FDoYiUc="
Output for 5.4.31
string(16) "uC7dhXBq51s0hBcV" string(44) "OtJbs8T3LScIGF1RtAEl0hRQpwOYeL5WfsBPi3/18xc="
Output for 5.4.30
string(16) "ejFN1XTgLASk7jKd" string(44) "O18ZWENKGS0Vsx0avEv9TTL8q4VJmmblO9bFYREv7E4="
Output for 5.4.29
string(16) "rFkt3o8d7ip277aN" string(44) "kPvEiRB3sYNUJh1av7neBgVApnvPw3LjFDikEeYKoTM="
Output for 5.4.28
string(16) "sZ0JkzQlsrTKzHlK" string(44) "QTEklJfWqeDG/prPoTGtFFuesbcC/mo6ggFLdSq/wqg="
Output for 5.4.27
string(16) "zsnLSPLQiPyF6FuC" string(44) "fiUHABbcbTyL6hHT0kHea/n7sGp6E9/YLWsxJLd0olQ="
Output for 5.4.26
string(16) "iWYAm7VxtY8yvI3b" string(44) "uILVL6MfAR9SZpBtUD0b53k+e9WDf3PeVnesKv1BOb0="
Output for 5.4.25
string(16) "EdgDxlmJ3O0LFqBx" string(44) "4aSQ66Rn1Y7yHbuRcDR7rcOHfU8bUmv5nwqm+wYJoHA="
Output for 5.4.24
string(16) "Rgk4OYgV7bb5vrOV" string(44) "p8faHbwsI41dazpUuUW+DTktl/CsW1ZM2mPjxv8QZiY="
Output for 5.4.23
string(16) "gXRGhJ0jHv1WQ0Kw" string(44) "vK3/6WxCWxdLRkcZGqEKOnriCLslf528vByvuelU34s="
Output for 5.4.22
string(16) "ckHgkui15DXzIOQw" string(44) "ThfkquztX6YZgYjPhvwyYv8FHBiG6v4htsAx6O2m09o="
Output for 5.4.21
string(16) "apYiWQbZMbwRebSt" string(44) "vL/40L7jOdYq0V6PfxpkY0svNyUKU6mifIXezGgi8kw="
Output for 5.4.20
string(16) "77q3OAZ9zlbW5pUD" string(44) "JDab4WphbKFgpF2rjnyIMXvF46JxUNSfEOq/pBHUq1Y="
Output for 5.4.19
string(16) "6aKNHwlpcFRVmA3c" string(44) "B/KDj4xX7SeovEpRuYK0pgsOFnNBh5503l7CRpS0Tsc="
Output for 5.4.18
string(16) "O9r02X5H8mTQbLea" string(44) "3riJM0aOhwLyVuM+pebw/8jMV6Tzt+gWqZ25r1wcKK8="
Output for 5.4.17
string(16) "9HaKUYNrlpyCVIaq" string(44) "KGvUH14G13KDHmVXl9MzrNqtgo/9Q7xCvKqtUBw8WyA="
Output for 5.4.16
string(16) "RHwWdmxgcGbRIfrF" string(44) "pdyE2OaPgTdrYdDXz/1oW3SEXjp0ZZpEicS1+uJV5Vg="
Output for 5.4.15
string(16) "w32vxg3SuUEyPVfS" string(44) "/RDb1twg3xxcWVeiMvmP2npgNswR7Fcae5mKxckUmpo="
Output for 5.4.14
string(16) "Au9LQOFIeNcFVUZi" string(44) "MacEeBKCnnySLU7asBHTOLs5MpeIOJ4yLIFwqbOiclk="
Output for 5.4.13
string(16) "OsxZo1FYC9A0JVCg" string(44) "stVCu0oYsDN98QbpedIqqJ8LyswX7uC9sbuNAu/cJz0="
Output for 5.4.12
string(16) "y2EvBt8vvhOhbhIl" string(44) "G5VWZGWB7jAvWN3N0F5bwqOzUYxtC9nYzTflitCOrkY="
Output for 5.4.11
string(16) "6kPa582GbA9aWRxs" string(44) "V1h7Sgv09frDC1DLhvZdMed92FSPKaUHmoCzrlHoE+w="
Output for 5.4.10
string(16) "w4xowl1yV4vhl4kx" string(44) "HgKAp00a0RrBNsoZb6R3VvXmVEiE/wMIP7ha8lTqd6M="
Output for 5.4.9
string(16) "SlIDWdlAVlPNXj0p" string(44) "i5vuP2hM3+yTFjKc1xOA61B7fRAIwBuNU54qAYvGx3w="
Output for 5.4.8
string(16) "6EhAs3c2nz8ye4UI" string(44) "TM67KX6WskEBgQ2zXFq0oLaRUftMvpkERg9Fm99jfvs="
Output for 5.4.7
string(16) "JvzGlDdKgc0Ew8pl" string(44) "5fHFotp7deI/KMyvU+LC8xiPACGQtWRWzCHizD1p8Qs="
Output for 5.4.6
string(16) "2QgKpslCAudi2jqe" string(44) "FzTN/xc2M5+6zQTl0LlJn0/yvYTW/azW9UEbrLa8dF4="
Output for 5.4.5
string(16) "PUk7lnGjhI6NH57J" string(44) "vkeQdvL/HunmzWmKr9Tedbv8M1bHBe8UL+OD6tH9vKk="
Output for 5.4.4
string(16) "LIyjsvvzsfwrJkQX" string(44) "hUkZhi5KUGBbHcHf3aPWmYSMS9euKTnTgKEdgizXI6o="
Output for 5.4.3
string(16) "4CCLCPhVwSJjA0V8" string(44) "l6XMPS5F4ax3tS8xL01MxN0U1JfMu82PXq4KBMIAdmo="
Output for 5.4.2
string(16) "6ntHrg4M4K57r0Af" string(44) "eGdaAdYa5da/kt+/wRAhT66+M0HJcuST1/PvB/Mt1MA="
Output for 5.4.1
string(16) "e0V0ciXM31C4M0kq" string(44) "b6hZrC7FT9Pz1qaoIq+X3j45bAKfB0AhM40Lr6W4QYI="
Output for 5.4.0
string(16) "iejLhPu0346Ul6Rz" string(44) "vD8eqwtD4mCVcz8ZhA6eC90u/2EI8TdjX+sGMXCONI0="
Output for 5.3.29
string(16) "jujLPTOfT7sTBHs2" string(44) "Mr3Lajd0HU6lsPKqxdSPGyGPnXyDZ17Gu9Rwv9T+D94="
Output for 5.3.28
string(16) "rlAMyr3Ukew1bLLy" string(44) "DhqkjFyPZBe1O4QlFKqDF7f0fQ4NrC39fIIZ2AXtHds="
Output for 5.3.27
string(16) "G3Xh0RVgbeuAaIQd" string(44) "qqOsvBdrFFXPFq7PvxB8yOSWpOeniK1QsnOHfdaHvpQ="
Output for 5.3.26
string(16) "MMiV4FE30Eg0oTVM" string(44) "HPG+Mqd0fe0qAcQjGrMgorYemCFwcr2+kpLZ9/xTI5c="
Output for 5.3.25
string(16) "X6F8qfgUamJpBj3c" string(44) "ChpqEHnLbmgOF4coZfc7VmBuOWN+tgiuuJGJnkFbbBU="
Output for 5.3.24
string(16) "eUCMqcsK7b5LOfIZ" string(44) "mt8gnoBikLRRrPNxXpjaEbgrBU94AiJ+m3f4P6OEtNA="
Output for 5.3.23
string(16) "GftbINpDnu8N1uOq" string(44) "2/m2sIxV3I+x6jUKnzC/n+BFl5eUkXBeubXv63HWmvk="
Output for 5.3.22
string(16) "BVj4OBDc5DvE3GSQ" string(44) "cF/lZh9NSuT2wiIhdiPc84Vo6+9Is5jL4S9vJTEQD7g="
Output for 5.3.21
string(16) "g3IvW33932aep3oo" string(44) "/TiBahAtL9IdT/hRFdBt4ki/bzWAenVsN/Kw5GhK2L0="
Output for 5.3.20
string(16) "fbuae7Ne5LONOOvo" string(44) "2kl5Rfop53jJRutOBlFnvCrlDQ4kLWbcFY4wZS1Y/0c="
Output for 5.3.19
string(16) "NrPWpI3dOieJQgHo" string(44) "pSaDFi/dItX1/9csIhr7Fj7Q4KbFxDyQsA3zn/YIEMg="
Output for 5.3.18
string(16) "DnGW2TqJGPNLh5NB" string(44) "xr7dz4GC//cx/7KQzOrIS0ES1GGpOvOGNZtK1NiAc7w="
Output for 5.3.17
string(16) "UCuVlnkT3o5tJgYB" string(44) "cR8bje2UlhTzXgJ39fDdwXLsj15UcCuZpwMUAQtyLgA="
Output for 5.3.16
string(16) "6QpyUtTfxwO6KE2O" string(44) "YpajEAp31WZNKauJUUNK1j0LWhbpxns5ISZowgEuhu4="
Output for 5.3.15
string(16) "Cp3GZ4Pbqj6Fk0d1" string(44) "XrvU2eZ0FObcLZkxhBVsi3WOwl3FGVvLwYVTue5Zu7o="
Output for 5.3.14
string(16) "n7dkVw61iuwrRsL1" string(44) "kRfjg/TxQlmSHw4MZfEbXnMMq12gGbD7VPpdCpyl9sU="
Output for 5.3.13
string(16) "PET6W0OUJqtHquS6" string(44) "6Wq454BBpqjieP+lmlcVwQ6uNvwZGCMpAUEvPmeNfCc="
Output for 5.3.12
string(16) "FDn05yB40hNZYCi0" string(44) "oZwX5+IfGe0JuEhRfosLtWrlBZ4SZXVmzNVnBmW7d2w="
Output for 5.3.11
string(16) "qrpP65mRP8Kptotp" string(44) "v8wmu8+ytgB7TguSACEiWVlu2w00sdBoutvuapX6rfs="
Output for 5.3.10
string(16) "nmFpDJ1HIsjq78jR" string(44) "ppNuOlRQ80bAtJc10UHqy5neYms4x1Bp1ip8tpo2AWc="
Output for 5.3.9
string(16) "GddDoTaqzHC9gCfk" string(44) "urzDSUaT36FwoQdbVobTUnLTatLLcMIUf2ymJDAqLHo="
Output for 5.3.8
string(16) "v8opyhCVrklwuWDm" string(44) "hp7w072V/YId/Xh7uCsicJ4ApjdvQ6f8xIjMelhEQy8="
Output for 5.3.7
string(16) "iYfZhOzQo6Tedg9b" string(44) "D2PpQ3RIF4Xi5eH2ujSiyDI4DRD+NpnLYcQ6QDVlST4="
Output for 5.3.6
string(16) "CDKmLI6aP8ORiSHC" string(44) "vBfzaTiL4zgg31bX17qp7kTmuG+BOvSduJeQe595v8Y="
Output for 5.3.5
string(16) "SFLmeuAroNhLF9wu" string(44) "pDTnLa8Gvu7Tm9Ai+7+N9l2VrnAaffbCZ5jRw6IDMoE="
Output for 5.3.4
string(16) "l4oMAiCpa5zdgmg4" string(44) "6lfYLGcJ7CoLdj5brZWGZiz6PkvpwcYqsjszHpwG4Ac="
Output for 5.3.3
string(16) "6kwZbQLU2vElBjNf" string(44) "kTX0CcND3V/TXxNDpJU44A6pqMhk/7AI5UKEouYHJ4g="
Output for 5.3.2
string(16) "uZQDPSTwuQo1042E" string(44) "WL39eE5qsclVieuNXLzRl8wLGbGihCAFEVu3b0T8ElY="
Output for 5.3.1
string(16) "kBxF41LxPduqrfLn" string(44) "4MzwLwnZYB+d2NlcMjkxSA+F6zm30zoZM093lk5Zs5A="
Output for 5.3.0
string(16) "c3eMIguabrEIFgIN" string(44) "EA2vIho+ofBA3UG8eA/SaRsicdiKN5IMIXby+4R9sPc="
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/WeLDP 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/WeLDP on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/WeLDP on line 3
Process exited with code 255.