3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = ''; $t = array(1,2,3); //for ($i =0; $i<count($t); $i++) { foreach($t as $v) { $s .= '<li>'.$v.'<li>'; } echo '<ul>'.$s.'</ul>'; ?>
Output for 4.3.0 - 7.1.0
<ul><li>1<li><li>2<li><li>3<li></ul>