3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; $hash = password_hash("password", PASSWORD_BCRYPT, $options); echo($hash."<br/>") ?> <?php $pass = "password"; $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; $pass_hashed = password_hash($pass, PASSWORD_BCRYPT, $options); echo($pass_hashed."<br/>"); if(password_verify($pass_hashed, $hash)) { echo("Verified."); }
based on BUF1H
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/MjrQb:4 Stack trace: #0 {main} thrown in /in/MjrQb on line 4
Process exited with code 255.
Output for 7.0.5
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 6 $2y$11$gO8/7.Ov4vQCd3OF7Y.4VuRBB4dnBpZVySBRacPP6B5yCUOrfhEfe<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 15 $2y$11$HEyT5NcbE2yefASTENW8g.ZdiRqm0TJ6VMxHYCaVHpIn4l2iO7pze<br/>
Output for 7.0.4
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 6 $2y$11$jkwkAe7a0iEGvGkrEC6LM.6TrYPCRpnu/yMSxSkYQfUiWFqCf09w.<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 15 $2y$11$b64p26dFeaH5rdhtzsOuxeRVHa5nVBw9UXJs63yguhyVNZrOpvqvC<br/>
Output for 7.0.3
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 6 $2y$11$OcllqxO2EulLWMlwEdSD5e5oSbD7jtWPYoM9B7kJNPpurJ7hkG29y<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 15 $2y$11$Mk3RVuEzMp4iV/h4nV/v0.7u9TiSZXrLhhBrpXdvu5lGzEHp7v9Vu<br/>
Output for 7.0.2
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 6 $2y$11$jzcrjYpRvltp5qFbW3x4Uu7f6q6M6O6Ng6D9yyh/E0kjrH1N.XiL.<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 15 $2y$11$cMvfGWZd2Px0FAJFnE739uI428eqT5Nv0DUsrSCHmDxO69kiXm7oq<br/>
Output for 7.0.1
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 6 $2y$11$6Rp6hZEOkGSNa85viY46QO5li7GFmJOYnVgZ3gYHfp.stTBvjqXxS<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 15 $2y$11$w0P7Jp4i3WenXPhBPEhkPOMkmkqAnYH7gjvNQQtOQv0RkxsWb2iha<br/>
Output for 7.0.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 6 $2y$11$lC2q4r0jZnrWifPqVScjlub.lRQ8qL8YBdige116M5hTo34rq6rOa<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/MjrQb on line 15 $2y$11$tEiqDJf10zfrp/R3SImZBeKUkC86MwWMQME9TyepodSjxPkRr/i46<br/>
Output for 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/MjrQb on line 4
Process exited with code 255.
Output for 5.6.20
$2y$11$tlb/M6y.cie8hG69Y0cb1.laeQ4R/Tg2cHyhVrXMkcr6rCY5y77DO<br/>$2y$11$2nls63QExekNscOclvPpSewp6i9JEnaESu0EaYUURjTOtgbZLBnVS<br/>
Output for 5.6.19
$2y$11$kSYTIR1AoVhWvbc0F9RcGeLuSOaI0fQznH.GlzJV9tlFgpLGhVPfy<br/>$2y$11$h8BXMERHsEZHvwqCRPrJCeVsjXncT6IWTh6qcw4ccdMvIcdhTtuju<br/>
Output for 5.6.18
$2y$11$iznZCJ7XjElLe49sDgtQ4OujzFUVovnbeEEI45ygKIziXSNwshFy.<br/>$2y$11$0FjPGngOmvKJJ42gUWye9.CeXLDUbqew2hA1xf6uKJdCLr00hevkm<br/>
Output for 5.6.17
$2y$11$EAvTYIq/gp28Bu/sR1Mv7eXTO0tsBVh3bfvT4mIgJv11SmALWV9yK<br/>$2y$11$1qB7Fhde2FfWM8DQBAFN.exSs5cx2cNnrTP46KOi7rHVqIH2rkE/u<br/>
Output for 5.6.16
$2y$11$hZntBwvOPhbi3BGQJjxpy.iP7GfXU32RPbHVDi3JXTVptzdkKBdcK<br/>$2y$11$N1hWqErx102k8gAMGysJTe9ZyxyfV6/3xDYwekXzkQdMVkg9N0lnu<br/>
Output for 5.6.15
$2y$11$JTDomeY3nAHOgFRCJjJ/X.0NrS6H39.YrAK6z.OrThQx7lDWlMn0G<br/>$2y$11$9ab92QSH0RwQ0npQT3ty4enWfkYYpd41FMfvycGIn./6d22uq2NsW<br/>
Output for 5.6.14
$2y$11$fO82Y8KklRp3pdRmK88PhuAvZysM.3Kc5jd4h8pxaVCURa7HGbHV.<br/>$2y$11$GAy0C/mUCxqSgDQSuoaqyuNtJ3l9WqS55dBCi82jRMT/nBrH4Lk2e<br/>
Output for 5.6.13
$2y$11$zxE1chbYxNKYP.VMig16y.4G8lOuENvEoRwLJ/i9vgibXQ5NPap5y<br/>$2y$11$8tSsiVtfkTUcbI9DinqHPegZV7mFkFWoHZqZ.QiZt/ayldmBJYyBK<br/>
Output for 5.6.12
$2y$11$9HNyos4wrBWB7icoT/7r2.4P5qNrdr/NuDtBhg41BtGJsAxfBk8kG<br/>$2y$11$O3s0v1VJQucmncATGu/ZxOh5ttb1If1o8lXD0BydB8bWicI1a.jKy<br/>
Output for 5.6.11
$2y$11$/HzYZUbwFa.Nw7/HKkDtVOhkAPIbBto2XezOfB/54MzTEosNEIfZu<br/>$2y$11$eUwC5owG5fNYSLTwS7dz.OB2Q6mWNoUTEde50sppEFnq3r7ERov/m<br/>
Output for 5.6.10
$2y$11$e.2H3JlLrhwW7IuuRK5C5uH8uWxhqr3lsD3rUcZFb6u3CFsqFDWwC<br/>$2y$11$.jkwj5QB9NaNInEMK.uJRu6KYplpN968ujFEyNEE9BaNDGelfmXi.<br/>
Output for 5.6.9
$2y$11$yrbVQhUhrG..Xesd0pw2k.V8dm1HidH.jvXvCXrhtm9bmB2ztxGTO<br/>$2y$11$VemShITuLp5gh7lgaCgQpuq0XihwZhmRd0fwl1SUgYdoXAqIyWauy<br/>
Output for 5.6.8
$2y$11$6p31yUz0hkC1cwuW4Bh60.hH8NQI8vcgMQthwpGHwNLA.pdy.GmxS<br/>$2y$11$ngGraubEZ0SxvQKD1wU/Uea5suBHrgzYofPhJrNNkN1tDNe0Kow9.<br/>
Output for 5.5.34
$2y$11$JIN02HWw2moGdVX3e422XuS.kTeY8n4vFko5HHmTQiIvSdtlk6GAu<br/>$2y$11$DWKgm3sSA1HGY2CFuYLGBu5Uo9qgm79o2.e.kV6QQa0JchTQIjcSC<br/>
Output for 5.5.33
$2y$11$CMhu3iE0Yf5hQsWzhj9yx.Nq.mTBWtzW49ynW5UsR1Kut8.NrRnhK<br/>$2y$11$UZop16fzRRomeZa8COsuo.k2tBGLokfBXdQiQZTAQ5eN5M1cWzuEe<br/>
Output for 5.5.32
$2y$11$7e2U0TV7b.vhAlkTpZZKyuGDB4T9XGojFQdOJrYUpxkN5eJGIFfWS<br/>$2y$11$fNh8.XE7ZMKZNeCfz0fja.reBerLDwQOF2GivdVHMUJ1xglgbKCoi<br/>
Output for 5.5.31
$2y$11$F7mVc1VZfbNXAjBeHYQ7rOI7y3rsFPu8HauWQ436EEyW0FzsNozBG<br/>$2y$11$lfhDeN.T5DRv9CDPqfWXI.ynoAXo9GHwqA1PCGr4YzOXjYdcOhXiq<br/>
Output for 5.5.30
$2y$11$Jwzk39GTVjyfArxBTbIpFedF44uNxXv6DATHYAIlHtoeROePXuwWO<br/>$2y$11$awKNkx5/JM.uh5p1pmFmp.ZUmzM1P.KcJctjS1RP12m7JYejkjVIa<br/>
Output for 5.5.29
$2y$11$LFlrvr471xZO8U3NBOl4QuSTqpAIb1vrZd7LrRAar7bEfq8k.GfnW<br/>$2y$11$5hmGISvGb4aYd.pogVX6fOxH6V.AVTz51I1NfKDfW5A9sbjo9rKmW<br/>
Output for 5.5.28
$2y$11$1nAZY7zVZSsQnakTVaS2L.Puhqq0tWWNTOHn1UChqHFHJQa5h4lRS<br/>$2y$11$OLOrVPCgrdzx32lHCae7i.mmslJiP/zdwbZq3tNinpRT1LpCSLkm2<br/>
Output for 5.5.27
$2y$11$pGxl.72u4KmFDOLKrN0jjOfV5trMqs1OazJjejUj448PLDuvfV/7m<br/>$2y$11$sAwLFJzaNpgZWMFASkwwl.yK0oZVFlo/dCra.ezaKKxiSY1ZQ.WB2<br/>
Output for 5.5.26
$2y$11$4HuCHrjtz22Ep3fSM1j5ReOl9CUU7vd8i/RR27jAQYK5oJ13b8v5i<br/>$2y$11$/qvb9RuYjTvSE5WBjrCl8.Q3c0mVqulTowaZOLoaeG56iv1dYWuAG<br/>
Output for 5.5.25
$2y$11$NvTQzR3YN.wn8gZO3RSOOOMpWmCU1Vka03iQlo9lZLDvT5Ze3JRkO<br/>$2y$11$Drhauy/X.j2sso8dmmDzjuyTrNRI.CosrQEd49tpQSMCjnMqm48nm<br/>
Output for 5.5.24
$2y$11$AE.d5M64QtuDndVfP6LF6uPgmuUx6N.rX0CzquFWCcwd0cIre0C9i<br/>$2y$11$lDCMhvc7a5J8PCqeWWh/hOQZOlQk85hNN3002pHzaZ4PPA/5fL8QO<br/>
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/MjrQb on line 6
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/MjrQb on line 2
Process exited with code 255.