3v4l.org

run code in 300+ PHP versions simultaneously
<?php $passwords = [ 'Password123LOLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabfjhys' => '3e!-uh5Cxkk!6btWU5?R', 'Password123LOLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaruobbk' => '1ed+&$U( n=^K.`R"x(L', 'Password123LOL!aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaapnbggv' => 'ZD7<t,=B&_l?#u:K$!f*', 'Password123LOL!aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabdiappm' => 'K6G_hA21;kKX$ 4?!z6.', ]; $i = 1000; foreach ($passwords as $long => $short) { $s = random_bytes(16); $h1 = hash_pbkdf2('sha1', $long, $s, $i); $h2 = hash_pbkdf2('sha1', $short, $s, $i); var_dump(hash_equals($h1, $h2)); }
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(true) bool(true) bool(true)

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:
91.61 ms | 405 KiB | 5 Q