3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $recommendations = array(); ?><html> <body> <h1>Flavor Recommendations</h1> <?php if(!empty($recommendations)) { ?> <ul> <?php foreach($recommendations as $flavor) { ?> <li><?php echo $flavor; ?></li> <?php } ?> </ul> <?php } else { ?> <p><?php echo "There are no flavor recommendations for you"; }?></p> </body> </html>
based on Ud3er
Output for 4.3.0 - 7.1.0
<html> <body> <h1>Flavor Recommendations</h1> <p>There are no flavor recommendations for you</p> </body> </html>