3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dates = array('2014-25-09', '2015-25-09', '2016-25-09'); foreach($dates as $id => $date) { $displayId = $id + 1; echo "<span class='countdown' id='countdown{$displayId}'>2014-25-09</span>\n"; }
based on riGd2
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<span class='countdown' id='countdown1'>2014-25-09</span> <span class='countdown' id='countdown2'>2014-25-09</span> <span class='countdown' id='countdown3'>2014-25-09</span>