3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array(3,5,7,9); $sum = 0; foreach ($x as $val) { $sum += $val; } echo $sum;
Output for 4.3.0 - 7.1.0
24