3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; ?>
Output for 7.3.1
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$VezxSitAWd3hrYr4LiRHhOB33Wqen2078jPkSpu5lE18sMSryG6qO Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.3.0
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$CmyqmVFv/VKAsblZP4Zije5PQs1lpVn3TndLmULfbHJoyFBRctISe Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.13
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$RFh7aFWO1Q4tG/quVZMFsehft4YmnBNRSkNdcEpBGSymba4JKos6G Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.12
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$wJb/4fslDgOCqjglddDg4.mjjbd1KYTMmJ3WNHlWrkbkwlePXz20K Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.11
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$v/z.JlbTUFCp19r/mAVD.O8.jbGutnOtlw6/9yrgcHq93q/Oqf6E2 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.10
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$EaBmK3WtGhsFB7K9Kto3zOlq.jJJ4nauaIw0.fTkR8Q06Hm1YbJU2 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.9
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$mv1eihvp4b8ei.0Vrz1wU.NVgxdEVZZVRMDjNaXUyK3O4POK9zi3a Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.8
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$pIjfHWtr.qA1sEvI51RCZ.kodUOYrYTef9osMxp3PXuk1EebCJIaC Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.7
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$FIEvQJDXwPrER3DS79t1K.Wqszuow7UrRzVar.YmHi8wuXapQJVcy Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.6
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$wVx1mcAM7OybsVkBH7G2VeYOU1RQM6uJtIMylJ2SjWGKsgJOodk/u Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.5
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$SxgJvZPShvYvrT4lZGwffuIL1m.xjx/FzQWxhfSZkMoZ3SEJhkiDm Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.4
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$Dkb7Goaax4hbeyQqhjnliuAcT.RaWaUiUBRmhJASnrPf3b6BeRIMi Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.3
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$knnX/G.Zo1HQIGbqP3dP..N6QIQgFkYLikP0cg10bRsPJbWYaYChy Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.2
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$u89QlcPxQD3KPgPaGGF3XOt0igzImXyifSJjMp38S3/Zwnq5rNGay Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.1
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$2EsfxWCh1i3..OPqF7q/Fu2Nnel6ii9MzMoXYflt.1x4u1uXO1CU2 Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.2.0
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$5FnRMA1Mxkzx1zbprozgUujHVPFl4YrwCnrpOm12Zzf7CP/3s21dS Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.1.25
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$TsiXvpp04jW2BKb.FcV.PONspp1po/LsIeiVFULj5gq20fmsvArxa Warning: hash_equals(): Expected known_string to be a string, null given in /in/Zm8Lt on line 8 derp
Output for 7.1.20
Warning: password_hash() expects parameter 3 to be array, string given in /in/Zm8Lt on line 3 $2y$10$6CO5QiEc3YH3T3VxqL9t9uWc5AUIb9XRtHLIlnkD5qNeaF/8b6biG 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.

preferences:
78.6 ms | 401 KiB | 63 Q