3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = array(1,2,3); for ($i =0; $i<count($t); $i++) { $s .= '<li>'.$t[$i].'<li>'; } echo '<ul>'.$s.'</ul>'; ?>
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: s in /in/ubD7K on line 4 <ul><li>1<li><li>2<li><li>3<li></ul>
Output for hhvm-3.10.0 - 3.12.0
<ul><li>1<li><li>2<li><li>3<li></ul>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: s in /in/ubD7K on line 4 <ul><li>1<li><li>2<li><li>3<li></ul>