3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 0; for ($i = 0; $i < 10; $i++) { if (($i % 3) || ($i % 5)) { $count += $i; printf('Sum of $i: ' . $count); } }
Output for 4.3.0 - 7.1.0
Sum of $i: 1Sum of $i: 3Sum of $i: 6Sum of $i: 10Sum of $i: 15Sum of $i: 21Sum of $i: 28Sum of $i: 36Sum of $i: 45