3v4l.org

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

Process exited with code 139.