3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = "test"; echo "$password \n"; $hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); echo " $hashToStoreInDb \n"; $isPasswordCorrect = password_verify($password, $hashToStoreInDb); echo "$isPasswordCorrect \n"; $hash_crypt = crypt($password, $hashToStoreInDb); echo " $hash_crypt \n"; ?>
Output for 7.1.0
test $2y$10$UILPZlintIE2sjLJtCIP8OcRbH04vnjhrU5lBpBKJ.geujY4HiKw. 1 $2y$10$UILPZlintIE2sjLJtCIP8OcRbH04vnjhrU5lBpBKJ.geujY4HiKw.
Output for 7.0.14
test $2y$10$wIsUcHhdZtrlmOurEBCkmu499LJ4tJU4nRU9XB/pKFQv4nCEINTFi 1 $2y$10$wIsUcHhdZtrlmOurEBCkmu499LJ4tJU4nRU9XB/pKFQv4nCEINTFi
Output for 7.0.6
test $2y$10$hpCB.wkHwqThBNIEPRPzBOOgfJ0TPHGocPpNFepYr90wfLwIQSxj. 1 $2y$10$hpCB.wkHwqThBNIEPRPzBOOgfJ0TPHGocPpNFepYr90wfLwIQSxj.
Output for 7.0.5
test $2y$10$KaFTuBIjtuENkmV57f1RLuikHzYHRrW0J6uVhQjp5Pn8qx3r7NCCi 1 $2y$10$KaFTuBIjtuENkmV57f1RLuikHzYHRrW0J6uVhQjp5Pn8qx3r7NCCi
Output for 7.0.4
test $2y$10$hMo99r2lNltUoUN0HCIT7e2YXEZQIkUxCqaV2yboK46kieivUtqcK 1 $2y$10$hMo99r2lNltUoUN0HCIT7e2YXEZQIkUxCqaV2yboK46kieivUtqcK
Output for 7.0.3
test $2y$10$ICCUMrLyThIEwTEk0RRal.QsaY8Nrmd.HHtuPobeZOWkRPRFzOYXO 1 $2y$10$ICCUMrLyThIEwTEk0RRal.QsaY8Nrmd.HHtuPobeZOWkRPRFzOYXO
Output for 7.0.2
test $2y$10$8X.P2gocBXpMPT7opX/i0.LrndvTQNUE6zThDYtmMDeBoiqm06DLu 1 $2y$10$8X.P2gocBXpMPT7opX/i0.LrndvTQNUE6zThDYtmMDeBoiqm06DLu
Output for 7.0.1
test $2y$10$hUu.pc/GYm9MjO2gbOSxbOt21yuR9lXxpmQ16fiilgKUt.7GBX6D2 1 $2y$10$hUu.pc/GYm9MjO2gbOSxbOt21yuR9lXxpmQ16fiilgKUt.7GBX6D2
Output for 7.0.0
test $2y$10$f9ZWuQRy.JMAmcnoEYJHHeyZlI6wNAt5vgewo5STKxf0G1I85CVPO 1 $2y$10$f9ZWuQRy.JMAmcnoEYJHHeyZlI6wNAt5vgewo5STKxf0G1I85CVPO
Output for hhvm-3.12.0
test $2y$10$Hbq7S2ZeaAVvmdmsiUE0Lum/XIDizWqs/Qxpj6Xi2wML9QTpoQdle 1 $2y$10$Hbq7S2ZeaAVvmdmsiUE0Lum/XIDizWqs/Qxpj6Xi2wML9QTpoQdle
Output for hhvm-3.10.0
test $2y$10$Svn/IcF/cPk/nqo1AIYaEOIdSxmlZ4KAU7tqvcdW26K9zMwp3bDQu 1 $2y$10$Svn/IcF/cPk/nqo1AIYaEOIdSxmlZ4KAU7tqvcdW26K9zMwp3bDQu
Output for 5.6.28
test $2y$10$w4Ct0d1bPjr.sTuyzWNTfO07.6g4xLBjWflZj3b4q38X8VAEhY97K 1 $2y$10$w4Ct0d1bPjr.sTuyzWNTfO07.6g4xLBjWflZj3b4q38X8VAEhY97K
Output for 5.6.21
test $2y$10$pM.xi4VMZ9.4i.ZBxuTMue4ExSitIXzAHkWZQbBTJbjRxzWd0lWK6 1 $2y$10$pM.xi4VMZ9.4i.ZBxuTMue4ExSitIXzAHkWZQbBTJbjRxzWd0lWK6
Output for 5.6.20
test $2y$10$ZqQGQSlsSDpv1wXAkFba/O3MomLrNVMZ7E1TMFLeQMxNEBg3eqI0y 1 $2y$10$ZqQGQSlsSDpv1wXAkFba/O3MomLrNVMZ7E1TMFLeQMxNEBg3eqI0y
Output for 5.6.19
test $2y$10$rPI8NQ/GFygw8jhizYWVleCAXYlisfc2xaiQyxvrBBNgyLjJ.KC0S 1 $2y$10$rPI8NQ/GFygw8jhizYWVleCAXYlisfc2xaiQyxvrBBNgyLjJ.KC0S
Output for 5.6.18
test $2y$10$wJcUQ.Xm6Vw9yoFvc1Yu8eCnF64Kz4EN.cVOceR0GzSLRGz7QaH5m 1 $2y$10$wJcUQ.Xm6Vw9yoFvc1Yu8eCnF64Kz4EN.cVOceR0GzSLRGz7QaH5m
Output for 5.6.17
test $2y$10$vVVjO9f2OCuSpYSMz3XiN.cYVELKOBw6Nl6xeFSrutSKJoaGbYmce 1 $2y$10$vVVjO9f2OCuSpYSMz3XiN.cYVELKOBw6Nl6xeFSrutSKJoaGbYmce
Output for 5.6.16
test $2y$10$kvek5efq6pVoFy5HHwpuKuVPVBHjyOe.cjauMtst5ygnrEnv1dH4O 1 $2y$10$kvek5efq6pVoFy5HHwpuKuVPVBHjyOe.cjauMtst5ygnrEnv1dH4O
Output for 5.6.15
test $2y$10$iBvOxu2Fhi1mp8qjVPhyleWxxaQelv3eG.YN7DPOQ6ryNrD2jCDJq 1 $2y$10$iBvOxu2Fhi1mp8qjVPhyleWxxaQelv3eG.YN7DPOQ6ryNrD2jCDJq
Output for 5.6.14
test $2y$10$ThvLuHaWnttT/tteyeFxROW8phC9H0LpY6uapOlYGNaBG2cbcOTuy 1 $2y$10$ThvLuHaWnttT/tteyeFxROW8phC9H0LpY6uapOlYGNaBG2cbcOTuy
Output for 5.6.13
test $2y$10$4StEYDrf2G7XfLdJv6zkqOXg4qW8VrJJQqg25kcOBsF7pCvxqnfPm 1 $2y$10$4StEYDrf2G7XfLdJv6zkqOXg4qW8VrJJQqg25kcOBsF7pCvxqnfPm
Output for 5.6.12
test $2y$10$xz4UixORm1hYhS0c8RlVlO6cNJXzTLpgobqaCr9t7uFU1qLG8n59G 1 $2y$10$xz4UixORm1hYhS0c8RlVlO6cNJXzTLpgobqaCr9t7uFU1qLG8n59G
Output for 5.6.11
test $2y$10$aUtPNaKwBgfHAER9Cc1Xuulcamxfq0uZ9.ruMHE7btNH8oNi2dWay 1 $2y$10$aUtPNaKwBgfHAER9Cc1Xuulcamxfq0uZ9.ruMHE7btNH8oNi2dWay
Output for 5.6.10
test $2y$10$5YpIksxCgAFp8GOAIxTEAeInYmCpghV.Nz4Ovjjx1gDIO2lhA4sZq 1 $2y$10$5YpIksxCgAFp8GOAIxTEAeInYmCpghV.Nz4Ovjjx1gDIO2lhA4sZq
Output for 5.6.9
test $2y$10$jSDpLfvmbxFSV0DQCXejgemO9ahTyyHsLTPfUEqHRgTSk.2/neMl6 1 $2y$10$jSDpLfvmbxFSV0DQCXejgemO9ahTyyHsLTPfUEqHRgTSk.2/neMl6
Output for 5.6.8
test $2y$10$hZQFRsFK4UBD4xyFjmu/AuMjUStnOzAo93jNyZEMWlJtfe5yKbA16 1 $2y$10$hZQFRsFK4UBD4xyFjmu/AuMjUStnOzAo93jNyZEMWlJtfe5yKbA16
Output for 5.5.35
test $2y$10$yTh0rfmzLKElk3k8h0OqDOnPgqfHGVRBTDXBaV762qLN/oIMA6yaW 1 $2y$10$yTh0rfmzLKElk3k8h0OqDOnPgqfHGVRBTDXBaV762qLN/oIMA6yaW
Output for 5.5.34
test $2y$10$ezp1AqjjLbrAINdp90x6S.Tq48JFfLacoe9UqZFCIw7KIK5SGNc0q 1 $2y$10$ezp1AqjjLbrAINdp90x6S.Tq48JFfLacoe9UqZFCIw7KIK5SGNc0q
Output for 5.5.33
test $2y$10$DQIdrszX5O30OU2QleC1ouVvkIqvDB3A0HRgIpq6uv3Tvp5KACXlu 1 $2y$10$DQIdrszX5O30OU2QleC1ouVvkIqvDB3A0HRgIpq6uv3Tvp5KACXlu
Output for 5.5.32
test $2y$10$kofDkqVtt624CL4RrBa2fe7UQmpSK7USxM31g1eZRey9YjCicEaoK 1 $2y$10$kofDkqVtt624CL4RrBa2fe7UQmpSK7USxM31g1eZRey9YjCicEaoK
Output for 5.5.31
test $2y$10$1tc6TKvGdPlZkcAEQ9ktIeDDRZV/w6LKSMcNDe9YAenx3SNwfWy5a 1 $2y$10$1tc6TKvGdPlZkcAEQ9ktIeDDRZV/w6LKSMcNDe9YAenx3SNwfWy5a
Output for 5.5.30
test $2y$10$bvCNIWMyIBeTqGS5OiuGZ.Wj5LPywO/GzxvJCWFgpg44G3ixOB1Yi 1 $2y$10$bvCNIWMyIBeTqGS5OiuGZ.Wj5LPywO/GzxvJCWFgpg44G3ixOB1Yi
Output for 5.5.29
test $2y$10$AQN7fEItFMeO3WoldP7r5u.5994fwtygcY8mlkylE03ykUbjEXwHi 1 $2y$10$AQN7fEItFMeO3WoldP7r5u.5994fwtygcY8mlkylE03ykUbjEXwHi
Output for 5.5.28
test $2y$10$O375W164IKd6ce6sVLFAKuAC7amD2AbVxfRDT94M.1uGktACQVd6i 1 $2y$10$O375W164IKd6ce6sVLFAKuAC7amD2AbVxfRDT94M.1uGktACQVd6i
Output for 5.5.27
test $2y$10$76mXMK48J4ZF3xrepRfYkOWachJB5jaGIU17NaJxsceqekof9USWi 1 $2y$10$76mXMK48J4ZF3xrepRfYkOWachJB5jaGIU17NaJxsceqekof9USWi
Output for 5.5.26
test $2y$10$SW4/xCYJDKqvpk5VsBSB1upw08ipiCUY6iuHQ1uJS7ERFT/TXsfoW 1 $2y$10$SW4/xCYJDKqvpk5VsBSB1upw08ipiCUY6iuHQ1uJS7ERFT/TXsfoW
Output for 5.5.25
test $2y$10$YsHWAG37Pghd3kJjrvVbO.S.DNw26D4BjiUgnq/56.XvxW/VxYoG6 1 $2y$10$YsHWAG37Pghd3kJjrvVbO.S.DNw26D4BjiUgnq/56.XvxW/VxYoG6
Output for 5.5.24
test $2y$10$ui25XbdxgnTLxEAMfZ5hr.4u4BvpQPcce0PAp.igO3S75cE8RUBUm 1 $2y$10$ui25XbdxgnTLxEAMfZ5hr.4u4BvpQPcce0PAp.igO3S75cE8RUBUm
Output for 5.0.0 - 5.4.45
test Fatal error: Call to undefined function password_hash() in /in/cm4Mn on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
test Fatal error: Call to undefined function: password_hash() in /in/cm4Mn on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
test Fatal error: Call to undefined function: password_hash() in /in/cm4Mn on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
test Fatal error: Call to undefined function: password_hash() in /in/cm4Mn on line 5