3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump($hash = password_hash('foo', PASSWORD_DEFAULT), crypt('foo', $hash) === $hash);
Output for 7.1.0
string(60) "$2y$10$.a0fCAiuA3ERVUci.cepdeT0xnjXyTdyyRtRc/J6HhBTbrBVLsXJO" bool(true)
Output for 7.0.14
string(60) "$2y$10$Xh1j7SwXR54daSoqEWynw.1JcZZ/9mGNr0K1H6A3aNdzS/02hsqBS" bool(true)
Output for 7.0.10
string(60) "$2y$10$7HZMvB6epVntFRD.seBsMu2wTwFEMNaM4Jx3dacjwzbMz5jOIwb5m" bool(true)
Output for 7.0.9
string(60) "$2y$10$oPcf/c3yvNToo7x5Ju7Im.fmoawqGcEmqIrij69s8sTm.yQ24vnTO" bool(true)
Output for 7.0.8
string(60) "$2y$10$K/zofTPjt40t0Nc7xZQbt.k/jKknwBBmKAC.IUByMmRc8QGPoTwba" bool(true)
Output for 7.0.7
string(60) "$2y$10$CLE6vp208bCc3htZCirQdOA2GdFcERHbEYxkPKOHXOyGCv/qVHdNG" bool(true)
Output for 7.0.6
string(60) "$2y$10$EUZzDEEMg7H5p9xJfXjMLeKWtjAeAIhOCABvJL50ssJ3D3GJoTl7W" bool(true)
Output for 7.0.5
string(60) "$2y$10$owOGpTfPvEa3jcQ7I4ORzOv9L4N6ox5Yh48rw1APzAQbxfIlSwl/a" bool(true)
Output for 7.0.4
string(60) "$2y$10$AJ4NhL18oa6xxgkxpcCTOeUNnrK3NF5D3EHWYLr6zsFq6brTkkldm" bool(true)
Output for 7.0.3
string(60) "$2y$10$4E1nOpfalDgRVyPNsY26E.ZV31OteKhS5OM2.g81WrLwtAInnK7g." bool(true)
Output for 7.0.2
string(60) "$2y$10$ArRLZDdS.P0XbWuMWuKU1./Cg6PoXV.eP4oPn6n9Fjl8sEc65ScB6" bool(true)
Output for 7.0.1
string(60) "$2y$10$7jHhWVk2OSjXaLLEBAGzh.Ag/baAXC13CNtD7lST/gxtqlAwrPuqG" bool(true)
Output for 7.0.0
string(60) "$2y$10$5Y05U5i9PByTBMQultvE4.S/tfKq8IfD7c//9y38rsO7uYSqq3w0y" bool(true)
Output for hhvm-3.12.0
string(60) "$2y$10$ckAP7C75TCvT57n.J5rQbOfxaX3orQRrVaB0L5BiDVp1jZSOCxeli" bool(true)
Output for hhvm-3.10.0
string(60) "$2y$10$21Ofx92ouO0JNBOxujRB4uh6BfJ6MBudH06Q8E61kWZYiaYXWSN1u" bool(true)
Output for 5.6.28
string(60) "$2y$10$5.HkFIghoUjvHeMN9ydJM.lgHfLyymFbDOZUcdOJ2U7.Irvy2JhD6" bool(true)
Output for 5.6.25
string(60) "$2y$10$D0E18ZlpzcyqjYSXZm.joeRg4b1qhhDUUKYS7eaj1gkI5UMMxSAAS" bool(true)
Output for 5.6.24
string(60) "$2y$10$5/RJc8VS02/gdDQsiq99IecmdFwdLZQF0HYnuov3yLxph810tUlqO" bool(true)
Output for 5.6.23
string(60) "$2y$10$0TMohs3UssmRh3qQqPM8Mej0He2Mdy8/wfkToRbph7U4HPYv7xNjG" bool(true)
Output for 5.6.22
string(60) "$2y$10$7bHfyTQrWjrz4zDt6w.d4.ooitVmHbxHd1WBXQFANH5Ad3MEbiEF." bool(true)
Output for 5.6.21
string(60) "$2y$10$Xs76ZTYSev9w9BpzTmvn4u1krrO/iQIJ.3nQu1xxdKlx2k5mdKpJG" bool(true)
Output for 5.6.20
string(60) "$2y$10$8LZ13mvir/I5uNDPQlu9LejEuwyjFwESVF/5Aj1JBMLwOaGJDiLUu" bool(true)
Output for 5.6.19
string(60) "$2y$10$7LJ6aiAs1UdcKDQPEw7PguitlnGCQEkPj/G2.Put0qD8tTFaeGPuW" bool(true)
Output for 5.6.18
string(60) "$2y$10$GHBLTPD4R/XWFQiGxlycue4SMuLqK.JkSymAXEke9Jvf3Ul4MrZlS" bool(true)
Output for 5.6.17
string(60) "$2y$10$IC1TlqpH5Skw8rRi7gf6J.jdroMgcNV7ce8Q8ddweNEB2E15aIr.y" bool(true)
Output for 5.6.16
string(60) "$2y$10$qZ.4xfC43cUR3ORSTNvoUOR1tWRSiRg54/o5S3k0ZVavaUKOY.HBC" bool(true)
Output for 5.6.15
string(60) "$2y$10$Xf0cws5Mu5vcYZdEWT7XjeGvrZT.g0.99mjAlG22bvR8L6pM3.svi" bool(true)
Output for 5.6.14
string(60) "$2y$10$gl/DOrL4shLtT5oocrCFcOUa0pg4MtGM.1Kk8tPqZ/3gdecLHHWlS" bool(true)
Output for 5.6.13
string(60) "$2y$10$H441nh3r/qyEt/Yl5NzF7ew0BEEGPCRWb9YYdh5XgDk0qLkFUDQo6" bool(true)
Output for 5.6.12
string(60) "$2y$10$kzZKwtom4J0c6VmLNGFHLO27DaK6ElK3y6Df3YzsQZZjwXXPcihq2" bool(true)
Output for 5.6.11
string(60) "$2y$10$H9izfBS.JfdugGkmhxgmROTzS7RWyAbOfIMrJ1PZWrwphvaoMq.ai" bool(true)
Output for 5.6.10
string(60) "$2y$10$rsXt4WM.bGjElCpFvAzCbuTCfz5DjNSL77h/4l0JgLboAjLwEPneW" bool(true)
Output for 5.6.9
string(60) "$2y$10$8mBFd3Sv/xI9QLwJArAi..w3JUnoMQKP4DxxiriXY2pOPYDfS0H46" bool(true)
Output for 5.6.8
string(60) "$2y$10$SugHuAGvB.Gzw9xQrzU.RuSZ2uaFln1YlE005BPR9SSwGEJUrubiq" bool(true)
Output for 5.6.7
string(60) "$2y$10$TxLNq7KNIIHeOvModj.V2eVqkulBSxlELvihNjXRqwT2yN/cxua4." bool(true)
Output for 5.6.6
string(60) "$2y$10$ZfrJtm5uiLGKl3mbHPqyEeFZ.w.AAyFWxhtAcTGp/ijROHZ7HQoNG" bool(true)
Output for 5.6.5
string(60) "$2y$10$XUUpxhs1SA8RrsrHEnvhg.SBDXkOO85M/gwJqBfBTccqLMP8ISTwe" bool(true)
Output for 5.6.4
string(60) "$2y$10$9b1X43Lcy4bpHDfVgqjCnuV8SyyEtMXxljdBYUq.1rGem4zaofvxO" bool(true)
Output for 5.6.3
string(60) "$2y$10$T2lu76Me9QAlWd/QZFgmOOvyl4joWilpIGoFLiNO/PMqNSYhJ1Beu" bool(true)
Output for 5.6.2
string(60) "$2y$10$0yhRY5N/b5nPgOQr9dQ4zO6S/GkuelrHtDiY1OlnmvhDFIbaBmCvi" bool(true)
Output for 5.6.1
string(60) "$2y$10$g3wv8IYs8V6zz/sJRR8vbOVcXW5fd/DMOzcQ3SUHNBfU/K9cuJs4e" bool(true)
Output for 5.6.0
string(60) "$2y$10$aQ9KEGHKZd4dqVz8Acq4N.YC8rdK0vhdQdHFI8JN18mzicb9x.1Vm" bool(true)
Output for 5.5.38
string(60) "$2y$10$51SBeAwmnryhwT2OOW1/XOLhn1kAiH5Yl1sSsqprTUvUIMIHeN4z6" bool(true)
Output for 5.5.37
string(60) "$2y$10$6sJJIyMTbKtWgtUj4HZhKek0oXYVjlAJYGQL9rkowY3t5ogBlc61u" bool(true)
Output for 5.5.36
string(60) "$2y$10$NkKFGL06xp3BnWr0iko3K.UmmmBA0I2jK4EN6cBAsJ1TJOhVanFQ6" bool(true)
Output for 5.5.35
string(60) "$2y$10$DnM4LaMsCPh5P6fCLG4YIejziX4Smhqi35LNcBEWc1J.vSuO8qq1." bool(true)
Output for 5.5.34
string(60) "$2y$10$5LcS4elU4O65K2mJDTUY9e8V8sOcRbxYMhzW84lAtR3bW7kSboqyC" bool(true)
Output for 5.5.33
string(60) "$2y$10$lOcAU3vcG7LaS1MuVg604OL5okVOH73xGZRTPz9.dAwul01hWBMvi" bool(true)
Output for 5.5.32
string(60) "$2y$10$QbXmS62wvdklDCU4gsRotu.TUF1Gkg/fMOuCAuYSqhH0DphYmwNK." bool(true)
Output for 5.5.31
string(60) "$2y$10$I7V0rHn4sqiMhv7W9NX/oOaLBx.l9GvY6t.Nlcp1lS1pOIA9DPt0." bool(true)
Output for 5.5.30
string(60) "$2y$10$3bV4qldVnpwmX.ahqQ6bveZzP.3YGB810u4m9A/4K8OHUDDIjdrgC" bool(true)
Output for 5.5.29
string(60) "$2y$10$N7DzZuKPE5Mp.6CN8RFtgu2zZb9ZXbY88q2Tg.xSjXZRCMTig.L1." bool(true)
Output for 5.5.28
string(60) "$2y$10$Y2pp5qMrYEbV3V/CrgP3GOGeWRUt8KvOy6u7dHuTn5vjj8Y4lzo3K" bool(true)
Output for 5.5.27
string(60) "$2y$10$uG9CPRLNjp6etEwbEZbbeOznpnLFf.eWCAfBJJOx7u9EvpL9lVn9i" bool(true)
Output for 5.5.26
string(60) "$2y$10$y7YoPGuX22F7LPtvayq67e9GgSE1FyqQwAKVvHTjZq2U2tLNb/F2q" bool(true)
Output for 5.5.25
string(60) "$2y$10$r4fMNhGTBnKZGMgrUvgFoeIOk5fYYb1Ttcivk2j0kbFsUCDq82j6O" bool(true)
Output for 5.5.24
string(60) "$2y$10$N/UmtHffPeOp27YOJwkidueKWiPXNQOOa8IhXDaygwfKbQZ2TBoFS" bool(true)
Output for 5.5.23
string(60) "$2y$10$w4UkLIyjl3Kr.iBPkCai/eGpDOlRkueckBX9ZKizWhEFfFesZ8UtO" bool(true)
Output for 5.5.22
string(60) "$2y$10$o2WJDZfCFCjCl6rFVq3/IOXInnozDL78.eRv3NnuZ.POTCsvFAlRe" bool(true)
Output for 5.5.21
string(60) "$2y$10$vrR7lN7ObdyCIGW3Si28peNE4Fomfqn54YwcADHgZHa12sUNng1Fm" bool(true)
Output for 5.5.20
string(60) "$2y$10$qHnjv8ZRwf3DCrOWORLOBeniqKCRn0xz/PhMJ3W19r9RuUmuVnzKi" bool(true)
Output for 5.5.19
string(60) "$2y$10$VIM4k12flkwV2M64goJ6xulgm3QKbJzsPf5RX9asjXY74hKZGMIpe" bool(true)
Output for 5.5.18
string(60) "$2y$10$TTdZLPMJOpP/Hsxn5h.bYumCXgJsp1/vry0Qww.pDaz1nsiQ5OqfG" bool(true)
Output for 5.5.16
string(60) "$2y$10$gvesZeAsozxFMhJiQ9KI0u30nNO0AjY1E0rHyBnYAqbAolxeA0Ffq" bool(true)
Output for 5.5.15
string(60) "$2y$10$ObMRhyw31SE8PejJ3LK./eIcT/NBoZZQkDj4HKXzykKXDdM49sb96" bool(true)
Output for 5.5.14
string(60) "$2y$10$aUQ3/2d3MXNgfaOfjkxFSujTDB5uUQZBpu7eWocQGUmZJRUNahLP6" bool(true)
Output for 5.5.13
string(60) "$2y$10$Lu/4jKJI/oJT9bEBhvMRJuyrIbE2ahgwhUpr9onjrxaEFAxcX2R4K" bool(true)
Output for 5.5.12
string(60) "$2y$10$SYwCPdEOzmsKy62GjwWaROPG4Dvxy03DiXGkTjUdhhx1tdNG6nuYq" bool(true)
Output for 5.5.11
string(60) "$2y$10$cU5389hxVQW2YYrUJGxt7e9ZiZb60U31tq4Ly1mwH1WB0zbkHFmLq" bool(true)
Output for 5.5.10
string(60) "$2y$10$DU3Ieduut9Yzy5v78uoRzO78MBnkdfZfgFfOKA2qSHTpmzoR67r3O" bool(true)
Output for 5.5.9
string(60) "$2y$10$ao3ASS2e7AOyJtQxuhwyn.tKKtpc1wqbiMyLWDrq38mmllQWH1GQ2" bool(true)
Output for 5.5.8
string(60) "$2y$10$8sjz9A2PT1PJbaGvc85mhuBktLpyuTNJ8B/UdxPnyQdaU7ECx1szC" bool(true)
Output for 5.5.7
string(60) "$2y$10$Zeeu4KCDO4SIf8f5cPwjUeR3H0xP550.DIkANEqn.Rxgy4MCUBAA2" bool(true)
Output for 5.5.6
string(60) "$2y$10$ThTh5zSXHznSQOIiHwSB4O8//RV78XSA1Tm.DpAQ6V0vz5QF0c9A2" bool(true)
Output for 5.5.5
string(60) "$2y$10$eU54ITpbv/wVU6HE5mW5ieG9db0XYnWtolYU4R14XN.a0UMtOZaVC" bool(true)
Output for 5.5.4
string(60) "$2y$10$LonB7oBM8hXuG7YYvE4AFOWCKMRxO2qSB9dcIEk7bjId9Y.1YbMbS" bool(true)
Output for 5.5.3
string(60) "$2y$10$HO.KtfdMfqnvIKRQZPdZEeQYW/8wL3Tjti8QgpKfdH7uGGRS7nxDa" bool(true)
Output for 5.5.2
string(60) "$2y$10$kFSmKGS4cfEvoWTMmMQdcOad..xsKSxk8ZilNRlsq6YgZrQTVakxm" bool(true)
Output for 5.5.1
string(60) "$2y$10$NwvDwgWBYVczMzk06L3mGuMVnXMnmOI.OZEWFMTs8uOkT0qOfMgYe" bool(true)
Output for 5.5.0
string(60) "$2y$10$422CUlLXbGZf0Zjy3TPog./urT3xqWvnPs9N76NewVRHYzzMZ54Cy" bool(true)
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/E1Ine on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/E1Ine on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/E1Ine on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/E1Ine on line 2