3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'test'; $salt = 'testtesttesttesttesttesttest'; $hash1 = crypt($password, '$2a$10$' . $salt); $hash2 = crypt($password, '$2y$10$' . $salt); printf("Hash 2a: %s\n", $hash1); printf("Hash 2y: %s\n", $hash2);
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Hash 2a: $2a$10$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOfjwmG Hash 2y: $2y$10$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOfjwmG
Output for 5.3.2 - 5.3.6
Hash 2a: $2a$10$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOfjwmG Hash 2y: $2rcByx51ejoM
Output for 5.3.0 - 5.3.1
Hash 2a: $2a$10$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOfjwmG Hash 2y: $2vU67iv49YBo
Output for 4.3.0 - 5.2.17

Process exited with code 139.