3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $salt = "KFtIFW1vulG5nUH3a0Mv"; $password = "testtest"; $key = '$2a$07$'; $key = $key.$salt."$"; echo crypt($password, $key);
based on XVpLm
Output for 5.3.0 - 5.4.45, 5.5.21 - 5.5.38, 5.6.5 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.1
$2a$07$KFtIFW1vulG5nUH3a0Mv$.0imhrNa/laTsN0Ioj5m357/a8AxxF2q
Output for 5.5.0 - 5.5.20, 5.6.0 - 5.6.4
$2a$07$KFtIFW1vulG5nUH3a0Mv$u0imhrNa/laTsN0Ioj5m357/a8AxxF2q
Output for 4.3.0 - 5.2.17

Process exited with code 139.