3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<ul class="content"> <?php for($i=1;$i<some_num;$i++) {?> <li class="box it" data-id="id-<?php echo $i; ?>" data-type="it"> <h1>No# <?php echo $i; ?></h1> </li> <?php } ?> </ul>
Output for 7.2.0 - 7.2.6
<ul class="content"> Warning: Use of undefined constant some_num - assumed 'some_num' (this will throw an Error in a future version of PHP) in /in/IK8VA on line 2 </ul>
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.20
<ul class="content"> Notice: Use of undefined constant some_num - assumed 'some_num' in /in/IK8VA on line 2 </ul>