3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $salt = sha1('USERID + random'); $base_de_donnee = password_hash("CPLN", PASSWORD_DEFAULT, ""); $application_ios = password_hash("CPLN", PASSWORD_DEFAULT); echo $base_de_donnee, PHP_EOL; echo $application_ios, PHP_EOL; echo hash_equals($base_de_donnee, $application_ios) ? "okay" : "derp"; ?>
based on tV5X6
Output for 7.2.0
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$qz9nXvGVGFWFpy062tFdr.WApWO.qD4.9LiVIjNipY0uYkHMQeD72 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.1.10
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$Rutdl58s.dbjrWi.GtZ8IOvrqZQVk4qVmbVH3hsy3Ha1BakJBQn9G Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.1.7
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$7xGrZJEz2F8c9CzCGrKu/eyOn82zEPb7aq39V4ULYEGEwy0Jo4IOO Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.1.6
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$gCGC6kvLMRls/dlnB4boqubGYPEGBzO8BHH2PkmQOH1oDLYZdKQgC Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.1.5
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$PdNsHb8.BvU6T0gEH2owru7BLQN9/.6hvRJymw.7o4Gzn7Yj3h6ty Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.1.0
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$nli.B3br.SQUpYnRgI8Jbu33vv8ecfqO9W4NK2yVNOjAighB7OpAe Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.0.20
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$kjTLUlliCIRlMqxSG8BssOH1BiLGxfFB4Y1ltiFk8PmwFdExy7Nwe Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.0.6
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$s7CkrgDvN4EHjb92WxSi3eT6ihDEhcyPDxUokw94UoDqOrxfzpE8m Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.0.5
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$EKRKvZWCzNk/FhYe9GNMb.ne9R2N02m/DiLLIgIH8vjo.i2fNAwVq Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.0.4
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$24PYH16I633CnFtnaIje0ed8SmtBZpYkovtIpS5Upp4mAsta6DfWG Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.0.3
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$Q7.QVRsblde6/FXxuctryeUAdRCoSPU.RIFYnkeUnb4Oz8r1Nlsfi Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.0.2
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$pvQdCMuM.MaSOb7.WMhnhez34bNsWUhnOJzjnPFpm6HhKqdl.C9nG Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.0.1
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$JbIrm869LJVKQfiJIyFPc.RaFbwWh4f5XRZ8KvzlUZYwiHVsu2jAy Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.0.0
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$fwEM5wEFjPd/u9uiCO5UBenSSCjtagUS64nLm0mFJNqzqhpF8.uLG Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.28
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$zOVwvkQjYVVyukpLEsXZOufXlLj0lROSpk23FiRX8Sic9x4lctXay Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.21
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$vLLfVW6upOB4.X0r9G6bMud6/4xN0aer9xsBNgDjrlwYnC.WeRtn. Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.20
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$3v6gY.Em8Nl0dKvDqDdtcOopwZvTR67xhvFGPJD0CfJTb7OVMutSi Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.19
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$8yU.sXUFaa7qlnl5gYnclus44maV56r05imbd50bj2LP2kE5EmIVu Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.18
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$13/BR/psoT.JKgsiHoPfEOaA0o9e2d4EnXQQ5yl7IV4bW3.H0x24a Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.17
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$1PDpuDEXh54ubzcm9ncRW.Hd6zMRGHzl1dLScxY8mgVQwpr.HB.v2 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.16
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$IanRzi31Qdx/qmUtETo3feUvGhPDp5RogUK3P2qabInwVkGtpNjOK Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.15
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$W3SYdy/Ktm.LizixFZUEH..8B5fFTkb0MXOyjuXWRT8paHPdoCjY. Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.14
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$BWmPlTPekBSrJarczxryxepAijF6yJlVz.afWS3.b1avt91ADqtAm Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.13
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$YvnCCLOiDp1wl7C.Xk1k7ui5uIW/w0D5lYkINrCJ/xxstBILTy6e6 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.12
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$U2Ef1vl/.RPLIWFDE/kWZuG9OXF45HMOf7ddPeEY7c/OTicL6loY2 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.11
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$1nrl0iDo7MzP5gf89EujlepyxqTOKpHwqWMgAzrvdrN8Z.vL.gleO Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.10
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$trTTbS/wVluiIacRWgDrrOjvdEksgA5.awpzhO23aMOuv4cy4hb52 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.9
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$Xe3oL21PpX453Wu9ihUxQueu35furl7VIUJyb6jH7JEmmVSXGk526 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.6.8
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$yYcQSkO6xTT7mU/EnCJVUuaqfL7wNrN5lR9QoX9dw2lMqv9vEpzPK Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 5.5.35
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$sp8VC66ocx4TnWzqMuH0dejAVr2Q8kQabmEmwdaTBE.VZ77V5zjmO Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.34
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$qlmypX3BAzXwTolvc79fy.kToP/VqvcHoIvCY4IVu9nXok1tyS.ya Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.33
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$LzLtqwCGAdDWMBD3RmAtHexWJ0FDomF6vUJj8XxPG1Oj7U7CMiz8G Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.32
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$M37vihflEGellaLN9.TwTu4lLJ.m0QJ5wiysJM7Fx2PTiykMgmIsa Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.31
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$45SXBsl56kB39xs9xNqZjuDkDwgJvv9inYk1Qo8dblSY6rdGu4Vq. Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.30
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$Vccv9K40i7Wnha4Zix53GOVFBvXzCtsFdJnpqoBJcNEuuKs30KPcu Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.29
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$ANG46mkSa4ZBSBe9vl819ONJ4RI7JegNov3/MEw4P1C1j3k1i0sni Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.28
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$n1nQ2ncAmk8QP4R6U0WdI.z2qmIu6GGQ8MHfUNybE5JP6/0zxqHzi Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.27
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$8em.YsOq//PACQE.26kXcuTpwBrhlxTAbCBOSYCBgoZXNWVwYLLXS Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.26
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$BnfOerkAMDotwq.YK1TIC.8WTV8P0XaOUm2ePJaqzhky29dMNkb5u Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.25
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$ZAQzJLEou4t77No.t/8yT.b0qQPYpads7RtRRh6m.e5VOE0F5jvtW Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.5.24
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$nAw1M1HxZbRRrPsNgznCue.ZtvRvkLljNtow4S8y0ObdYIIM.2g9W Fatal error: Call to undefined function hash_equals() in /in/Zm8Lt on line 8
Process exited with code 255.
Output for 5.3.20 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/Zm8Lt on line 3
Process exited with code 255.