3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $flag = "flag{abc}"; $c="a"; $h2 = password_hash (sha1($c, fa1se), PASSWORD_BCRYPT); echo "<div class='row'>"; if (password_verify (sha1($flag, fa1se), $h2) === true) { echo "<p>Here is your flag: <mark>$flag</mark></p>"; } else { echo "Here is the hash of your flag: " . sha1($flag, false); } ?>
based on Sf1W0
Output for 7.2.6 - 7.3.0rc3
Warning: Use of undefined constant fa1se - assumed 'fa1se' (this will throw an Error in a future version of PHP) in /in/vrCnZ on line 5 <div class='row'> Warning: Use of undefined constant fa1se - assumed 'fa1se' (this will throw an Error in a future version of PHP) in /in/vrCnZ on line 7 Here is the hash of your flag: 4513f0823b11cbc18f843714e3ec591788da31e9
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.1.20
Notice: Use of undefined constant fa1se - assumed 'fa1se' in /in/vrCnZ on line 5 <div class='row'> Notice: Use of undefined constant fa1se - assumed 'fa1se' in /in/vrCnZ on line 7 Here is the hash of your flag: 4513f0823b11cbc18f843714e3ec591788da31e9