3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(strlen('usesomesillystringfor')); $hash = crypt('mypassword', '$2a$10$usesomesillystringforU'); var_dump($hash); echo crypt('mypassword', $hash);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(21) string(60) "$2a$10$usesomesillystringforOM5rr6KAX7yIv9qZpVHzaRfwItsaY5bG" $2a$10$usesomesillystringforOM5rr6KAX7yIv9qZpVHzaRfwItsaY5bG
Output for 4.3.0 - 5.2.17
int(21)
Process exited with code 139.