3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'GoemonLets5'; // パスワード $hash = password_hash($password, PASSWORD_BCRYPT, ['cost' => 11]); // パスワード、アルゴリズム、計算コストを設定 echo $hash; echo "\n"; var_dump(password_get_info($hash));
Output for 7.1.0
$2y$11$mE.6X2lRyX8ammbh0ej01O2d9lxe9pIrluMTBo4fOZc4UDiRbqiJO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.14
$2y$11$DxFxpUH9ZhimYC5sq8pCMOeNGsYGTpFn6V4eqcoaS2u8LNyIZmyi. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.7
$2y$11$lP22K7fB6ze01IQ.msS5Ceta9MbfNvk19yJS1VwB1tGgRiZ97GIo6 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.6
$2y$11$0yZTNzQIQlIGggu6/0vtbuLe04N4w8t6TecXB000fRVq6ZC5RSqA6 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.5
$2y$11$CeLCGjcXJbO/SUsO60eRfuXzJntaDCZ4ixjQym9WPaWY51E8KkC9y array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.4
$2y$11$fb0b.YyttsNZ0yAf7fxkRem1korGdKeW1bLDCV1GD08oksLQNrn0a array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.3
$2y$11$c4b2qEI3ZZ9.7D2phlrF8eqmfMvCSXIpnmmuAizP/rkM365yVddpC array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.2
$2y$11$SI3AF7Vv1zf7en90snPDweO64slXfGRghjvovGGPnk9ESrNX5MMQu array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.1
$2y$11$UcTMq4UDshyAmpuThzO6Pe4C53GYYX11MNr7noqE8eLFHlGCoNZDO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 7.0.0
$2y$11$Cq4J79O59kMHGXNVG4V.feOnJGxWPuTObEONjwZNz3lhzJYHCD0Py array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for hhvm-3.12.0
$2y$11$G0MUb6gWnm.IwHGTGr3Zhe3aBGfFym8czY/rEXgiF.vDb9WuW.So6 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for hhvm-3.10.0
$2y$11$IaMjxZQlbDyVSpWoRCn5KOhn9ctE3Qck2kC89fEsDS/.82Ms0zTee array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.28
$2y$11$H2H.YMxW.jH65/Fv3rO8cupSOpG.dQNWcVBNUCGASgqIihIDxIxDO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.21
$2y$11$UQgNhyjYVPgX/wMBhoPcx.aCa8cJzJiWfUgqcIgBePVKNab5C5NQm array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.20
$2y$11$K4hXPTw8SscMu5jfOMgdrusqYcBnDdhwcxDni1YN3o8LHPLSoQONa array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.19
$2y$11$CAkJB9fMnlbbl5Mg4QnjE.YGeOngQzBCR.MgzIldx4QWTn32l9caO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.18
$2y$11$30yMEMLTyEoxvlxVYC5oceYHbAUrgnNjFHizmOgXrL/XW.kjeLRXW array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.17
$2y$11$shRcL5tWtPtbvkAz3TBSS.sIXsGQEdr2F8FoKZgr5uxbhIPEtyO1q array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.16
$2y$11$iLPu.wQXqkpADQ8Ir29Qcu4SlMufbXzSlgLQX2cDVEtrNthsyQOea array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.15
$2y$11$wfCT4/qRU/bV/Nav9FezruDoKiYQlvOxABNf2ju4LM8Qw9KOTjlty array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.14
$2y$11$P8qKzKwYpOlsbshGIi3xNOCC9BerApHZmqTWSUdJ6FSZOTn36MlLe array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.13
$2y$11$wjIR2raNCtSGDt.2bPiSger8V9J5viv8QmaVJNZpGfOTWZroIL2SG array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.12
$2y$11$zBiiK3C1KalUAQ9EzM2shuk4xa6Wbko2BcIsAmXdiZ8iAKZyFg4AS array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.11
$2y$11$8Tr/DTV7bECybno1F6mu..5/Ty8sL88mQx44o6eZXCmk5D03sQE6u array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.10
$2y$11$TW2sM/10bTYaaRCYOCTLr.1F7/MwDKCzeXy8XP1jPBq0MOghX/10e array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.9
$2y$11$0CrPIWjcmMMZM2IH95znFenpkFZcijf4pBd6KWT/P4EotRL9FiUua array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.8
$2y$11$KdFzceyb0KjTpr1WVMd54OmPSKy.x7YJJYBXIL.9tvHgCPEklyn0O array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.6.7
$2y$11$bjhsH0AbgecvZpl847HDW.pZbQRhSo9kqS84E4vt3Nj57xpiyeqjC array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.35
$2y$11$oRrxx.yBksoFbQByydv7OeSLYZ/QsFIfWhUiCQQGuheSy4LH5/m1W array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.34
$2y$11$ukHJLB79j1YYoQW2oWcwm.Zo8IZUPEaXV/yFC4cDEMR7Bn8L.JJFe array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.33
$2y$11$DPyqFQlwxRMQUH8pqYRRJ.5QkioUAzP53gAEPqrPZFCje8S9rpAzO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.32
$2y$11$9fWB/89BYpRkWuhDSrTTU.mwEOm8ZS.JGIHNwE1GElUL8OT0K4Be. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.31
$2y$11$yNhLkIFpwOxxT5B.4os6f.lZNNU6kp86UH/B8yBrfbthtpXjxv2si array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.30
$2y$11$7XBsza2KLHOroUJhnaz3A.Lgi77NHTyCbwljLl.Pf3prrC6QkWpu2 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.29
$2y$11$XYLQo2jd23yMtoDyqx93uOut4qJ6gwV3sev7rrUW4rYFmdXulwMaO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.28
$2y$11$Vz0Exmh5J/mpVa/PcXNheudXZmwiOZHkb11uTfjYEdFdf0CEX7Qie array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.27
$2y$11$r8UfdqaSX3ytE27uS1QsheJVjWVpEfbpn29djaGO9R44kmcNHfuDq array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.26
$2y$11$VKzpWHne9Fv57mqO7iDy/esAuVPNDnFwI/vLJdKRpp9kkwIjPSmfO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.25
$2y$11$ZfYmvFkJ3jxkG1n4Msl1i.Oj8SHEGBAh21old2bkGIp1J9zR1OP26 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.5.24
$2y$11$5ZOz.K.dd6bATOinSP6wS.uYuh5q2854Gwc3ryNnSfi4qVzaeJmaC array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(11) } }
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/ncfCD on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/ncfCD on line 5
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 '[' in /in/ncfCD on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/ncfCD on line 5
Process exited with code 255.