@ 2017-02-11T20:27:56Z <?php
$a = 2;
if ($a == 2): ?>
<p>Content</p>
<? elseif ($a == 3): ?>
<p>Other Content</p>
<? else: ?>
<p>Default Content</p>
<? endif; ?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 , 8.1.0 - 8.1.33 , 8.2.0 - 8.2.29 , 8.3.0 - 8.3.25 , 8.4.1 - 8.4.12 Parse error: syntax error, unexpected end of file, expecting "elseif" or "else" or "endif" in /in/EtDqA on line 10
Process exited with code 255 . Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.7 , 7.3.32 - 7.3.33 , 7.4.33 , 8.0.13 <p>Content</p>
Output for 7.2.29 - 7.2.33 , 7.3.16 - 7.3.31 , 7.4.0 - 7.4.32 Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) in /in/EtDqA on line 10
Process exited with code 255 . preferences:dark mode live preview ace vim emacs key bindings
43.27 ms | 409 KiB | 5 Q