3v4l.org

run code in 300+ PHP versions simultaneously
<?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 "<p>Here is the <em>hash</em> of your flag: <mark>" . sha1($flag, false) . "</mark></p>"; } echo "</div>"; ?>
Output for 7.2.6 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
Warning: Use of undefined constant fa1se - assumed 'fa1se' (this will throw an Error in a future version of PHP) in /in/Sf1W0 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/Sf1W0 on line 7 <p>Here is the <em>hash</em> of your flag: <mark>4513f0823b11cbc18f843714e3ec591788da31e9</mark></p></div>
Output for 7.0.0 - 7.0.24, 7.1.0 - 7.1.33
Notice: Use of undefined constant fa1se - assumed 'fa1se' in /in/Sf1W0 on line 5 <div class='row'> Notice: Use of undefined constant fa1se - assumed 'fa1se' in /in/Sf1W0 on line 7 <p>Here is the <em>hash</em> of your flag: <mark>4513f0823b11cbc18f843714e3ec591788da31e9</mark></p></div>

preferences:
73.2 ms | 402 KiB | 74 Q