3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password='test'; $prefix ='$2a$10$'; $salt = '123456789012345678901'; $hash = crypt($password, $prefix . $salt); printf("Hash %s (length %d)\n", $hash, strlen($hash));
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Hash *0 (length 2)
Output for 5.3.0 - 5.4.45
Hash $2a$10$123456789012345678901.OKUyTNbXK87Xsg8LCkJM92z/n1QuNHS (length 60)
Output for 4.3.0 - 5.2.17

Process exited with code 139.