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 { echo "There are no flavor recommendations for you"; }?> </body> </html>
based on BgNhv
Output for 4.3.0 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
<html> <body> <h1>Flavor Recommendations</h1> There are no flavor recommendations for you</body> </html>
Output for hhvm-3.10.0

Process exited with code 153.