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 cH2XQ
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [mela] => 4 [pera] => 1 [arancia] => 2 )