<?php $sum = 0;for($i = 0; $i < 1000; $i++) { if($i % 3 == 0 || $i % 5 == 0) { $sum += $i; }} echo $sum;
Standard input is empty
233168
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!