3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $crypt = crypt('rasmuslerdorf', '$2y$07$usesomesillystringforsalt$'); // $2y$ geeft aan dat Bcrypt gebruikt moet worden $password_hash = password_hash('rasmuslerdorf', PASSWORD_BCRYPT); var_dump( $crypt, $password_hash, password_verify('rasmuslerdorf', $crypt), // ik gebruik password_hash() en crypt() door elkaar! $verify = crypt('rasmuslerdorf', $password_hash), $verify == $password_hash // nu doe ik het nog een keer! );
Output for 7.1.0
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$dtXubZZFVZV86B4C2iE8luBhrC5XoYThs7ONsbPbs9C1QHiWb6mSa" bool(true) string(60) "$2y$10$dtXubZZFVZV86B4C2iE8luBhrC5XoYThs7ONsbPbs9C1QHiWb6mSa" bool(true)
Output for 7.0.14
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$NVhL0LK8Po.HmuGfAHTj9.YzfgGaGR5AI0lnwVSAKjunU8PYsd7um" bool(true) string(60) "$2y$10$NVhL0LK8Po.HmuGfAHTj9.YzfgGaGR5AI0lnwVSAKjunU8PYsd7um" bool(true)
Output for 7.0.6
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$Zn4GliTlCB8q92fHcD8aUeeEdGdB08713mExZ17KgExblqk8HwHRW" bool(true) string(60) "$2y$10$Zn4GliTlCB8q92fHcD8aUeeEdGdB08713mExZ17KgExblqk8HwHRW" bool(true)
Output for 7.0.5
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$oQ7GgtYb/EAu64tkCSvadOkxJWG8Q1f4gJy5yG7TnwtNn89dCOLLu" bool(true) string(60) "$2y$10$oQ7GgtYb/EAu64tkCSvadOkxJWG8Q1f4gJy5yG7TnwtNn89dCOLLu" bool(true)
Output for 7.0.4
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$fdK92iQiMA/JN63e0JZ1zOYl1GYKe9paJxcGKxIkkMN/MxYyAoeYe" bool(true) string(60) "$2y$10$fdK92iQiMA/JN63e0JZ1zOYl1GYKe9paJxcGKxIkkMN/MxYyAoeYe" bool(true)
Output for 7.0.3
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$wJze0HMFqCGd0CxM1mHeCekl8crQiOn5vt2n6DjxLHkpq.dmVG9eK" bool(true) string(60) "$2y$10$wJze0HMFqCGd0CxM1mHeCekl8crQiOn5vt2n6DjxLHkpq.dmVG9eK" bool(true)
Output for 7.0.2
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$EPT8u4S0DKHO7R9FBV4zbOT.GsBwaVHB5JY5yGAZ5krsUeL6WaCIi" bool(true) string(60) "$2y$10$EPT8u4S0DKHO7R9FBV4zbOT.GsBwaVHB5JY5yGAZ5krsUeL6WaCIi" bool(true)
Output for 7.0.1
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$bBJaV2q.cvmjbLXLdV169eGPawIjyPlFbfN12/Ni.qdZb6p1ETbQS" bool(true) string(60) "$2y$10$bBJaV2q.cvmjbLXLdV169eGPawIjyPlFbfN12/Ni.qdZb6p1ETbQS" bool(true)
Output for 7.0.0
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$b92ma7R3ByR/Lt3G.QTNcOfPubwzKEPuprowQte8ufx32303kDGcm" bool(true) string(60) "$2y$10$b92ma7R3ByR/Lt3G.QTNcOfPubwzKEPuprowQte8ufx32303kDGcm" bool(true)
Output for hhvm-3.12.0
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$m61ePLfoCGebhHtt1YMvvO/NNSsXW1vF7WzP23mwIXRAx7tptPD1u" bool(true) string(60) "$2y$10$m61ePLfoCGebhHtt1YMvvO/NNSsXW1vF7WzP23mwIXRAx7tptPD1u" bool(true)
Output for hhvm-3.10.0
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$9KHnjIE0m4D0MAD9jYrAK.PjVLVm6CeSm9begBhrZbobDsRX0M7w." bool(true) string(60) "$2y$10$9KHnjIE0m4D0MAD9jYrAK.PjVLVm6CeSm9begBhrZbobDsRX0M7w." bool(true)
Output for 5.6.28
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$xBOh8VmPTIk1dQmIQsp0G.il/zTQH8Qx4ZXwbj8TuQOPvVZefAeuW" bool(true) string(60) "$2y$10$xBOh8VmPTIk1dQmIQsp0G.il/zTQH8Qx4ZXwbj8TuQOPvVZefAeuW" bool(true)
Output for 5.6.21
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$qTDmmm1WMXyunm836ZJd0.k7eheHEVUA8so/50Ttits3GFyTB7ica" bool(true) string(60) "$2y$10$qTDmmm1WMXyunm836ZJd0.k7eheHEVUA8so/50Ttits3GFyTB7ica" bool(true)
Output for 5.6.20
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$YmDt0wfMH8yFbmyc0ipQXOWqlEPsZPd5k48H3pTe.BeR6ngz2nh.2" bool(true) string(60) "$2y$10$YmDt0wfMH8yFbmyc0ipQXOWqlEPsZPd5k48H3pTe.BeR6ngz2nh.2" bool(true)
Output for 5.6.19
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$rcNJLd8u71ykv00kjHIhw.7gRFzO/Vey8hVOkOEZDVkyLpRsEEVw6" bool(true) string(60) "$2y$10$rcNJLd8u71ykv00kjHIhw.7gRFzO/Vey8hVOkOEZDVkyLpRsEEVw6" bool(true)
Output for 5.6.18
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$j.3gYKGhKiEeARp.1HjPqu.KXaw/bZuprRj8t7zS2FAUhyUpf7kmm" bool(true) string(60) "$2y$10$j.3gYKGhKiEeARp.1HjPqu.KXaw/bZuprRj8t7zS2FAUhyUpf7kmm" bool(true)
Output for 5.6.17
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$6HQNVp65IxtlgcaSLUzCiO/d5Y9kGSjd9H6Dpaao1UsgGS97MiLwu" bool(true) string(60) "$2y$10$6HQNVp65IxtlgcaSLUzCiO/d5Y9kGSjd9H6Dpaao1UsgGS97MiLwu" bool(true)
Output for 5.6.16
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$9ddpIOndZix.M1GngVdFE.WaijzIdluWMrGKDQeQUwSIqHGRThjoy" bool(true) string(60) "$2y$10$9ddpIOndZix.M1GngVdFE.WaijzIdluWMrGKDQeQUwSIqHGRThjoy" bool(true)
Output for 5.6.15
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$HCqrhoQQqy0NipkYee0NLOif02PQDxbA33eZaKvhJTqezBAVK4aJ." bool(true) string(60) "$2y$10$HCqrhoQQqy0NipkYee0NLOif02PQDxbA33eZaKvhJTqezBAVK4aJ." bool(true)
Output for 5.6.14
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$GpIQnvBaCZ4QW8sWAJRQVOVTScdu0BPgSCphtBEmOAYnvSYh/vRRO" bool(true) string(60) "$2y$10$GpIQnvBaCZ4QW8sWAJRQVOVTScdu0BPgSCphtBEmOAYnvSYh/vRRO" bool(true)
Output for 5.6.13
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$xt/xtipHoIQCcjyXRg5EX.VZJqysgQpfepSTQBhcf3d53JeRbvLdu" bool(true) string(60) "$2y$10$xt/xtipHoIQCcjyXRg5EX.VZJqysgQpfepSTQBhcf3d53JeRbvLdu" bool(true)
Output for 5.6.12
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$0Pct.PALjLh1szMopbo0sODcKSVviWFBcmupvMRapMVTU0AO6uK22" bool(true) string(60) "$2y$10$0Pct.PALjLh1szMopbo0sODcKSVviWFBcmupvMRapMVTU0AO6uK22" bool(true)
Output for 5.6.11
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$HBQen9F/u0KKKBWG31lfR.aKfSq5Yk1rdNJOVIjoxH320wNOonrke" bool(true) string(60) "$2y$10$HBQen9F/u0KKKBWG31lfR.aKfSq5Yk1rdNJOVIjoxH320wNOonrke" bool(true)
Output for 5.6.10
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$1YtWPbKhHgOwU0e6OF6RiONcG3MQYMbP0yTKQbOfVzXgwUebsYIVG" bool(true) string(60) "$2y$10$1YtWPbKhHgOwU0e6OF6RiONcG3MQYMbP0yTKQbOfVzXgwUebsYIVG" bool(true)
Output for 5.6.9
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$Kt4N6gsSNCUeWEgLTTm0WOQJeAqedEZzOf9aNIgjCR3qLzYbyTv1a" bool(true) string(60) "$2y$10$Kt4N6gsSNCUeWEgLTTm0WOQJeAqedEZzOf9aNIgjCR3qLzYbyTv1a" bool(true)
Output for 5.6.8
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$fNcHE9453ubxL1pA/9cC0ODIakU2zPA2Jouv55Rg43uqOpZDAo0gi" bool(true) string(60) "$2y$10$fNcHE9453ubxL1pA/9cC0ODIakU2zPA2Jouv55Rg43uqOpZDAo0gi" bool(true)
Output for 5.6.7
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$ShqIgqgBoiX8nZ9NMV7/cOJO6I9kf1yzORShKolR/m5.uricQ2fmC" bool(true) string(60) "$2y$10$ShqIgqgBoiX8nZ9NMV7/cOJO6I9kf1yzORShKolR/m5.uricQ2fmC" bool(true)
Output for 5.5.35
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$STxuHEYxyy4FmVsVeB5leemAufEchsMyiq4Pq/VYa98Z7g4rfQAxm" bool(true) string(60) "$2y$10$STxuHEYxyy4FmVsVeB5leemAufEchsMyiq4Pq/VYa98Z7g4rfQAxm" bool(true)
Output for 5.5.34
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$SmLSSI0wpX3TPJIzCGaa0OIL6N36FO3Yk0.ZnKJw3TpW6SSVNtxha" bool(true) string(60) "$2y$10$SmLSSI0wpX3TPJIzCGaa0OIL6N36FO3Yk0.ZnKJw3TpW6SSVNtxha" bool(true)
Output for 5.5.33
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$szdIUeLNcI2DB2.C37Q1/.TAntRUta1eq2O9s4d8aPeme.7jvgzqi" bool(true) string(60) "$2y$10$szdIUeLNcI2DB2.C37Q1/.TAntRUta1eq2O9s4d8aPeme.7jvgzqi" bool(true)
Output for 5.5.32
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$NXwAuN4dY2jCCBNFXBhNUe7HyFr1Mi5HLZkCjY4AkMNvpT3KaR9Am" bool(true) string(60) "$2y$10$NXwAuN4dY2jCCBNFXBhNUe7HyFr1Mi5HLZkCjY4AkMNvpT3KaR9Am" bool(true)
Output for 5.5.31
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$KOZTe1w7ntmQAxUd5PWnpeu.DB3142Kk4y3lusfIL5.fIyK.jpZz6" bool(true) string(60) "$2y$10$KOZTe1w7ntmQAxUd5PWnpeu.DB3142Kk4y3lusfIL5.fIyK.jpZz6" bool(true)
Output for 5.5.30
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$5aJtutnCLKfhWqKf6GJ7EOHxMTPrhpE8cB5uKEHlkXnW2ZMPYr.aO" bool(true) string(60) "$2y$10$5aJtutnCLKfhWqKf6GJ7EOHxMTPrhpE8cB5uKEHlkXnW2ZMPYr.aO" bool(true)
Output for 5.5.29
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$g7ycK44DMcEDUFkYfbRBSutaFTNt5LqaTx8ySZaynERG5jXm3DTTq" bool(true) string(60) "$2y$10$g7ycK44DMcEDUFkYfbRBSutaFTNt5LqaTx8ySZaynERG5jXm3DTTq" bool(true)
Output for 5.5.28
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$.UrY8EWFz0vn0s1lWFaG9.QKp/SEPJLXq6Z0FzfrwMUFGw7eYccHW" bool(true) string(60) "$2y$10$.UrY8EWFz0vn0s1lWFaG9.QKp/SEPJLXq6Z0FzfrwMUFGw7eYccHW" bool(true)
Output for 5.5.27
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$yzr1cTePvOG2QGYsAXbdj.FPjo1D/X98dHDRL7oFTZkedr1cLL2JC" bool(true) string(60) "$2y$10$yzr1cTePvOG2QGYsAXbdj.FPjo1D/X98dHDRL7oFTZkedr1cLL2JC" bool(true)
Output for 5.5.26
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$19kMqbCjy/pehqRaxw0aS.r60zZLUWjLRW5X6.oMmAb1euxqeqeBq" bool(true) string(60) "$2y$10$19kMqbCjy/pehqRaxw0aS.r60zZLUWjLRW5X6.oMmAb1euxqeqeBq" bool(true)
Output for 5.5.25
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$trAWYEpr5wOrEOEFPh0ZtuSVi9lzzF8qXNdHgfaxm/mDBfnSbyHxy" bool(true) string(60) "$2y$10$trAWYEpr5wOrEOEFPh0ZtuSVi9lzzF8qXNdHgfaxm/mDBfnSbyHxy" bool(true)
Output for 5.5.24
string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" string(60) "$2y$10$IFm1sFh.9HX8gZDGgrTSPuufXP70Y4n.WSmMjMD61fbAsHkdHTRD2" bool(true) string(60) "$2y$10$IFm1sFh.9HX8gZDGgrTSPuufXP70Y4n.WSmMjMD61fbAsHkdHTRD2" bool(true)
Output for 5.3.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/TDquK on line 4
Process exited with code 255.
Output for 4.3.0 - 5.2.17

Process exited with code 139.