3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $loopCond = true; while ($loopCond == true) { //it's the line above that is the problem I think echo "<p>The loop is running.</p>"; $loopCond = false; echo "<p>And now it's done.</p>"; }
Output for 4.3.0 - 7.1.0
<p>The loop is running.</p><p>And now it's done.</p>