3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test_check = array(array("county"=>"Jackson", "state_name"=>"TN"), array("county"=>"Argile", "state_name"=>"TN"), array("county"=>"Jackson", "state_name"=>"TN"), array("county"=>"Jackson", "state_name"=>"MS")); foreach($test_check as $details) { $test[]=$details['county'] . " " . $details['state_name']; } $testb = array_count_values($test); arsort($testb); print_r($testb);
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [Jackson TN] => 2 [Argile TN] => 1 [Jackson MS] => 1 )
Output for 4.3.0 - 5.6.28
Array ( [Jackson TN] => 2 [Jackson MS] => 1 [Argile TN] => 1 )