3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bcrypt = password_hash('blabla', PASSWORD_DEFAULT); $sha256 = hash_hmac('sha256', $bcrypt, $bcrypt); var_dump($bcrypt, $sha256);
based on P6PAO
Output for 7.1.0
string(60) "$2y$10$cjHZLVarsIf1qah94ftL3enKh7V6t0aoXnHzo3/RoGYaGYUOWXvii" string(64) "50c030801392ca78492ae7dba5b7f81e3b5a9634a9e3fd5b1af0af2e82149362"
Output for 7.0.14
string(60) "$2y$10$DEfiBjJrWfKQ./52kDpvW.3WsoCj1axxW4FQGEXTbBnkjItLDKsFa" string(64) "e952688a387a03de9ca00b92ae3d87b04ae11987ba36fab0b1e51b37825661e6"
Output for 7.0.6
string(60) "$2y$10$poL8f8Wx1DsTTY88ZvI3O.UaTQM4uGtLxnAYotk1QOr4RTx52KGFO" string(64) "6e0c5ca33b5905326788b0a160ee335be715397e23d7a3c8118a79df22bdb239"
Output for 7.0.5
string(60) "$2y$10$RfeOOiGr9Fv1VcLp9F0LSOqBa5jRspJYTb4Vbp3F.iY.ohyMcNiLy" string(64) "a1688e286b48ea716a607294a9d03aca27264fb94631499d00137a5e5c967acb"
Output for 7.0.4
string(60) "$2y$10$QeDw./VjUd8O8pOJl5PPe.BC.MDIWio4.wYmS1nQ.i6.7Y5iReUgu" string(64) "1f98cf4d12338d9db6c34745258966ac867783375029d7993382529a32783ccd"
Output for 7.0.3
string(60) "$2y$10$/5QIQ1QQplFNFTURrqbPQuJNP/GcJnP9HGEreeLNwmK3961GHlJ5O" string(64) "0321ded820a1bc1d5b840eb0907ca7add33a16f503f8c2a45fa5d1059ac40cd5"
Output for 7.0.2
string(60) "$2y$10$/WTZrGKoWCLgAV6i.9ps7./QvEQHKrplrGNKLPkgFGsk5hdY9/886" string(64) "96571e62df83146dd7530d51cfcbc60ad4c073592bad8b6465c5695b8840999b"
Output for 7.0.1
string(60) "$2y$10$fuE8q27uFVNkbb/XEnWYmeizlDnEOkeWs9gH/lKWgIHvNaSURmh4G" string(64) "8080bdee22f04c2690f011ef50800dbc2ee7c3c8c6763a14c9986453e15d2d19"
Output for 7.0.0
string(60) "$2y$10$9rLQlxiF84t10XxA1TvW8ekosN4/Caq2zCa7KkLee4saTY.j2L.qe" string(64) "73ad96e51537d287b58ff672310fb188e8735461fee517ad428cfde96b91cce4"
Output for hhvm-3.12.0
string(60) "$2y$10$.WZxwBeSJAPkkAa6KwBCFuXjzgHV3Q9vg3H/Sy278IQpUgf.d8s0G" string(64) "3f540693ce7c2b88729a17f1890398bb42502e3ff1b3cb12dd32cd61b5305197"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
string(60) "$2y$10$qRMdF0E00hFnC.MLhDRn.uWdOyRlL0z70jrJUS0xifFGX9.P0k97u" string(64) "bc5c62de89a9a4d9cf9a19d449f9a1a4420d0c109f66f3d40817836af7011db1"
Output for 5.6.21
string(60) "$2y$10$RGqx779uqruvv66pZKhOw.mwRpU4coG4vZ07edTQJzWzFZ.gsL1na" string(64) "8842b83961a6ba88a688229e0e09c36510bc81c38be67dec7c5cc48e1433db7d"
Output for 5.6.20
string(60) "$2y$10$dzhbOKKs.co9mPDSjRyH..30HNyXv6Zllhs8SvexcCCbfLEI/2a.6" string(64) "a32c97cbdf4d7f065035ee640760019c5bcc16026f256d06cf00d28d995df384"
Output for 5.6.19
string(60) "$2y$10$AkzNExRhuGr.ns8LFgkGjOdfrQUZVuN11jA3S2g2FgK6K72nmkljS" string(64) "cb693fd65adc2c2249ba1cef288b4a96077fcf0566720cbaa1422c2c4528e7ca"
Output for 5.6.18
string(60) "$2y$10$JXult2IxRWgL1oisMp3.kepzabNUKhHkEXncvqJl8GGW3YnZPCoR6" string(64) "dac3d470b94131c525f232ded9da5e8924cab4a46d378935a3eee0f793fc0380"
Output for 5.6.17
string(60) "$2y$10$UV5fDA0S3sAucWxXuw67xeDEGp.qbgSS0xVrs2ZqNdgwdW/Ta2ScC" string(64) "6da2090c099f063343a8d65078e2dd683acd7323d6afad3a79ee315de3251156"
Output for 5.6.16
string(60) "$2y$10$LMZdJhbSXzRmo1va2uAVcu2Vt6dM5.wIse4pKxDrRcaBc1VqBGBja" string(64) "1aecb2a9d261a1ecac742025c33ac336ba3c54fae7c8561ccb92fadee6bcfc93"
Output for 5.6.15
string(60) "$2y$10$CxB7dTEgfrI.9.JqEmRpLelnAd8gdI2aGmeWDphWpoUBKgNYNDtqe" string(64) "436888d868f814e946bd4d1b08c1e722dae8de5822910e07d615d885aee27ba6"
Output for 5.6.14
string(60) "$2y$10$At5k7rZvteLPjNzjxHgge.jpxjOOHI0/tMJrLuuDI7SwfLfIzHdzi" string(64) "8e6511d76f26545ef9216776f2caed24a84b33e55427a9685302bfe8ed6d0b7d"
Output for 5.6.13
string(60) "$2y$10$VMBq8aZ56FzGGmmgEI6ZFuSAVc4lzNHiForN4oLTObatx6qot/RAa" string(64) "117208b58641bf1b58ad1d25b8d8dd4d07e377687c2d38886e12bf7529dcc80a"
Output for 5.6.12
string(60) "$2y$10$g5NZvGWgTTsWjDXK7dpwAu9It9YdR7PfYmdefKcFY4ZCl0CUmVbu6" string(64) "63f9a8a8f373f7e58d39ad64df19ae545063e9eb97125a3c341fbc713a18ab91"
Output for 5.6.11
string(60) "$2y$10$G3TltXqTzvx4Y7cZfpjMFeZQ0NKQb9VOFhmYSseJhXoTHZ1p08aeS" string(64) "ee9028aeb56b58ed51e6964699122618540060ede1bd5cf3c73e2ddf41f7aff9"
Output for 5.6.10
string(60) "$2y$10$cCZAt5BsY4X6LXST8J2EcuEI56Zx73wxI0.XGLN3QAcIWMa27v5qO" string(64) "829582a173c792f3292afefa119f51b7e43dc0a381bf530b1e7adb5166c37545"
Output for 5.6.9
string(60) "$2y$10$WGqBliiJJNIICjAbd0rHH.s0M6DIGdDuOw1Mb8Qt2UkASTDI50vE2" string(64) "dc21fb84e909e87ab1392910c6b8ecc162288b01ed614fb2e88be66327bdfaef"
Output for 5.6.8
string(60) "$2y$10$4sY2FOoGlqtb8D3lr86OKOvfWW9e7OisZAaZfxAQ7wzvGaHxXv6uO" string(64) "14396bbf1d08ecb257b98649a2f45710eb54da7c11d45c639eea742c7439102d"
Output for 5.6.7
string(60) "$2y$10$3YfbUDhiZ4S0mZ2GcSuuw.9TSsCzOooGMYpUyD/Q4gV6mhfDLoOoC" string(64) "beb8a01f318b843459511316dbc881ec0ee3af2a2f4e9ce0fdb17114e25caef3"
Output for 5.5.35
string(60) "$2y$10$63icuEOvTgwsU9sPE9jCPOWcz7oIv/d9ZmX5P4yzGra4weg8u1t7K" string(64) "6bde9fabea6729039d253657bad1b928f7d73d591f8b7a2f930c93c36d54011e"
Output for 5.5.34
string(60) "$2y$10$wTmO6KA43/RD2wFgCsoZEOLCxJZMyOiewxS8DS8mpTicbzixOrXvW" string(64) "f90e6851e9482508adaff4ae170555eb0df03f2b0f46994fe2e55e0e860bc59d"
Output for 5.5.33
string(60) "$2y$10$UrlxBJ0k1/GqxDE.l9fa.Oc9IWF.dMSF.hnuKUh5w.Y2bF8QnecGO" string(64) "9ae71fc9a879006e351cc71f60ecc9d955065879a047bb34d4dd27d3bfe9b3ee"
Output for 5.5.32
string(60) "$2y$10$YBoGCk1pyyH3lre8rL5gjehPZiK7.K4TPTLxZX8ueQByZdsg0900O" string(64) "7ff84c1e26a64dd5e22d5d588d8074429314fabbeb0fd18755553ac855cd4eee"
Output for 5.5.31
string(60) "$2y$10$XFB2/GWqsJxP3P7.CjqY4OQSI9KmZRaQoNjIhqp.umKI7LRfu73T." string(64) "3ef24e140549511c1973a538193161b793b5d1792b96ca0adfe582e46dc88916"
Output for 5.5.30
string(60) "$2y$10$SXC1MOi6Rc.LBhuPV.SMi./F1Ihdl09WFTsJ1NZzovmc4Nra/s316" string(64) "379299d529550ec2a551fc7cd992ee8c06ace81b1b14a12339141259e048822c"
Output for 5.5.29
string(60) "$2y$10$cP9HpddT/fgEGfdi/20NZug0LUUfM3BnL4IzT.w9gC2Fj1x0rtuPC" string(64) "1158744eec875012fe0dbb13d2f219d715db1ab0fe957c7515374dd1c6688b5a"
Output for 5.5.28
string(60) "$2y$10$uuPnzHp9onlTgTloMItp.uQQn9J7n4K.uonT/saC5TG4Cc8Eys9.G" string(64) "2d3aa6c06b25f9c384fa57193b503f02ff3d58bc1120826660d6e6699f509651"
Output for 5.5.27
string(60) "$2y$10$.zWhISteaZDStYsNsxURUOmu.pjYUAbChI8gKXMH5zDpS9K50qbzS" string(64) "31a87d98941fc7ddd4b2f5a6cbad0cfd7371d86bb3e8dd38f21f06021a0d4cdc"
Output for 5.5.26
string(60) "$2y$10$YtUamAelr42KQHzfTIb9..Nljn6Mfo4uRY0Rc1GKFkGmx1Hezfl0K" string(64) "6955eff6a0a2a29907e15e99810a026e54abdd22726b02e44d0056fe2ffef0af"
Output for 5.5.25
string(60) "$2y$10$T/Hvja3X0cFEOWT4xnBuCO.S63lq6UaCaUGuKcV4.nzjLTWA4AK52" string(64) "a58bd090b3034ad5c7f714c4abc50a2a32366c62e0a7deeb6cf2ea5ebf729826"
Output for 5.5.24
string(60) "$2y$10$YDa4uMqBbioNlJ/f/uPnn.9cStEKN0wv/2yvsIkOgLSxJWjk6A9aS" string(64) "34d543bc6359645c8ff0d968cd617c6026905f3f7873c18ef9be9b0759ec21a3"
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/9Fnfp on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/9Fnfp on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/9Fnfp on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/9Fnfp on line 3