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>'; } else if($id == "option3") { // do this } else{ // do this } ?> <div id="#option1"> </div> <div id="#option2"> </div> <div id="#option3"> </div>
Output for 5.4.0 - 5.5.12
Parse error: syntax error, unexpected 'else' (T_ELSE) in /in/rOVfJ on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ELSE in /in/rOVfJ on line 5
Process exited with code 255.