version-test.php 227 B

12345678
  1. <?php
  2. $hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG';
  3. $test = crypt("password", $hash);
  4. $pass = $test == $hash;
  5. echo "Test for functionality of compat library: " . ($pass ? "Pass" : "Fail");
  6. echo "\n";