3v4l.org

run code in 200+ 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 { echo "There are no flavor recommendations for you"; }?> </body> </html>
based on BgNhv
Output for 4.3.0 - 7.2.0
<html> <body> <h1>Flavor Recommendations</h1> There are no flavor recommendations for you</body> </html>