3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //associative array with named key $array=array('car' =>'1','bus' =>'5','truck' => '3' ); //sort by key $sortAscVal= asort($array); foreach($array as $key => $val){ echo 'value'.$val; } ?>
based on sCfkR
Output for 4.3.0 - 7.2.0
value1value3value5