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, $options); $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 kBoOr
Output for 7.2.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$8RNqhSPAs3.K9ZNco3aMm.3a5HzDxnv.XwA/ACqm6T.SCrc8E75Wq derp
Output for 7.1.10
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$w0SoxHuv5p8kj5nKP.J5.OFDZmDrfZZPGoUAAaormHbM3oCNXbmFu derp
Output for 7.1.7
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$TzxEk0fAxI71Noh3RBD2.O4NC/bbMpzbwDV0xb0XJjWruaajWL.nS derp
Output for 7.1.6
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$AqlcQU8B5TWUl3x.rRZU1.tvZqf2PhPWfbHCe6kaQu.yWWRe9xZI2 derp
Output for 7.1.5
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$c843KNqrB59UKQA2ZK14tePwIvOGc7E1qwRCxQfCgRlAwpmsz0DCS derp
Output for 7.1.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$YHDFALUS6K2M0F7YMzR3juanfvxa.TJO4ytAsv/Q0ftjBCN52s90u derp
Output for 7.0.20
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$ANoEb.GAvy1o2oDpKWaBY.LoXN3bz9g/xZsbt7sUnkqj1/TbN2782 derp
Output for 7.0.6
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$EPDP5J.MRj6dTF14V1g8ZusPbdYZ/faz9M6aoC/q8xn2DqwlDVFLG derp
Output for 7.0.5
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$R34SJA5U4SsfS.ClI0U.2.l0f3m.4gcXKZOtV47W2YxhgL7zZFjvu derp
Output for 7.0.4
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$kxFYE0ueENokVYlPgOjeSez1jipscP515NXdva5aEtYyEhiCwc872 derp
Output for 7.0.3
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$Q3lw.Kx8xhwMvAbKe5433uCIsQsSyPPzz8STRIpamxbT3bZuNSfvq derp
Output for 7.0.2
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$4mCDjILzvN15R8ccKl5L4eL7BUbQYM175xOTbVUwA.vdQqbNWQwJ6 derp
Output for 7.0.1
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$GWnzHsCpYnEJd1/0gMe3UOtPVW7jGqczzqFMG/txUK6c3GKzEHUBC derp
Output for 7.0.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/NEocW on line 3 $2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$Ug7gez1ZQYrkEwoJ8ZfBr.Yzj40YAUZqMtbu8FSqPDV5OPK28CaCe derp
Output for 5.6.28
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$pGU3a/iD1K54wVQxAyVnEehuJC7mg/5UlrZrAvSRCvZmpklssYMRm derp
Output for 5.6.21
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$nl2l4POwua7H1p0TYjA7Yu3ms.5SDNz2s5kzi6Tcyw7VCxe862R/q derp
Output for 5.6.20
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$gHQ7xXcJ.K9MSiQaAKL5puAay.8LfZ.W/Y.aE3.2OM5ANsbIv6Hlm derp
Output for 5.6.19
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$vDT3Ad/MaNRk1uUYv.X2Yu7/i4CjMjLc.pNwp1CD.RSmIhHZeWI/6 derp
Output for 5.6.18
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$baZIbJfc6R8d.i6COmaFTO1ZJ0LGmibv74e7ZATSCXW7faPXz/EhC derp
Output for 5.6.17
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$CgHBq6koaSz2./GbyTPG8uAGm10nGFIcou0Qi.PGdnAErpamx86dW derp
Output for 5.6.16
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$KUUYb4vREmoh3VqisNXCmO6sz41AvOaLmQbC3VND1HYZW466gW33u derp
Output for 5.6.15
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$jb6HyTTkwZ3DDkSREAxDBePtLTn94uAropuFXSfU/QBjulKF79vzu derp
Output for 5.6.14
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$6AzEMgt35sR33HHoQTe9NObCUtkmNvrCrG2nXaiUebpuW2Fkab1Lu derp
Output for 5.6.13
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$TK4kuuKCEpWM8RQzWhJwTOHH3fiKRgstfl.Tjzxx8zUTV99TB80iu derp
Output for 5.6.12
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$K6UMLVR.Ys1XmUbf/Wy1BuJcqFzXbaavi8XO1Vcps3XKk6Z2oHu6u derp
Output for 5.6.11
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$6.m.KSw6ioKZwyXiVMAv9eoMyuDmxgBA4FMugsfxPpFmS0zif9XzC derp
Output for 5.6.10
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$ekKrdoiQLRWmQfY2EwyEDeSEg9oa9Xb8sCWnTooS4bK0WXFvHp3Mq derp
Output for 5.6.9
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$dcGIS3pcutSzYmq8hmUTceK6TvWSNEluLS4vVRDKArP/M1g554QrG derp
Output for 5.6.8
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$zYnFh18J1mLMfbv1FTtvRuFKX0uSld.BnLjJmMuRjKs9eofFHwG/C derp
Output for 5.5.35
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$2pybEJbmVHW1xGoiK0On9eMqDoWO1PA4IRAhZjHZVCP3RRtWMx9eO Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.34
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$6n46ugAvwyHhl4pBkOl3Ee/1GZXwHVe0X3VzXMWZD243dG4QcAmZ. Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.33
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$ig.Hugnsspzt6mTkBh9L4epAWCMvoB2evRXpSkSri8ii0cTTWugoe Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.32
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$pAMpYWn/rqYpT9RSg3Yi8u/ByfbbdoiQdworrnqHpqTXELn3OjWXW Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.31
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$iQmJtjdqE9T4lDeY1qKNvOyicTkqEo/w4yZnrpqQ6MbLHnf/HYB4e Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.30
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$IScEr8knxoyAgOqGk6oUueqMa5h6yKOv1.OCab.kVB5kPWIBUNCoq Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.29
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$oO2NG3Gv4bucfPZW3xSEM.iB2q/9p4iiD6QxYpZQ9HtrRPI.RFXxO Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.28
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$DLkhUkzbWwIqvSDKi/apdeoNfgrXrudINteoG4FjYR9SEYCGOQwW. Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.27
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$qlbCBwn0hLWAhVO2tDhXWeyrbZHhNMQowre8/VPwD/.BQgw0GpTbC Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.26
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$IrxtLJ.bo93Oo05uf2Dy0.YDuw0uWliRyjQ.8udpkBX.Wvt2RBlI6 Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.25
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$UO2LD6qXNyuECyJXbTDMIu.aTP8cgNF9EU43V5kUIrD6G9l/n/qSO Fatal error: Call to undefined function hash_equals() in /in/NEocW on line 8
Process exited with code 255.
Output for 5.5.24
$2y$12$f129c4398addaa28bcfaauPxeR1CxT/3dRg78x1zjy7i1.8FfpO5q $2y$10$iUkZ7MBtjWsSWx7J9M4raeROy14bYSJIipZiokDwKTtr58regays2 Fatal error: Call to undefined function hash_equals() in /in/NEocW 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/NEocW on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/NEocW on line 2
Process exited with code 255.