3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $salt = str_repeat("a", 40); $pepper = str_repeat("a", 40); var_dump(crypt($salt . $pepper . "password1", '$2y$04$235235235902sdfsdfoiwoi')); var_dump(crypt($salt . $pepper . "password2", '$2y$04$235235235902sdfsdfoiwoi')); var_dump(crypt($salt . $pepper . "apple", '$2y$04$235235235902sdfsdfoiwoi')); var_dump(crypt($salt . $pepper . "pear", '$2y$04$235235235902sdfsdfoiwoi'));
based on cE359
Output for 5.3.7 - 7.2.0
string(60) "$2y$04$235235235902sdfsdfoiweAdvODBUXMBEOGSVjHBxTpgQMnvH8DdC" string(60) "$2y$04$235235235902sdfsdfoiweAdvODBUXMBEOGSVjHBxTpgQMnvH8DdC" string(60) "$2y$04$235235235902sdfsdfoiweAdvODBUXMBEOGSVjHBxTpgQMnvH8DdC" string(60) "$2y$04$235235235902sdfsdfoiweAdvODBUXMBEOGSVjHBxTpgQMnvH8DdC"
Output for 5.3.2 - 5.3.6
string(13) "$2TaYnn8Z9M/I" string(13) "$2TaYnn8Z9M/I" string(13) "$2TaYnn8Z9M/I" string(13) "$2TaYnn8Z9M/I"
Output for 5.3.0 - 5.3.1
string(13) "$23CMV64s/TOc" string(13) "$23CMV64s/TOc" string(13) "$23CMV64s/TOc" string(13) "$23CMV64s/TOc"
Output for 4.3.0 - 5.2.17

Process exited with code 139.