3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.0 - 5.4.28
Parse error: syntax error, unexpected 'row' (T_STRING) in /in/RukI1 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/RukI1 on line 2
Process exited with code 255.

preferences:
177.34 ms | 1386 KiB | 65 Q