3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if($id == "option1") { echo '<div class="row container"><div class="inner"> </div></div>'; } else if($id == "option2") { echo '<div class="yes please"><div class="beyonce"></div></div>'; } ?> <div id="#option1"> </div> <div id="#option2"> </div> <div id="#option3"> </div>
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: id in /in/caGWg on line 2 Notice: Undefined variable: id in /in/caGWg on line 3 <div id="#option1"> </div> <div id="#option2"> </div> <div id="#option3"> </div>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: id in /in/caGWg on line 2 Notice: Undefined variable: id in /in/caGWg on line 3 <div id="#option1"> </div> <div id="#option2"> </div> <div id="#option3"> </div>