3v4l.org

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