3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 1; $i < 10; $i++) { ?> <li class="product-image"> <a href="#<?php echo $i; ?>" class="image"> <img src="#<?php echo $i; ?>" alt="haha" /> </a> </li> <?php }
Output for 4.3.0 - 7.1.0
<li class="product-image"> <a href="#1" class="image"> <img src="#1" alt="haha" /> </a> </li> <li class="product-image"> <a href="#2" class="image"> <img src="#2" alt="haha" /> </a> </li> <li class="product-image"> <a href="#3" class="image"> <img src="#3" alt="haha" /> </a> </li> <li class="product-image"> <a href="#4" class="image"> <img src="#4" alt="haha" /> </a> </li> <li class="product-image"> <a href="#5" class="image"> <img src="#5" alt="haha" /> </a> </li> <li class="product-image"> <a href="#6" class="image"> <img src="#6" alt="haha" /> </a> </li> <li class="product-image"> <a href="#7" class="image"> <img src="#7" alt="haha" /> </a> </li> <li class="product-image"> <a href="#8" class="image"> <img src="#8" alt="haha" /> </a> </li> <li class="product-image"> <a href="#9" class="image"> <img src="#9" alt="haha" /> </a> </li>