3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = "test\0something"; $y = "test\0anything"; $salt = '$2y$04$sdlkfjsd2lkf4h6zldf35ksj252gh'; var_dump(crypt($x, $salt), crypt($y, $salt)); echo("dsjkfdaf");
based on Y6onV
Output for 5.3.7 - 7.2.0
string(60) "$2y$04$sdlkfjsd2lkf4h6zldf35eEtrNJW.GuYuYAAiCXUZ8cTgbqJ5uZ1q" string(60) "$2y$04$sdlkfjsd2lkf4h6zldf35eEtrNJW.GuYuYAAiCXUZ8cTgbqJ5uZ1q" dsjkfdaf
Output for 5.3.2 - 5.3.6
string(13) "$2rcByx51ejoM" string(13) "$2rcByx51ejoM" dsjkfdaf
Output for 5.3.0 - 5.3.1
string(13) "$2vU67iv49YBo" string(13) "$2vU67iv49YBo" dsjkfdaf
Output for 4.3.0 - 5.2.17

Process exited with code 139.