3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Fill in unhashed & hashed seeds below and click blue 'eval();' button below textarea. * * ------------------ */ $hashedSeed = '8c9c01622b04a17d23be239e1ba1bce70b5f5679bb250c3b549be23a8df82213'; $unhashedSeed = '0509242816'; $hash = hash('sha256', $unhashedSeed); echo "Generated hash: $hash\n"; echo 'Does hash match? ' . ($hashedSeed == $hash ? 'Yes' : 'No') . "\n";
Output for 8.2.0 - 8.2.28, 8.3.0 - 8.3.22, 8.4.1 - 8.4.8
Generated hash: 9c0962f7951c00bde10a2eea312bbd1e804471c884e7f7934e1ef88eb0f5feda Does hash match? No

preferences:
47.28 ms | 406 KiB | 5 Q