3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(0^1,1^0); /* $pw = 'test123'; $pwInDb = sha1(sha1($pw)); $scramble = mt_rand(); //token $stage1_hash = sha1($pw); $token = sha1($scramble . sha1($stage1_hash)) ^ $stage1_hash; $stage1_hash = $token ^ sha1($scramble . $pwInDb); echo '<pre>'; echo sha1($stage1_hash); echo "\n"; echo $pwInDb; */
Output for 4.3.0 - 7.1.10
int(1) int(1)