3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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.