3v4l.org

run code in 300+ PHP versions simultaneously
<?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";

preferences:
34.72 ms | 402 KiB | 5 Q