3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $crypt = crypt('rasmuslerdorf', '$2y$07$usesomesillystringforsalt$'); $password_hash = password_hash('rasmuslerdorf'); // werkt tot er een PHP versie is die de waarde van PASSWORD_DEFAULT veranderd 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
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$OXPjHPXV$p1mSphATaieTNqaIURupV/" bool(false)
Output for 7.0.14
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$zHxtQpp6$C8bk92.mojHvONBQQbPiz1" bool(false)
Output for 7.0.6
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$BenryUES$zbfhDI1bjP.7X8bLaYPWi1" bool(false)
Output for 7.0.5
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$NDEEpfi7$GvxdlKpFg8r1aS5Ij8yJV1" bool(false)
Output for 7.0.4
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$vBjUIjAI$GgXB0DqZPnQZKj43J7yNv/" bool(false)
Output for 7.0.3
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$kbRi52wV$u0HQ22vlmUaPzStGiPVch1" bool(false)
Output for 7.0.2
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$fNX0HGyU$pXl3iNCmwP83evta6zwFW/" bool(false)
Output for 7.0.1
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$9ufqOTie$gW.zr9PWVpg9WVutl57nA1" bool(false)
Output for 7.0.0
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$G46SGPkn$N8WwDTd31ICm/yUho4aEV/" bool(false)
Output for 5.6.28
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$vB2bysQx$sEd76OLLxbUGpgvEr5aSt/" bool(false)
Output for 5.6.21
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$tLA.1lX8$DP.9YQJoowFQsZXR/pKJ41" bool(false)
Output for 5.6.20
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$fLs5N70I$O6moxx5oibh6P3dxPLjSX0" bool(false)
Output for 5.6.19
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$51wJSrkr$GUG5lrSK2VUFUr.VkMaxC0" bool(false)
Output for 5.6.18
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$irFH5ct0$2nF6wU7RQs4LhP2e7X6YF/" bool(false)
Output for 5.6.17
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$JQaoBqu1$XDVPpC1MaZb.W8j3h3V/c." bool(false)
Output for 5.6.16
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$RqZ7SX/R$gdw0R8WUtHYyapXJp3DBU1" bool(false)
Output for 5.6.15
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$X9libtNs$OdwhbOeAeNWd.l3SJECAc." bool(false)
Output for 5.6.14
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$21y5wk0Q$7Zvqm4dfI.EhiGcn2kx89." bool(false)
Output for 5.6.13
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$T06GuJJ8$ekhqFWYiGfkw3SbLft1YZ0" bool(false)
Output for 5.6.12
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$joFYcEQT$i0Ak/edMlcI46p3vkKnzW0" bool(false)
Output for 5.6.11
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$OoRurRM1$99KPPBDZEFpy4EN/yl4Mu1" bool(false)
Output for 5.6.10
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$2mLDb.a.$t1awN730YeJMWtT6088.H." bool(false)
Output for 5.6.9
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$4cqrHXnq$/P//8OHULrPuKgafpkQ3X/" bool(false)
Output for 5.6.8
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$7ai8khZx$xEsbXrQJQ1Hrx3I1S3/E91" bool(false)
Output for 5.6.7
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$7wJPUVEN$AKPdZXDxQM6pxmJ2.2yp10" bool(false)
Output for 5.5.35
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$3DG5PWMz$hds8mwHqwgg9WWGAYULLJ/" bool(false)
Output for 5.5.34
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$ZxDVKepY$spOlT0lRgy4ECUnSRdym60" bool(false)
Output for 5.5.33
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$ly44ZGwp$x8nBiY6u0nPxir2PjBvUO1" bool(false)
Output for 5.5.32
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$HjPet/OH$0FaX19T3IY29G.pvTXFXt/" bool(false)
Output for 5.5.31
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$/UvsSxCT$b31Y4vN.4nqSi.QuVaBrH/" bool(false)
Output for 5.5.30
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$q3VLQ2PZ$bwZQ9K/aU3wOXHyanndu/0" bool(false)
Output for 5.5.29
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$RxK3WitP$Tg676YODQRWMwGoJFw2Wa1" bool(false)
Output for 5.5.28
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$TyDMtCrU$WEXyUBWttaU76dXL5Yy/r0" bool(false)
Output for 5.5.27
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$E0CzQsHw$2WgSg/RxShwm9seg3AQb00" bool(false)
Output for 5.5.26
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$DyYQ9Z0l$PVYfov1QYOf40C1rygyW51" bool(false)
Output for 5.5.25
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$QDRSmiC.$3J0kdfYd60wGkLrn65uPu1" bool(false)
Output for 5.5.24
Warning: password_hash() expects at least 2 parameters, 1 given in /in/19Rll on line 4 string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi" NULL bool(true) string(34) "$1$5.LVGD7t$F.eV9sOeK0IfTaZsBcJ0d/" bool(false)
Output for 5.3.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/19Rll on line 4
Process exited with code 255.
Output for 4.3.0 - 5.2.17

Process exited with code 139.