3v4l.org

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