3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $h1='$6$rounds=1$abcdefghijklmnop'; $h2='$6$abcdefghijklmnop'; $p='password'; $c1=crypt($p,$h1); $c2=crypt($p,$h2); var_dump($c1, $c2);
Output for 5.3.2 - 7.1.0
string(118) "$6$rounds=1000$abcdefghijklmnop$SgL/Atu7DClkX0qBUuG6FS2bRf2XmLFWY9b8pRttPEj9ZSh4MKE5bKlz4WAKomLuWI.YQ5oIPLO2L.0OioAeW/" string(106) "$6$abcdefghijklmnop$0aenUFHf897F9u0tURIHOeACWajSuVGa7jgJGyq.DKZm/WXl/IZFvPbneFydBjomEOgM.Sh1m0L3KsS1.H5b//"
Output for 5.3.0 - 5.3.1
string(13) "$6FMi11BJFsAc" string(13) "$6FMi11BJFsAc"
Output for 4.3.0 - 5.2.17
string(102) "$6$rounds=1000$$6TFP.7u1vZP5A9fccvmUPteI8f29BLhgfqL1XEQqcrvqTSKKw5SBa2qw1sOwLEQ41Dhl1u/Jbi2hRHRYCdxuv0" string(99) "$6$abcdefghi$4Dv/xQG4euniWsyrRHGUrNqM9CFl5Pg9EI88OgO4tIzuV952JnT09wVxrzUP9l/dr0wP3YSs1Ufz1qJpifLAA0"