3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $h='$6$rounds=1000$abcdefghijklmnop'; $p='password'; $c=crypt($p,$h); var_dump($h, $c);
Output for 5.3.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(31) "$6$rounds=1000$abcdefghijklmnop" string(118) "$6$rounds=1000$abcdefghijklmnop$SgL/Atu7DClkX0qBUuG6FS2bRf2XmLFWY9b8pRttPEj9ZSh4MKE5bKlz4WAKomLuWI.YQ5oIPLO2L.0OioAeW/"
Output for 5.3.0 - 5.3.1
string(31) "$6$rounds=1000$abcdefghijklmnop" string(13) "$6FMi11BJFsAc"
Output for 4.3.0 - 5.2.17
string(31) "$6$rounds=1000$abcdefghijklmnop" string(99) "$6$rounds=10$EdPD9pXG2vAIeeyG2E/9Mzey2mA/qZgIBAbccXWtrNiymhFYXNK4r2gphMi4KOksXRubHnBWGVh/p2pP2D3R.."