3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo crypt('meow', '$2y$05$....................//meow') . PHP_EOL; // salt: ....................// echo crypt('meow', '$2y$05$....................//woof') . PHP_EOL; // salt: ....................// echo crypt('meow', '$2y$05$....................//oink') . PHP_EOL; // salt: ....................// echo PHP_EOL . '###########################' . PHP_EOL . PHP_EOL; echo $meow = crypt('meow', '$2y$05$..................../meow') . PHP_EOL; // salt: ..................../m echo $woof = crypt('meow', '$2y$05$..................../woof') . PHP_EOL; // salt: ..................../w echo $oink = crypt('meow', '$2y$05$..................../oink') . PHP_EOL; // salt: ..................../o echo PHP_EOL . '###########################' . PHP_EOL . PHP_EOL; echo crypt('meow', $meow) . PHP_EOL; // salt: ..................../m echo crypt('meow', $woof) . PHP_EOL; // salt: ..................../w echo crypt('meow', $oink) . PHP_EOL; // salt: ..................../o echo PHP_EOL . '###########################' . PHP_EOL . PHP_EOL; var_dump( $meow === crypt('meow', $meow), $woof === crypt('meow', $woof), $oink === crypt('meow', $oink), );
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ')' in /in/rQeL3 on line 25
Process exited with code 255.