3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $values = array( 'foo' => 10, 'bar' => 20, 'baz' => 670 ); $num=0; $total= 700; foreach($values as $key=>$value) { $num+= $value; } if ($num >= $total) { echo "Riding end"; }else{ echo $total-$num; }
based on ttea2
Output for 4.3.0 - 7.2.0
Riding end