3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo crypt('meow', '$2y$05$' . str_repeat('.', 20) . '//meow'), PHP_EOL; // salt: ....................// echo crypt('meow', '$2y$05$' . str_repeat('.', 20) . '//woof'), PHP_EOL; // salt: ....................// echo crypt('meow', '$2y$05$' . str_repeat('.', 20) . '//oink'), PHP_EOL; // salt: ....................// echo PHP_EOL, '###########################', PHP_EOL, PHP_EOL; echo $meow = crypt('meow', '$2y$05$' . str_repeat('.', 20) . '/meow'), PHP_EOL; // salt: ..................../m echo $woof = crypt('meow', '$2y$05$' . str_repeat('.', 20) . '/woof'), PHP_EOL; // salt: ..................../w echo $oink = crypt('meow', '$2y$05$' . str_repeat('.', 20) . '/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 crypt('meow', 'bla'), 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.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$2y$05$..................../.0/SFonSqiMg1jG/nWVk278LFl597ZlC $2y$05$..................../.0/SFonSqiMg1jG/nWVk278LFl597ZlC $2y$05$..................../.0/SFonSqiMg1jG/nWVk278LFl597ZlC ########################### $2y$05$..................../eZ/qB29TfhKdQOwZTIrLyzBTMYOwupD6 $2y$05$..................../u45Ujx7ViT/dCkbXPqwsVuv407AA/99a $2y$05$..................../eZ/qB29TfhKdQOwZTIrLyzBTMYOwupD6 ########################### $2y$05$..................../eZ/qB29TfhKdQOwZTIrLyzBTMYOwupD6 $2y$05$..................../u45Ujx7ViT/dCkbXPqwsVuv407AA/99a $2y$05$..................../eZ/qB29TfhKdQOwZTIrLyzBTMYOwupD6 blRYi8ay5HSJk ########################### bool(true) bool(true) bool(true)
Output for 5.3.2 - 5.3.6
$2xYy7jBbE1SQ $2xYy7jBbE1SQ $2xYy7jBbE1SQ ########################### $2xYy7jBbE1SQ $2xYy7jBbE1SQ $2xYy7jBbE1SQ ########################### $2xYy7jBbE1SQ $2xYy7jBbE1SQ $2xYy7jBbE1SQ blRYi8ay5HSJk ########################### bool(true) bool(true) bool(true)
Output for 5.3.0 - 5.3.1
$2f9BANAdBqpY $2f9BANAdBqpY $2f9BANAdBqpY ########################### $2f9BANAdBqpY $2f9BANAdBqpY $2f9BANAdBqpY ########################### $2f9BANAdBqpY $2f9BANAdBqpY $2f9BANAdBqpY blRYi8ay5HSJk ########################### bool(true) bool(true) bool(true)
Output for 4.3.0 - 5.2.17

Process exited with code 139.