3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $multiplesOf3 = array(); $multiplesOf5 = array(); for($i = 1; $i <= 1000; $i++) { if($i % 3 == 0) $multiplesOf3[] = $i; if($i % 5 == 0) $multiplesOf5[] = $i; } $multiples = array_merge($multiplesOf3,$multiplesOf5); $multiples = array_sum($multiples); echo $multiples;
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
267333
Output for hhvm-3.10.0

Process exited with code 153.