3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
int(1) int(1)
Output for hhvm-3.10.0

Process exited with code 153.