3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $loopCond === false; do { echo "<p>The loop ran even though the loop condition is false.</p>"; $loopCond = true; } while ($loopCond = false); echo "<p>Now the loop is done running.</p>"; ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: loopCond in /in/fRCrV on line 2 <p>The loop ran even though the loop condition is false.</p><p>Now the loop is done running.</p>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: loopCond in /in/fRCrV on line 2 <p>The loop ran even though the loop condition is false.</p><p>Now the loop is done running.</p>