3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 'foo'; $bar = 'barbarbarbarbarbarbarbarbarbarba'; $p = 'password'; $s = 'abcdefghijklmnopqrstuvwxyz012345'; $h = crypt($p, '$2a$07$'.'usesomesillystringfor'.'$'); print $h."\n"; $h = crypt($s, '$2a$07$'.'usesomesillystringfor'.'$'); print $h."\n"; $h = crypt($p.$s, '$2a$07$'.'usesomesillystringfor'.'$'); print $h."\n"; $h = crypt($s.$p, '$2a$07$'.'usesomesillystringfor'.'$'); print $h."\n";
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$2a$07$usesomesillystringfor./IvIaRUEo2pi8JXiu4zJyJ5ow0/EEd. $2a$07$usesomesillystringfor.mJte6EPwuVHAWjgfwe2yi3mZ4pEFM1u $2a$07$usesomesillystringfor.DdPu4IZ7aUnWmaVijGl6KX7LdsdkdPG $2a$07$usesomesillystringfor.mTBMv4Hz4XQCdeuZzPObAvBO3Xk8b9G
Output for 4.3.0 - 5.2.17

Process exited with code 139.