3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = ['cost' => 12, '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 Zm8Lt
Output for 7.2.0
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$Ho72gpiv8BG5/iqR03gB1eviI8kw6YxHSPZai/m8j1OPHDggFJhNy Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.1.10
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$ImfZKpxJHWjZoQ46gOeIxuTvs1LIXIxpkp3l/enF4ftRY8v5yCvp. Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.1.7
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$c.oodgLjEFxjGF32ULQ8zOn8oTcE1QoRl2CAILUPEiiw1i9F.fNsa Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.1.6
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$EPz8/33LeC/Or1NRH5wctuoATbrpvfcz4P9Rb97USNCtO0gQxVdIS Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.1.5
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$NrfHDFlBxUa8UaviKMa4i.TTEarXamfhnvONbUG3VNbkV.n3MzkRG Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.1.0
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$dL/VLtp5y7WpNpuYVeQex.XZYfM/p86zha2Q6hzpzGwTKKdFJ4xNS Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.0.20
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$TPl/SqSIVXwmBY4mpjYqaeUckav4t57L6Dw/FupA4v98mCxJJi1B6 Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.0.6
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$Kko92FHs9BNuOBzFja6ov.N9xCEbG5prlhlUES1hKIB6hfRKTbiGC Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.0.5
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$PHZnBAA8zjLiCIPYRYHzw.G1kATS30jfk7mN4dseBAhBjeartkY4W Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.0.4
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$IzWGCSu9qIfBQK6cAh1vyOttEhsdOc5vDqe5Ujwmj9FlsUzRDFeP. Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.0.3
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$8lkdCt7dH4W.bAAYOJIbU.b1AVEXCNDPWXjM48CUZepATbKkpC5am Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.0.2
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$cGzRyMLZQ6COO2WaRR/qzuLLgkT5qNYGhP3fmNr1XzOhaScFOAYrC Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.0.1
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$w.Bpj4xFA./VTqoTbtcpeu.wFm1Unb560FQmZ4YQMuqxaR2mjAKjG Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 7.0.0
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$i0yRdsJHKTDpbgEtVq/7ZuPOSPrA92Raw8h3qzwaLE.GebxIG047m Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.28
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$AGReIhih.Qm7n5om6nu76eCpVtsE1irmvPMzFcm5iie4RjILpfurG Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.21
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$GJyZ1zYX236yuAFGxHiGuuZsy10A8hi7HI95fWKchW93mrm/HY7HK Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.20
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$LcI6n5.T8el5M78sJVOscONQQDPA5aakGO/Kx.cNImOlWc.C4tklm Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.19
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$e5IBdMl7XuQMqOGViRWfP.6/9Fs.0oelrzZ46ZoOZe63C7ogR9ZGu Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.18
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$oWIyTKNuMERNENb6EgnZFO8PGaSW.7ArGDVfT7UnHgapA19NlVXZ2 Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.17
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$GrOdj433tN2EvugErUTbm.LYIivhvaK8t1yU4Fldg0oprpwnNpHr. Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.16
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$wooctMnEyuorGLiDz4B2ZOuHRb1txGCm5bcZ6vAe.PCc83p45/uty Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.15
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$LTqc8oaY14EiIrvhhZDBFO.anlPooVcj/pAcj63VNJzft.HC/nHLm Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.14
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$J96/c5usKMxr0q66crpGkOFlnnpVfWPQ1juwBT.MQOULKMYQ6HQo6 Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.13
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$rx7/zntlH/A9W1BB7KyWA.AIyTHStHUDtU5uA75b09d1nDEp30GkS Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.12
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$PI6eUUS/9ZMCwH2PeQeWVeICkEGKV0VvzfuJu2rSnPL7OKSLSqaNm Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.11
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$7vluVG1tUL7Uu/wmdas8GuGvo.LFhKbYRp4WpzofHFFfVdfpLr8sC Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.10
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$oA3dd75oXX0GQWXFXO1YG.1ZyUkjR/9AuG4Puf4/e93uMemEVw4SW Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.9
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$ZZ5cUjLt8JzHMAdnjK6vA.oovKOeHkvHU8jsCeuDil9YYXadAli7m Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.6.8
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$gwE/Qr54RyJMGH6cwmWztuIVnV65Yct/X6Yu3Y0RvilK0utoCpwiS Warning: hash_equals(): Expected known_string to be a string, null given in /in/kBoOr on line 8 derp
Output for 5.5.35
Warning: password_hash() expects parameter 3 to be array, string given in /in/kBoOr on line 3 $2y$10$N2McQvFsHumPJCn7Pyz.M.hYgGTWDZRCtS/vNFZ807.s2IYUPFgh2 Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$XbaMOqjEqPIlv9OP7lC31uVMiijH1obfJnHXxW.Pijw9FFxnDS4oW Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$I10JctfbCOflNqB51/4JH.gm9zjwxel2/n5UY.7qi8ctdlIV0pVXi Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$kRK88GP9BmwsUNl/EyJy/O5LczowOrXYiklPhZK3WtE5ZtNNGcxB2 Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$R.4Q.x.aStnQl94Fv3ixi.UHdMpcn7NFmKNGKbxidUVxqDLT1kHIi Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$bsZd9GViqNZ1ZUgk8FWjU.bXsITc4BozwTCnVHEgMFBq8ftehzkPS Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$cfolqClV6..VjIrnNUGA3ew73CV9hiUcnjXGd4fFJBeFS0ctaN9Ua Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$dkg3YGVxyWJvD1PeEVQ1fO69HWjXGk1eFFFQhNI0u5/WdNgXWvGlO Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$NJNBN2Pn.8LL5Z.wI9cp6ek9XXb7mp/sE2MEwJQhowVBXy0bhGWWK Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$WL5KK1/kPVPd8uYey2oqgeXEivWj57AWH81SD9xHQkA2/Qef/jXOq Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$MbKtQ6AvwGl7M/NyV8ImRO7Ax1jbIIvN3LpzG4zuIuohDqHjsxz36 Fatal error: Call to undefined function hash_equals() in /in/kBoOr 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/kBoOr on line 3 $2y$10$0s9.AeUkaH/lCQmJewSvyO5wP71KAm2l/C.oulhggzKyg.TdKjS9y Fatal error: Call to undefined function hash_equals() in /in/kBoOr on line 8
Process exited with code 255.
Output for 5.4.10 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/kBoOr on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/kBoOr on line 2
Process exited with code 255.