3v4l.org

run code in 200+ php & hhvm versions
<?php $arr = array_count_values(array('JPG', 'JPG', 'TXT', 'TXT')); arsort($arr); var_dump($arr);
based on B0GIo