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.7 - 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 ########################### bool(false) bool(false) bool(false)
Output for 5.3.2 - 5.3.6
$2xYy7jBbE1SQ $2xYy7jBbE1SQ $2xYy7jBbE1SQ ########################### $2xYy7jBbE1SQ $2xYy7jBbE1SQ $2xYy7jBbE1SQ ########################### $2xYy7jBbE1SQ $2xYy7jBbE1SQ $2xYy7jBbE1SQ ########################### bool(false) bool(false) bool(false)
Output for 5.3.0 - 5.3.1
$2f9BANAdBqpY $2f9BANAdBqpY $2f9BANAdBqpY ########################### $2f9BANAdBqpY $2f9BANAdBqpY $2f9BANAdBqpY ########################### $2f9BANAdBqpY $2f9BANAdBqpY $2f9BANAdBqpY ########################### bool(false) bool(false) bool(false)
Output for 4.3.0 - 5.2.17

Process exited with code 139.