3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = "ejIjSS3Fh5GSYG3hALUII53AeIR55ej3LeeAeSjReS5jRjeeG3GL5hLShhFS5h5GUAheRISFSO5IOIIAGFGGAS3eh5h5FjLe33Ueje3h35jIjjhj5L5j53A3"; $a=(count_chars($data, 1)); asort($a); print_r($a); foreach ($a as $i => $val) { echo "There were $val instance(s) of \"" , chr($i) , "\" in the string.\n"; } ?>
Output for 4.3.0 - 7.1.0
Array ( [89] => 1 [79] => 2 [85] => 3 [82] => 4 [70] => 5 [76] => 6 [65] => 7 [71] => 8 [73] => 9 [83] => 10 [104] => 11 [51] => 12 [106] => 13 [101] => 14 [53] => 15 ) There were 1 instance(s) of "Y" in the string. There were 2 instance(s) of "O" in the string. There were 3 instance(s) of "U" in the string. There were 4 instance(s) of "R" in the string. There were 5 instance(s) of "F" in the string. There were 6 instance(s) of "L" in the string. There were 7 instance(s) of "A" in the string. There were 8 instance(s) of "G" in the string. There were 9 instance(s) of "I" in the string. There were 10 instance(s) of "S" in the string. There were 11 instance(s) of "h" in the string. There were 12 instance(s) of "3" in the string. There were 13 instance(s) of "j" in the string. There were 14 instance(s) of "e" in the string. There were 15 instance(s) of "5" in the string.