3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array= array('mela'=> 'banana','mela' => 'cazzo','pera','arancia','mela','mela','arancia'); print_r(array_count_values($array));
based on cH2XQ
Output for 4.3.0 - 7.1.0
Array ( [cazzo] => 1 [pera] => 1 [arancia] => 2 [mela] => 2 )