3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $n = 0; for($i=0;$i<=100;$i+=2) { $n+=$i; } echo $n; $i = 0; $num = 0; while($i <= 50) { $num += $i * 2; $i ++; } echo $num;
based on kGUbf
Output for 4.3.0 - 7.2.0
25502550