3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Set the password $password = 'mypassword'; // Get the hash, letting the salt be automatically generated $hash = crypt($password); echo($hash);

preferences:
90.96 ms | 402 KiB | 5 Q