3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = bin2hex(random_bytes(128)); $hashed = hash('sha256', $password, true); // Raw binary $salt = random_bytes(32); // Pwhash: $pwhash = hash_pbkdf2('sha256', $password, $salt, 1000, 64); // Now the attack $attack = hash_pbkdf2('sha256', $hashed, $salt, 1000, 64); var_dump([ 'password-hash' => $pwhash, 'attack-output' => $attack ]);
Output for git.master
array(2) { ["password-hash"]=> string(64) "f9792e8dadb975f90cd0f8183ae23afd3b90848478c86f453b86a64fa957e8d8" ["attack-output"]=> string(64) "f9792e8dadb975f90cd0f8183ae23afd3b90848478c86f453b86a64fa957e8d8" }
Output for git.master_jit
array(2) { ["password-hash"]=> string(64) "b5974d1a40b87f42b415a381cea1d68a91476319d5fac99ecc7758bfcc7da2d2" ["attack-output"]=> string(64) "b5974d1a40b87f42b415a381cea1d68a91476319d5fac99ecc7758bfcc7da2d2" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
76.24 ms | 401 KiB | 7 Q