3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $overView = array('a','b','v'); for($i=0; $i<count($overView); $i++){ //I want to iterate through the Overview file/array, print the contents apropriately if ($i % 2 == 0){?> <dt><span class = "bold"> <?php print ($overView[$i]); ?></span></dt> <?php } else { ?> <dd><?php print ($overView[$i]); ?> </dd> <?php }} ?>
Output for 4.3.0 - 7.1.0
<dt><span class = "bold"> a</span></dt> <dd>b </dd> <dt><span class = "bold"> v</span></dt>