3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $password = "hi"; $key = "lol"; echo password_hash(base64_encode(hash_hmac("sha512", $password, $key, true)), PASSWORD_BCRYPT);
Output for 7.2.0
$2y$10$yLc3l7hi/2HzZyNjx79t8eFiGGqaMadpEcpfVdHTjMWXJHgZniwMi
Output for 7.1.10
$2y$10$KFjIHtaXE4wOUfrH5iPjDOCeuv.lwF9jtmQT7PyojU7MfvTRHPM1q
Output for 7.1.7
$2y$10$51nZMhaifJmNvP2Ih2uneuxoBYKOWees5P6yeNLM7Ya9vFE4DiVi.
Output for 7.1.6
$2y$10$OH5eGJ6ofyxhsamvBqIa0u5Er57G.KodFHlgRQP0u4rOyM.KLci4a
Output for 7.1.5
$2y$10$B0RRKiJHnGN6lxd0t7ovsuCmw01S4KZSFqcy/5xkiWWYSqtXZdKHW
Output for 7.1.0
$2y$10$ttHS86xTmi/j1Vsmv6qTT.kHb3Rc8FDccLCueBCM0QQAx4EgQi8Ki
Output for 7.0.20
$2y$10$OW4CrtF8/x.QA5MATUMDeOfHeDArOwbcWSxN6rT5fgHqMfd.SRMs.
Output for 7.0.6
$2y$10$8oJKRJ6Z5XKxUovZJvtb/O/WC/ZzSaOa6YEgbEu50gt76t5CR/1DG
Output for 7.0.5
$2y$10$ysyKJo28Q8ulWDGa/ILdRu/NId5oDDdWe6Dxj8Ia/obXCThvsoE.u
Output for 7.0.4
$2y$10$kcG4xS0v5tcCxCjKsQsymu9snJWulBBDawWPJrfBwH1XhUMa./jR6
Output for 7.0.3
$2y$10$BAx3FG1Zoqz7rSDtLfN8yO9g7Zff9T0qfFoiAGZnsOsdbLeSwy80i
Output for 7.0.2
$2y$10$NXnqs64satqKKcA2fk2p1uPcowS1GmkkurYukzXPQEpf5a/eRRwhq
Output for 7.0.1
$2y$10$Sq4j5sDD429kjOUsHkpwYOveRzCNPTH9A0cUqSkolFRqJ1qTGq7aC
Output for 7.0.0
$2y$10$fBus08.b44yMIpg2aovA5.MtOZzl1vlT34o1.jPRLYRI0972pL8KS
Output for 5.6.28
$2y$10$i.S1GeUY46x0S56kBRR1JO8XxpuW4w2cZnpyxx.rW5opBvXV4bU5u
Output for 5.6.21
$2y$10$9IwTI82zl2TyRyAzd1a56.yqUss4Ol2rjfaDssvHN6.EN/FtbBfkW
Output for 5.6.20
$2y$10$yiHnDXYdVzvIV1oMmrx1VexSnCIvicypIFQCGhTL9FM4F8cgmkFO2
Output for 5.6.19
$2y$10$EDDNiTxlXVdawdZ3yIOWpehYax8OM.qwO30GOQbh3lgCPWdXY.XYG
Output for 5.6.18
$2y$10$Pg7PWHUvTBlBcKiCnMMeEeS/JrCstC0j2KYRhXzMLc/PQJ7IL/w4W
Output for 5.6.17
$2y$10$qeUoVbluYgZEFxwmrXWx5edl96JV9ilEdPgouRK5PID/DpTuj5yYq
Output for 5.6.16
$2y$10$SNQ3LwLEWIK7fWofTBFSQ.r4o7nIR06nfOiNLZCMcl/k06lahCSRG
Output for 5.6.15
$2y$10$Dt.pOxtviWKUaoNEDyJdJe4sUp9J4SbFeAjX7mYRjaR/mpHAT6qUW
Output for 5.6.14
$2y$10$yuzeQ1Rpjff/HEhYV633yuD3MDFw6oHDRsAQN2Cd8W1A9oglF94.O
Output for 5.6.13
$2y$10$sqQNMaYVIsyOIqlNvbaJceOSEFOWhtnJXgQTPphwsj9/n3dfmmYKm
Output for 5.6.12
$2y$10$2U47gc1S22Gt.BOg.6Sk/.DDwTyKktBoxlJEXNsiWJXrPHCXXuVfe
Output for 5.6.11
$2y$10$8Jyle4TyNwZPa/s.xMRAkeLpVY1vrlMwXYYFYO.sxUYGxpFMA8Ogy
Output for 5.6.10
$2y$10$Hu9Mky1C7iUtRSI0QFald.tnfHTN/MtvSWh/NeG81SG.AfllaXYOy
Output for 5.6.9
$2y$10$8P.Xt2UQkBkrez851XSmg.P/a2QsRqyJfGE3/NF5rS6y0/qsHSBva
Output for 5.6.8
$2y$10$UbqlJeWgUbH0jDoRgY6PjeW8ot1Rylj7j6Q75MPudSOEM1mHScJiG
Output for 5.5.35
$2y$10$W3QeI1uHh4xnXm0qbvhoReXPTKkz0gBbfouVUcFctEvPNB92no1BC
Output for 5.5.34
$2y$10$sV1fgXFDzi3WB0M78wKWSezFBKWxtN3T.Qs.LF1f5aa/NqkHF75VO
Output for 5.5.33
$2y$10$Hm.bFWKlKEtbYk.Yt2VaNe2FPCglLD0583bWNp1j.ZtAL5s6Fzibm
Output for 5.5.32
$2y$10$dhohmeOZ.HsKw9pYy3xJ0udVNaY/u8gs6SFz3a89oYJiAV63vC.Fi
Output for 5.5.31
$2y$10$ChX.4JK4znDPnzoParUik.umqQE1V/wKv8VofN5EsKCT5sIpuqXy.
Output for 5.5.30
$2y$10$vxu7j72osGrv/PC67hgyGuJ3LoX3C.mkc/5ttTtWCFjBTZ9DJ8vPW
Output for 5.5.29
$2y$10$O.m0WqZ3aGu6VpBkw1.mHexvLnG5muHOw4hGHbFUve/LmmQQgwc.u
Output for 5.5.28
$2y$10$WdzSkLGABD2z98srvnNj5eoCSYW9rudYXzVCf/QM13izsrZ/caGh.
Output for 5.5.27
$2y$10$v036ER2WsnHmdBR2Z4nfduhdqmUUj1iDZNiZK3ZAc5RNO4/kX.RXi
Output for 5.5.26
$2y$10$bBVLBRw.PTdP9V5Fj.X.m.pYzzo42F7GQI5/fw1jbw6SQVsMhH10K
Output for 5.5.25
$2y$10$.yEA1U.mDsK67NhKukANee38SOYXhnyBt.Xd1qHulPd5OSwE3cY8O
Output for 5.5.24
$2y$10$bmoBJzfKKN9pNKedjotkjOmmAXl.8B/cg8oCVPQw.dh8k6DlAClSa
Output for 5.3.20 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/n2Dmn on line 4
Process exited with code 255.