3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password='test'; $prefix ='$2a$'; $salt = '1234567890123456789012'; $hash = crypt($password, $prefix . $salt); printf("Hash %s (length %d)\n", $hash, strlen($hash));
Output for 7.0.0 - 7.1.0
Hash *0 (length 2)
Output for 5.3.2 - 5.6.28
Hash $2rcByx51ejoM (length 13)
Output for 5.3.0 - 5.3.1
Hash $2vU67iv49YBo (length 13)
Output for 4.3.0 - 5.2.17

Process exited with code 139.