3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if($id == "option1") { '<div class="row container"><div class="inner"> </div></div>' } else if($id == "option2") { '<div class="yes please"><div class="beyonce"></div></div>' } else if($id == "option3") { // do this } else{ // do this } ?> <div id="#option1"> </div> <div id="#option2"> </div> <div id="#option3"> </div>
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '}' in /in/BGfEo on line 2
Process exited with code 255.