3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ($expression == true): ?> This will show if the expression is true. <?php else: ?> Otherwise this will show. <?php endif; ?>
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: expression in /in/QADph on line 1 Otherwise this will show.
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: expression in /in/QADph on line 1 Otherwise this will show.