3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $password='test'; $prefix ='$'; $salt = '123'; $hash = crypt($password, $prefix . $salt); printf("Hash %s (length %d)\n", $hash, strlen($hash));
Output for 7.0.0 - 7.3.0rc4
Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in /in/vpNRS on line 5 Hash $19JEJTylB1.M (length 13)
Output for 5.3.2 - 5.6.28
Hash $19JEJTylB1.M (length 13)
Output for 5.3.0 - 5.3.1
Hash $1SoNol0Ye6Xk (length 13)
Output for 4.3.0 - 5.2.17

Process exited with code 139.