3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $option = array('cost' => 10); $hashed =password_hash('mypass', PASSWORD_BCRYPT, $option); var_dump( $hashed); $verified = password_verify('mypass', $hashed); var_dump($verified); echo ' '; $hash575 = "2y$10$7g0dITY7XbtoejJ9edgpi.ZpnBCNR1apCA94AmDT58yDtXOVzzG/6"; $verified575 = password_verify('mypass', $hash575); var_dump($verified575); echo ' ';
based on noAsn
Output for 7.2.0
string(60) "$2y$10$SaWd8Xi41TiLUZe5BcXOTO9TpmFslbnBP/Dfo8W5QEUPj2mM8WkWe" bool(true) bool(false)
Output for 7.1.10
string(60) "$2y$10$rZqPu/qh/v3Zshd0x4q4SeOFnL.E1NVPPV4k9VGA2XA7XlbZvzWVy" bool(true) bool(false)
Output for 7.1.7
string(60) "$2y$10$G4JnwM.aEIAwm37bmamimefzuWL7hthtQK7tPV/WsLE.s7uzSn6xm" bool(true) bool(false)
Output for 7.1.6
string(60) "$2y$10$xsl29E9ubNNQ7VNriaLKw.38Tr1R8aPSoLr4JjH4go4E9LmbLR7B2" bool(true) bool(false)
Output for 7.1.5
string(60) "$2y$10$6ifzWAyODKQxFS7ZBauMleBeftUQ.SAhUkBEprM9rRjxQ2eAP0nDC" bool(true) bool(false)
Output for 7.1.0
string(60) "$2y$10$/amsvWq0Vk5Q6cH48VKn1.5R4BZxyHeGeyJPdaDVA1IOc9IqRIO5O" bool(true) bool(false)
Output for 7.0.20
string(60) "$2y$10$ZL8/smZttzPY7GY4rAHrreJbBf7idhzSr8qQ5aS28F9/5.J.M2JJa" bool(true) bool(false)
Output for 7.0.6
string(60) "$2y$10$ZvcZHiSt5MJf.iFEsrR/8ufOshXrpAeGmGjGiwxCqYiTqa2iWjMx6" bool(true) bool(false)
Output for 7.0.5
string(60) "$2y$10$xMUJVIUg4ngRzRDlrmwxTe9.aROrNHP1zLfO6xeqJ04bgd2ODMcbK" bool(true) bool(false)
Output for 7.0.4
string(60) "$2y$10$2wN/LNm0QHXKaYQk8ygI5e9mvCnXBx6OAPH.1n0EaBgEakOX99RPi" bool(true) bool(false)
Output for 7.0.3
string(60) "$2y$10$hfqXGActq5qW9ZtYbR9V7O0.OKww9nc/ZSR5c.pKy/BRcbhgg8A5S" bool(true) bool(false)
Output for 7.0.2
string(60) "$2y$10$4QaMxwJJhN8dLcLmW6rtgeif89BTlatzuoEwIf1pC8bb5U7GmYLy2" bool(true) bool(false)
Output for 7.0.1
string(60) "$2y$10$jNyWOF7WuDSBOrj.FKyCOema2Qs6hM8rVsETa8UXAMTizhnkUg.0C" bool(true) bool(false)
Output for 7.0.0
string(60) "$2y$10$PmO7KqGw7x2oFr4OBZiZWusbql0y1fP8Bmod0.34qaRQ/pRnqUJgG" bool(true) bool(false)
Output for 5.6.28
string(60) "$2y$10$t2oCwNPG74QxnWZMO8.tueAFNJIqDtpBOQf9MzMk5oPJzIYRKvhwi" bool(true) bool(false)
Output for 5.6.21
string(60) "$2y$10$7PlkJFQoi9mmlAyfV.l7Zu.XKrUD7H70MRINF.Jt470h8U7dPUhAa" bool(true) bool(false)
Output for 5.6.20
string(60) "$2y$10$Rb1THPvWta2gDy.6QNkZFOqtP5xxGC0heIRZi6z8u2hbrjTug9aKm" bool(true) bool(false)
Output for 5.6.19
string(60) "$2y$10$ccVe6uuFRilWuOo.sCVoC.HRJls5JlNhOmB8m/G/pcnQfZSx1C9c6" bool(true) bool(false)
Output for 5.6.18
string(60) "$2y$10$e5IA2NuqN85cx.sARAV1oOAl5lhBeH1eexb9tAMnA8t1/scf5rPl." bool(true) bool(false)
Output for 5.6.17
string(60) "$2y$10$SJQMrRCoOXoY5jRYDWhpZOA9Lszu64Fy.DfhzWYp55PATDje8FDbC" bool(true) bool(false)
Output for 5.6.16
string(60) "$2y$10$aV6GJXoKSEQlxzB79gyLh.5KHV1KVm98p3vm9X57hVV/NrLiswekG" bool(true) bool(false)
Output for 5.6.15
string(60) "$2y$10$MJfIdy/9tJ5GJI6W/UuPq./SnsANLVgljWSN3bQJ7S4Kbv2WMgF.." bool(true) bool(false)
Output for 5.6.14
string(60) "$2y$10$yqGfxvwrYMdASoMv059mTeyPXl7wKVMmJ9JZo9IogxdZY3LvQex.G" bool(true) bool(false)
Output for 5.6.13
string(60) "$2y$10$5rngoTBaCBRKdEw.bmtqxucVc3pvQEpUkWzoXOVl5PsVKYgMGKRpe" bool(true) bool(false)
Output for 5.6.12
string(60) "$2y$10$W2AgxYT7eWwUHnA.cwkrs.WMzboghhQTTEmwWxC1kPO6P7M5vwC1G" bool(true) bool(false)
Output for 5.6.11
string(60) "$2y$10$p5fKVAItKSg/5ehomMbL1uPMMm0fB1atGTAOCiCsJYAoPRXGQM5qa" bool(true) bool(false)
Output for 5.6.10
string(60) "$2y$10$3U0JWGfTiVDAWsx5mOtG7.0UV6Yum0bpFhGeNrZIzguuRShTi7GWK" bool(true) bool(false)
Output for 5.6.9
string(60) "$2y$10$KaaZsquSRVoT4X8l.tc.1.B6yMuBOV5DlmoV/ootP2vQ/F1Z/HAgS" bool(true) bool(false)
Output for 5.6.8
string(60) "$2y$10$Y0otrU/PmR3SX4oRJruUrOdL1BB7NmpOsDquIw0fTcGKzDxfbW9da" bool(true) bool(false)
Output for 5.6.7
string(60) "$2y$10$Vbl16ixGtPumobX5Q1EwNeNRlkn5qiTf.PX28lhBaNjFZBEBmSXje" bool(true) bool(false)
Output for 5.5.35
string(60) "$2y$10$nv1Dk0S7MsLWU2Ztw/CqWu13ql54wC0EOohBThENgjBoWCRNvxLHi" bool(true) bool(false)
Output for 5.5.34
string(60) "$2y$10$KFIvu9nB.Sld.49R/e7dVe3Y3jP0rLmxTQ84K6M7C.6o0TOKQdPEG" bool(true) bool(false)
Output for 5.5.33
string(60) "$2y$10$LpgRZrVyOF1P6jPIis.nNOYVZ7sUMGpaHWIwF/V0iGfVr3zvKkvCe" bool(true) bool(false)
Output for 5.5.32
string(60) "$2y$10$.NZs2vB88uTAMJJmxCvEbOjMGuzHHlloBhBazNzVgPxGOO9K7wfRy" bool(true) bool(false)
Output for 5.5.31
string(60) "$2y$10$HiK6lteX0EDIJqp7dr9fk.EFxkQsDQ.ckir87SpvF5Ha5lOhfuLUW" bool(true) bool(false)
Output for 5.5.30
string(60) "$2y$10$Q/.VOshTw1blOY.PO0KzPuZKw5fnQr1Dqn48KZpkNCP6HkYH3c0US" bool(true) bool(false)
Output for 5.5.29
string(60) "$2y$10$mOmvApJ5jQ5RwCZXPNmc5uYEIU9XXSuAlCrY2XAqBom2VRQczv2Ee" bool(true) bool(false)
Output for 5.5.28
string(60) "$2y$10$qQXszF.zHWdyBnyMUfb2..bH2sTOinzVNCDeHCeSia7UCLezCHg0S" bool(true) bool(false)
Output for 5.5.27
string(60) "$2y$10$5fJLHVQ6eQvodNaO8UOezuMdDOpPDrCSm86qV0DkJIRArW5UUanCu" bool(true) bool(false)
Output for 5.5.26
string(60) "$2y$10$wKkN03a5D5rybK4A7n2wqekvgze0akl2f2JPzsGJEcVQfo7xSwe4m" bool(true) bool(false)
Output for 5.5.25
string(60) "$2y$10$6InDITEGxMu8XBZ69dGOh.3Tj30ImonBYBFCbonYbKU6.zqbocMdG" bool(true) bool(false)
Output for 5.5.24
string(60) "$2y$10$XDMR5G/1xY6ufeHJ9y4CJOzFZRJMJPDgFlzbbIZhx9dkmPPcMCv2e" bool(true) bool(false)
Output for 5.3.19 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/rZLP2 on line 3
Process exited with code 255.