3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=array('a'=>'3','c'=>'7','b'=>'2'); $sort=asort($a); $sum=0; foreach($a as $k => $v){ // echo $v; $sum = $sum+$v; } echo $sum; ?>
based on F6KsN
Output for 4.3.0 - 7.2.0
12