3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hashed =password_hash('mypass', PASSWORD_BCRYPT); echo $hashed; $verified = password_verify('mypass', $hashed); var_dump($verified);
based on SkF1n
Output for 7.2.0
$2y$10$nRRL.SqOWbh55WMTh75QHeuXNLPIn3ECcJv2N.nVK0oTLZIyObC7ybool(true)
Output for 7.1.10
$2y$10$dkIdoydEkqlit6cfkZpyx.tGAMIDKzHs2uCJObL0qkxUu528it1T.bool(true)
Output for 7.1.7
$2y$10$66YSXbT7atu2zJC.2zQzfeFgLKZoEtqGUV/dKbC4p8adOM55aKGyqbool(true)
Output for 7.1.6
$2y$10$7O.R5ePJRy.RaR41NPc3B.eDlnMFfcHdOO2mTwug5TUH46iI4QL3ubool(true)
Output for 7.1.5
$2y$10$ZwTFM/HedhVvz1kvKfe5m..wK3TdX1aTiMnamEiR4I9npqVjK.342bool(true)
Output for 7.1.0
$2y$10$CPix90yObow.ZCW/ot0aWu7flGLb6/5rk4xYjxNvkCWSVIClH6lh.bool(true)
Output for 7.0.20
$2y$10$5cE9M95zWm.2kyEaHyrtCOyX0fh7AGqlqhFh2GDdEGjakES92N6s.bool(true)
Output for 7.0.6
$2y$10$bGeccd4Vh2vpGiZmb4.4Aew83LueCx55.UVdPGrzeRBGBwOrLZ5Q2bool(true)
Output for 7.0.5
$2y$10$cnti4dZPXL.ftbC/9VMNmeYrXucWBS3HzDC/711VDKI7Jp2Y9YcUmbool(true)
Output for 7.0.4
$2y$10$uLyXJhQVLvSm58zK5USE9.9kaLfOlWbbsWKtNGey6XLIHB9qqixumbool(true)
Output for 7.0.3
$2y$10$.6h4GxsaEl7f21rV48G0k.CC0ySwTnHaykwKCcm4f8/rbjppvF5tGbool(true)
Output for 7.0.2
$2y$10$wQPd.7aiiHrpWI6sTh.nXOFHE3uyD0PK5zTdRjKjb/aiQ3BFYhyxybool(true)
Output for 7.0.1
$2y$10$DZXqSvASCIy1sH7Xx11y7.tNNUXrSr1tGS0OmEvo5qB4k6qWyxldubool(true)
Output for 7.0.0
$2y$10$lIHdoVeEfGoYvsFZFJhfeuzkW1o6lq.kk.EKI/nhXkVeL5l75/yb.bool(true)
Output for 5.6.28
$2y$10$6J7A/AASBfSsYy6SU3l6TeKF3AxU5ASXNQj62IxzYtdaV91foqCfmbool(true)
Output for 5.6.21
$2y$10$i9Q.h38a0hfNV1n52Zhx3O1yJvry6W6V2rAsdjdxlMWAFCfP5Rfm6bool(true)
Output for 5.6.20
$2y$10$6Sm/wrIzytBywwQMgnmdRe69GwZxQKTp3qImT6OtHBij4IxwctuFabool(true)
Output for 5.6.19
$2y$10$VvbTI/GSONlxtV0HpnvNwecVOsQQINTyz3o6lXnuS2hOUjJHJ5d5mbool(true)
Output for 5.6.18
$2y$10$dAE0SOPvI27jDrPpK57EIeqkN6WasPOJLaYK.EdGlBmYeCfLjEwAWbool(true)
Output for 5.6.17
$2y$10$Ow8EXdb9T6Ycuj/xHYUno.GZZ/PNBRYxC.JDMfsPjAQPCLSOy/PLibool(true)
Output for 5.6.16
$2y$10$ZXt9eD63MO7m9wCoF1wJW.Yos1GQK2D29stjv8gPxawfQcTwM41G6bool(true)
Output for 5.6.15
$2y$10$me7v92teAxZ0Bhf1pSkPt.Ub3po7PfZpdn8OOHUWS9arpes8NXc9.bool(true)
Output for 5.6.14
$2y$10$RZK022RSE5Hnn6lNZ01mGuc1GPb4zmgPcaKTXt2VebNi8Z.BIuitKbool(true)
Output for 5.6.13
$2y$10$EnnHAMonzD8qLZVXRdCoi.RdFQpg3uhClaW406aVRfd0WdRXxV9IKbool(true)
Output for 5.6.12
$2y$10$OA9/kXm9XybVVwOEB28mbuCE7ErhMd2y3h.2ngtEtchscZnizZfvabool(true)
Output for 5.6.11
$2y$10$c64HIgI2fK1GNbz5cxNE6OQ036QJKCfvSv7OGwe8YS5QWGSAJb4Oebool(true)
Output for 5.6.10
$2y$10$FA5C0va6IC8GCl4uMvm0IOymaEaDe3Qjt5RGkLQ4lyjgNxuu3Yk.abool(true)
Output for 5.6.9
$2y$10$KQu5RnJja6LCZSaEBSO8ReJqRwtA6YFOljDY/PO42Mejph3ucPCq6bool(true)
Output for 5.6.8
$2y$10$ETiq3eL3rWbfPtWOFjDeN.zEk6aqwrfnQhEKbAYWtiPKkaok5W8U.bool(true)
Output for 5.6.7
$2y$10$mW4h9GdKVH5.SeQMQwLzfOgTDJvA/fjRuoCWpALl7/4XHi2NLRRHSbool(true)
Output for 5.5.35
$2y$10$nrvQahg5zj6vJ5SDcqPv..pISGS5075ZwW2dsNXcsQ0mwvwJm80debool(true)
Output for 5.5.34
$2y$10$9CTtEyJq1XSlIKXXNybX1.CgQ7ETS30lsiFwlhiNAtDFMBV.SEHyGbool(true)
Output for 5.5.33
$2y$10$9clg1z/V7KJhFyDFgURL2eXy7QNdcHO0.CoZzHUmCwgpH2CoSAaUqbool(true)
Output for 5.5.32
$2y$10$sifq6ZeuTUlrWfiIuM8SCeOF/KnhKyygDFRYj15osWbHpKGLpcDxqbool(true)
Output for 5.5.31
$2y$10$.Bio4uAxhaoGUryHcp36KuNokC8/K4zcHhODww.UbRwx75EkgTF6ebool(true)
Output for 5.5.30
$2y$10$XIDPzlUW6z41xf0BFW0b3OhNpSbLfknY11tXyAvVVqR2XUb2Lm2Eybool(true)
Output for 5.5.29
$2y$10$Wi9cf8TP/KUgiQLYw4k7wufIgGQkp8f/vOr3mBzlfOfRjS7WVf0Lebool(true)
Output for 5.5.28
$2y$10$DwQMRYrIIH.ynxITp3XYnO9C9CNppcCu954eKTiOl2Q8W1VLyfvtqbool(true)
Output for 5.5.27
$2y$10$3CekNinbwR/6Agi7aDaSveWVZONwSDLeh3R/OkXsCZk2Lq3OCWsC.bool(true)
Output for 5.5.26
$2y$10$WQmK.SpbdlYNOTs0WqiP1uQttYcaZOpUhfCWH98JsF9HgExGrjs26bool(true)
Output for 5.5.25
$2y$10$u50TplhzHulPk1SNJgGRm.s8DjdwGtSYvijkLpfr.d1zdX7MKDuHWbool(true)
Output for 5.5.24
$2y$10$GUAlCtJxZP5XWf51wVYFqeSGhp67c4lctYze6Z.1Io45BEYxYOKsybool(true)
Output for 5.3.19 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/gQ8bU on line 3
Process exited with code 255.