3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2y string: $test\n"; $pass = ($test == $hash); echo "$2y test status: " . ( $pass ? "Pass" : "Fail") . "\n"; $hash = '$2a$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2a string: $test\n"; $pass = ($test == $hash); echo "$2a test status: " . ( $pass ? "Pass" : "Fail") . "\n"; $hash = '$2x$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2x string: $test\n"; $pass = ($test == $hash); echo "$2x test status: " . ( $pass ? "Pass" : "Fail") . "\n";

preferences:
42.01 ms | 402 KiB | 5 Q