3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function testCrypt() { //echo PHP_OS . "\n"; //echo 'PHP version: ' . phpversion() . "\n\n"; //echo php_uname() . '<br />'; echo "\nBLOWFISH 2a: "; var_dump(crypt('ksjdfhs346fsad$%%Aâklsdj9842*&', '$2a$10$abcdefghij1234567890ab')); echo "\nBLOWFISH 2y: "; var_dump(crypt('ksjdfhs346fsad$%%Aâklsdj9842*&', '$2y$10$abcdefghij1234567890ab')); echo "\nBLOWFISH 2x: "; var_dump(crypt('ksjdfhs346fsad$%%Aâklsdj9842*&', '$2x$10$abcdefghij1234567890ab')); } testCrypt();
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
BLOWFISH 2a: string(60) "$2a$10$abcdefghij1234567890aOlayEblyVzLrd1y5WCIbQJ0NfEM8AmWm" BLOWFISH 2y: string(60) "$2y$10$abcdefghij1234567890aOlayEblyVzLrd1y5WCIbQJ0NfEM8AmWm" BLOWFISH 2x: string(60) "$2x$10$abcdefghij1234567890aOcYBjuS8MMsaBub7yJbXASSFYbjQGbqW"
Output for 5.3.2 - 5.3.6
BLOWFISH 2a: string(60) "$2a$10$abcdefghij1234567890aOcYBjuS8MMsaBub7yJbXASSFYbjQGbqW" BLOWFISH 2y: string(13) "$25exwb5a0d.k" BLOWFISH 2x: string(13) "$25exwb5a0d.k"
Output for 5.3.0 - 5.3.1
BLOWFISH 2a: string(60) "$2a$10$abcdefghij1234567890aOcYBjuS8MMsaBub7yJbXASSFYbjQGbqW" BLOWFISH 2y: string(13) "$2wSGTpH4cddQ" BLOWFISH 2x: string(13) "$2wSGTpH4cddQ"
Output for 4.3.0 - 5.2.17
BLOWFISH 2a:
Process exited with code 139.