3v4l.org

run code in 500+ PHP versions simultaneously
<?php $email = "example@example.com"; $password = "abcabc"; $iterations = 100000; $master_key = hash_pbkdf2('sha256', $password, $email, $iterations, 0, true); $master_hash = hash_pbkdf2('sha256', $master_key, $password, 1, 0, true); echo "Master Key:\n"; echo(base64_encode($master_key)); echo "\nMaster Hash:\n"; echo(base64_encode($master_hash));
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7
Master Key: 0t31TeQuxU6/0KH00jqdt2/y6K1myXuJ7h46nYJCL7c= Master Hash: AHKpzth5wGoL18V6A6/nldJ42DQ9dm6XRgbAQ7+eT0s=

preferences:
91 ms | 1145 KiB | 4 Q