3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT)."\n"; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, [ 'salt' => "Xfoobarfoobarfoobar123", ]);
based on 1LQBI
Output for 7.2.0
$2y$10$fhTZwWiPkDBVIcpkBg30Juv76XzaflvpiT09rcSvHxwqGiba2LWOa $2y$10$/NjxpMehqbVkfJD7ptub8OZklvOFM3VfqpjbgybsTlijw5bqZpndC Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.1.10
$2y$10$melTB4mqEmYzEQaMMGPjbe/euIUfNFiLJhomWvYE9aajxaH3th8wK $2y$10$1ViQ6fk0a1.3Iq1enA75IukepdoigUapfvV9aj8UPRNHYoi37NQUO Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.1.7
$2y$10$T9xVanM6Tm1KryU3dj5BAuprDjFuI1YtT82cdCMIOsySHX06uFEV2 $2y$10$e/dC7F/bZLuIhfYOcj8j7.CZWf6xiAd3auVWmal/il0nLZkI.7K8e Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.1.6
$2y$10$bgi9R9vFS.g1/x1VNtsfqeOHsNu4VvI9XiznSkkk3N/VfAfp6.av. $2y$10$QTQ3xHeKhlrkdOGJrQHL9ep37qPV5qtYGEQLiR2XJIaj4xU0M.Q36 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.1.5
$2y$10$d.XZBc/Op4eGktZiTpIQW.8uVZqSNHMOxenqPLglv/db4KFZhb6ru $2y$10$lfmMYs8rYqlOb.uxxiE6K.1MV47664iz1gY36q4avNSvacQa1jlbC Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.1.0
$2y$10$wKWYZ.YEBurrJsBatBaxF.hfL1Vkb.MsE7ZKaWJFjmW104PXvSGNG $2y$10$dSK1aH4wFU4ERP/OchJIa.qpyp1wZ4AGW9VoYchRx3iXSjPnOgBsi Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.0.20
$2y$10$6ru7mIKK1.cks/Uynp0rEekovgx23vxebl19O96fpwoRkWdHS9glC $2y$10$RwGUhj0ZmeYvRd9kISsGs..JTm84h9z5/slxWBvtcx3vvSJS6REWO Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.0.6
$2y$10$tRtfJXTVnO1ea8L9Dvg0vePgkIetw1sfUeT1yasZ11TvgoSlA9rcS $2y$10$1AWTHCcWD8.jUkYtXbSygOvJ0NEwU7C7zTiYgiKWYgMs..OQ/EoH2 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.0.5
$2y$10$QzEDsDvQg6GpML5iORDg.OJb/HV5YvEuxJDRDd8I9GjxMPh4TVC0a $2y$10$Sp4RzJC6eum3.XVC81xT8uhQbzhHyxn8HunrsbLmGq5rmX.WMwya2 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.0.4
$2y$10$qhPo0J/ax63q25olRld3NueKUQt3P2HzKVAbyeTLz3KQN91Qb4VgG $2y$10$pYK5XWI7rZRB5RK/MDNHue9q44.Nohf5cUzS.v1QGBnNrreBGwqWG Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.0.3
$2y$10$w/lFAn1yqCTpYmRir1h87e9ElVq27pUaZffCOL1YMb6OQObFKXru6 $2y$10$5nuYQzMYvgHZeUKS3VRnIet9P8fDT811/270eQirI8l7pMYk5QA8. Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.0.2
$2y$10$NbOuYMPlVNdI/HvZjE4JNejBzTg6gYUPx5xIhumWsSpO30vNhTXg6 $2y$10$zX7YpOn9JqcFFNajzq.lce0R360aPTDvwo4ABWL7zdxGAzRwRTplG Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.0.1
$2y$10$2RhGePFAwRwC5eFgZ3BhyevFZCAqT0l84u/vtYY12Qmz9CXTCaNAG $2y$10$5UT6aMLgUWKlfos7pqyQXukVUjsjLsm.6xu6aea2eikTdptZCLQD6 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 7.0.0
$2y$10$15nAB/RhPiSbU7ETpgTE/uRUEqRmNXrylXSBLQFyhac3FBYDJM4zS $2y$10$56C7XqjlHP9Hpo7w3P3LO.XOz/2dZ.pluV7AjNG7jr35eeHcXM6s2 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/8PiXp on line 6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.28
$2y$10$8fGGEkop0DyDlQLgR4TIxOBUL.Y8QOo6Z7Pu.h8889UMgVXsb/Jfu $2y$10$GYp70NE0dShkKPus7FKoxuNSeUCiOMlWKrAQGxWdR/TvrU3JvDvlK $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.21
$2y$10$oz8uVLMmisXkaF0uOI8kBuvktlZdU5NrfYb0HLBmn8jAS7frYEawe $2y$10$Vh3YAA1eBEo12vLOgPiNS.cfbsKse71XSAFrDxYUIL0Rvv2fpd1Wa $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.20
$2y$10$dsgJAJjbqhbQ4G1X.uXalOxnwWHmEAgvcoznXEFbWVp0TzgvWmefC $2y$10$7Pj/1vMKD6lENTBUdZJADuoc5FLN2rMtJ/wDdeKQZcb8J7JaGTHdC $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.19
$2y$10$ScYTy/i/Y1nCkEkeaYl1R.zCO7PwXTKelLQhyzFaG1F1lDipyUwn6 $2y$10$W3.o13SXPUHRF9ZU3YqqUOPJK3DFSIGD97UF02ZBSDysXLe1AX0nq $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.18
$2y$10$Sus.PlyN0.xYSmT9iNz35..t7kv99FVkdEwfy3OZ2fmqSttFHiljC $2y$10$tVZKhFbHcIIxFk2qlO1YhOjH5FCusM31zdD9IZEV8pjTGSp98cZoC $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.17
$2y$10$ytL/1YhL46/BZ7nA7upvgeNmtyMgvCx942yZq3oHSoTcboxDAISVm $2y$10$YSD66GbZUu.VxEQRlXV3MuUu2yNKSIsTK.paJRUJEn/8G3YavjJS6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.16
$2y$10$Kc4Y70H1/ag1QXmZ6VqneepcgfKErZLSBaRRtHUO9Rf2Wd8.OduGm $2y$10$9JXYoOwmxSyjn3HX67DuHueIS.GwBsp.ZZYkZzPLXzRVa1lgaaanm $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.15
$2y$10$/tTqoWYGrRWgnsIZO5ihWOybwaq7LsgGomnYBGDyZnR7p2SgGQI8K $2y$10$dG7EQrDqISdu/t/8jwdm5OHpSn5V0ZcBBglSi5eNYI8nrfzeCkuXC $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.14
$2y$10$N15h8uBEIUXYKOQW6Lo2XOo1JG5kbgt1LGOYqcDPuWMYnA6Q336n2 $2y$10$lECYT0fFAhoajuo3.gUt6uTIf8OXpYF7YGmxkfqaCJqlqyEjOrfDa $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.13
$2y$10$dejn07gMh6BC7hZ67BJaR.kgPZvpyLCz1RBIPjCFosN9rxaKVQB3a $2y$10$uba/EK3WzfOTt/.g1CtLCu1kSIFU6191ERR5DxpGJUGMLTALO8Ex6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.12
$2y$10$wYC/T.mHaoep5Ze6RuoYleKDVzWh7eM5YmUADx2jD5kInlv3NMNqK $2y$10$hXHyajZjW900YqRSk69DBuln6kKFelvveN71JKTVdBGI/DQcSsL1a $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.11
$2y$10$Em4shQZB2wIn2ZL2LuzAguYhY4QIoaIYsTC7yyFrcVhcA6CRo7kIi $2y$10$w..ER1E.o1JK7taUzVhZ3e1ZQcCJeA2Qbyxx.ova9GNpl6gfGyktO $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.10
$2y$10$lKyAe42JTJlI3ZbnPDaniOJ5NeanxwP7zc./v9P7SHg7GIb40oyTa $2y$10$S6kRqG8WX4WeqOXAQuDgLea9c7pU58CiNq5FbfL/LVZAdI52IE4Uu $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.9
$2y$10$8FL3urCoG4BH6S6D5JXEneCdFa6q0uxgOLsJ2qmqN6vP2EsLC0IBu $2y$10$fZ6YMw3e6FoJAbLLcJlR4erQEzj4tRfTCqLqJ2EPNLzs8v.hQwO4O $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.6.8
$2y$10$PO/YbXWPyez.3VYWbgPubu9VzU.10Vm2TOZbS/pmoLwRb2QkH/lLm $2y$10$n2c9Z92bU3YVsjKJ2F61Guq1XlEIWrOrF8Brxnmtfx1vEuWuLnin. $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.35
$2y$10$sYVSGo2PZ18E9d4wyzGHiekWJ..B6/GZgi/C0q4hnw/86fTct2Zju $2y$10$AQJfz2E4cygeTrrOLcCmt.9BVtijvmImX3.SPY8nNZk73xdbFM/gK $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.34
$2y$10$yT8KL44hYE2U3CfZ0BOHPe02LcLAzcm1PdkFbVhsDcYPJWcmWuSA2 $2y$10$fkP1WbHg2kkVv7oGnkWOJuV.Q2vx7MILvJq.vEhUP9xq42OtQgfSy $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.33
$2y$10$FHAlY9PsoTY1j9iVCFw55uVr9clsgd4TJwf2Vh7FfuEq/KUpArMSu $2y$10$p//zcd7PFlF2HTLqg./IZey6yDLs5RFDhyIbtEZIIWXZ9WwRsDzE2 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.32
$2y$10$fyzVEYKr7kmbkAPqHf8w9Ob/lR6pZlNdRhjQXXlrQIBQv7zJLf15y $2y$10$dzSixfCUOiJnRNxcob62sepKN9tIbOwxGwljqkEFRT.CrlQK31pki $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.31
$2y$10$tHVshozjw8LFORk2hyToHepYZWMn8Ow1pDX5NH.ZvRWnY/GSfrvwq $2y$10$hezZ7q1o1dbII1K9SfNllOpAW2COjveYafmr1zcKwDsKUYZe5.IBi $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.30
$2y$10$pS9.aM8wQNiw3Q6pMyWG5.DkmXkKHwLJiBGdXopSrCQ0F5Dt9nn5G $2y$10$JYJMtxWXfZcAFafLKTxJQuXgV3KTrHnNrxQ6kAi8XwIU8Re5rNc/W $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.29
$2y$10$7zh9pEjw5R5xC/NY.uQvx.mlYzmjHk6kftsfQJeJWpkWH9KwSKT2O $2y$10$7sZHPMZGmql8.Ppzi4jMl.hRqGnX9FUD2johv1D8VTgvqjVx740O6 $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.28
$2y$10$mO1Uv8lHWHVPeYO0Zb9c/ugwI2F60Z.XWrfmIQt2o.mvZ4wl5SwVW $2y$10$JfepiQWAu4RNiVjLBPqAcu4/1y/JuS14bhEG.4rmCah3666rIhrfS $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.27
$2y$10$OL1NcdudTrC/3UbJLezvJOjeR5rtkBt3zwSHOiyuaxUxQKno1RyNe $2y$10$5tir78Z1F900.PFaZpJFcuHF62rXLXB.x50657IphiehHtS71Uh4K $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.26
$2y$10$oiZmLX9IqOGMTHPrX1lzDeI62e4sZZNd0DN2XRhMW1XnobTooroly $2y$10$.yiG4fLsOXR3r8kcs3BEo.sAmvfUi6145kOHaJCXoGcyNXuzzyWbi $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.25
$2y$10$h9oaedtkpBzI4UEiLn53MejPJDorzdyns62HONyIUqVJNLeYR52va $2y$10$wFoJwnCTj/RXnIyCuOVsS.pp6UI4FkmhjAKMPzbn4pLC5gZ1yshy. $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.5.24
$2y$10$DHfKwbt2rNfhdz0VHu6a/e8.ll1Vvmuhpy.4JYNgKTO0ucOEWqvZa $2y$10$P6M51IxBUFreesGUTtYl4O1Gxp6KKA7FCOJJlhySVTMnRyFWoC8FK $2y$10$Xfoobarfoobarfoobar12uRKK0WIUaQbfqDCs0ztfgl7BjriTHctO
Output for 5.4.10 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/8PiXp on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/8PiXp on line 5
Process exited with code 255.