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, $hashed)) { echo("Verified."); }
based on e26pj
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/BUF1H:4 Stack trace: #0 {main} thrown in /in/BUF1H 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/BUF1H on line 6 $2y$11$X59njm1bmnlMKKT5r648rumFx/yylldIaStpuE5rx1.6XbFjBcELe<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 15 $2y$11$g8REnFtSJ3WBtiyC2DyLrudxK24JeUZm0eCaK3V62iHpWxZwh7T9y<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 7.0.4
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 6 $2y$11$OVl.SBB7IRSibpOFj8kqgOAIXJ18z.cm9Azpm3.kiky04KPMFJ/Mu<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 15 $2y$11$RxXcDBXn6f4cROw0m6Zq1exEmTeNk8spKA6RhALgxPvPYRT5hxymK<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 7.0.3
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 6 $2y$11$MUPh94m2eDYY4aDc1U2mA.FkGCbSsRARcj6Cx75nZgk.UFyyAn5vG<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 15 $2y$11$DCEToNduJDfA3pXGl6dFgu5qQEg4SOPnuitdYSTOoJ0P90.9WHILy<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 7.0.2
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 6 $2y$11$wY0DOhsilbPN5AN6jVf7w.jrjk8XRbzj95lecZmMNqUrQEjHiB6dy<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 15 $2y$11$KPEDFA2tKpdUDIa6qeEyxeEPSleytkgTgBc8BGwz3S907TFuGkNV6<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 7.0.1
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 6 $2y$11$7F0gxR0rtBBITwfK4o0B7.gfL0xDNuo3igv47uawqs8Z0BvFgpj2y<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 15 $2y$11$S2t8bdIopCVvoetqaKUyrOMD3fHHXIeHFUnysgKEVPjP0TkQJdnTm<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 7.0.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 6 $2y$11$ju6r3I5bbYA1NoUjFAnC1uJgZXjjZXPizzD0XokimA0iuoLj2KgNK<br/> Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/BUF1H on line 15 $2y$11$ZxkmCCd/KsarTi6H0zrJxO7LrWlrswh1KIqJgeGBQEuU5shYYxa5q<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/BUF1H on line 4
Process exited with code 255.
Output for 5.6.20
$2y$11$JkxPYOF6a6bUfHU9fotNN.mVDqV0/SZ.x4zyhK2rx6J6jtgzvGziO<br/>$2y$11$yJreX4SEkJx0fMnmqQwBc.lghta6znFAUoRWwyIq0nX1yRsvD.mNq<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.19
$2y$11$mDC/G7woaqA/aXdn..WpROmgXWotLqPe3K6lzib0M3i0cYyK6qsrK<br/>$2y$11$UH3ljDkx/2z6ZiJHEZ4ejuubVZsLeNQCIug2fWDN7f7MnK5EuZaPK<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.18
$2y$11$p.RCJLrRtE68nuGxx2JWh.oMs3PZl2te.fcNjNLWXLcCtMjTXn8jC<br/>$2y$11$5y.hocXVkHayZK7w0ip2Ge9CubCI7P6uMHVnCtK7n9b7cLVhvEdXa<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.17
$2y$11$Fie/w0yQt6eneAxS3M6Qj.Kc3J/wU8swoZKxS2KoYMqo/asGc9vXe<br/>$2y$11$csrukPgJiJVMNj5cnfkIm.87ISl30AycfjQff7expb2E7NaGWdYyK<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.16
$2y$11$93nXYBUYvMDtvylWE2DaAOdUG/NCIkpYhs1K1Te4cV7jJGimcKum6<br/>$2y$11$COKlipNTrT0QQPHbg4lwd..KbSeo5ci34kPCngjg6aiddjXuILuYa<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.15
$2y$11$iZ2yACOMu6aOWmqCQJS.IecBrIbpKSAkPhmAXjrXE25VCL/6a/nK6<br/>$2y$11$3rjfLg1WgAJPoAsDKm4qGegUh9Et9AEZDkLft/YNEWR6jaa5HVpNS<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.14
$2y$11$s9FqJLA5GT7tS1ZztuSWAuNfjynCafIKPiNnTE.e.P28SKsfHIXIO<br/>$2y$11$//1fnn6q5J0.TdQAVRDrFuHRfqvdaqT9MNliCVvs1g.asVxAppGUW<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.13
$2y$11$zDoCXSEDFdj/BY4Bx3K7OOf4043QghOA2TstYxb01HootvHAblg6i<br/>$2y$11$EUSmqdkjr7JDBzPmaXkLoe95AL5Uh/ZUHDd4Ee7Ngw.EbGZb2D/T.<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.12
$2y$11$lhjHdGX0W1q9fU6X5.XfNuxaRwEYyanK31OA213QFTUvLraxl9wBe<br/>$2y$11$FfDWGoZ8DeS5eN4.t/vbjOCyEB28Nst/OzHuPUySyTq9V0emixQWK<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.11
$2y$11$/fh3lI3s1ZzhAt1HeVoQG.lceSM9FtAbb07QC/K6xoVha1ca7bLiC<br/>$2y$11$ySbgHIPS5Gak6kjYDPn5/uIww8wsNUypeNlFKD.f0MAtBQHJLK8Zy<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.10
$2y$11$kvdxbQgky4nb7ObWL6PyuOL.ImSzU.kH99KcdPA2XwZiOehMajBIi<br/>$2y$11$E.VIsLAOYPNhdxynRz6Qy.zmTwmlIkz0JhoeJ7cnBDRC2ab4O3Bou<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.9
$2y$11$veTZD6ldzhcDD9SJfHOm/.NHwmoWtYUnuOpGgib8HjCZiDIoYaBkW<br/>$2y$11$RvQG.zp15.1sUA/Y1giJH.OTpl3p3bFIB6RfdecykiRoOgmBlordO<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.6.8
$2y$11$Dw8bjhl5eAcSeg/VO6OoBOd/a.C9QcbeMOcNuGhS3Q7MTHJAZWL5q<br/>$2y$11$MIy//l5huK5OR5Bg68X2keKvGTCGquei1ZGrHGHZsIlTESn8bFF86<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.34
$2y$11$6NWL6zD9ZcKNlNMzm92odOemYZ5RS7zpRBqUyd4or27G/mWulHK2u<br/>$2y$11$EzyYgRjl/mBPjiTyq0/NyOsBCeUyhfKhSdBh8UdTicPEXI4o.uOfO<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.33
$2y$11$iYx0HT4AFbtQOB1FZRmVguxdEQ4UNXHckFh6tgEt.WwmHHklGbYLa<br/>$2y$11$PzLEK5xfP4ujcIFSiOP4uuKhI7efpJr5ny0IMiV8FpUWLYmeVjDUG<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.32
$2y$11$0SqniUmV45AcifmZwsZRxuMQmagESdAgOa7MrZ1vpL1EclyxKzsMO<br/>$2y$11$B3rUnsa80hoGa8Nu1t7v4Oj7Z5bHXt9bsH9IRksDurcGV8iPieZrK<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.31
$2y$11$yFBm1HIZz9gkujSW20Sm/utIoILwChIjNt/1dIjdVm6z3JBO881Aa<br/>$2y$11$shx2sHd81fh3nQbinxuxOOQVZ1F5hLyCs93HnnvAJMgmZ8nAAU2cC<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.30
$2y$11$8XOy.W7W3VJR5xyTlDRlUeykZNARzIIbSAACNS7cEypOxcd.Vcd42<br/>$2y$11$P4ZcZHEz9506gTLyYg/LbenSsKda2aUOkHWz6muhPkeW.z097k9x2<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.29
$2y$11$IcCpIxDQhrNdgcOPSq788e7kcDwcVptp7pD7OC/3Ouyl4rxXdUP8O<br/>$2y$11$Izdp72Mj0MP8Ze9vtoWqIOSqt7NYV1H6cK0zgBp9/5zlkEIvn9602<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.28
$2y$11$fJ98VmxTKh6nzmupksPjFuRk721YVAgmxN7r91CFrLiBvgis.JFwK<br/>$2y$11$NJHypBs.PHmnzZsgTfefi.ptdA3k2Rn8m74Ucz/iF6rT5MxYxTVj.<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.27
$2y$11$ExZyz19e9oJnfqe91t5Li.fx0jYFZwRc3rMGF9daufdzGP91Dsta6<br/>$2y$11$GNiBgWZIMgtMNotT76bltOu1ZAgwgJkxu.4QCOOtqeWLnTbKjyrh2<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.26
$2y$11$hU41Pi4a7gUS.f5lF/3r4erF.ByRsO90EBDrLge2ey2ojjaHBrk8q<br/>$2y$11$0a0gJ.k413rwNn61zp62vOkayoJvzwqTOXWUSYIcZJBSaSXS8zvBa<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.25
$2y$11$CgvSGRikH8uQRHwK44q6fOFqbhY9HWn1nxl4YKgWH4K2.kNexxe.K<br/>$2y$11$KX/OISSc8unpLPtBNBgS1uwVME28MosNcJAOKjoDCdtI45lun2Glq<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.5.24
$2y$11$13JYKEGQQG4b8sLjz6FdkOTkexfvOkO4BsQCrQWQrCUzy/QdZLpqK<br/>$2y$11$dP6WkwKbUj3bdD7XIDAAb.LJvNjnQvpaVnUtF55hDGesXo9qGR9.G<br/> Notice: Undefined variable: hashed in /in/BUF1H on line 17
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/BUF1H on line 6
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/BUF1H on line 2
Process exited with code 255.