3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "ejIjSS3Fh5GSYG3hALUII53AeIR55ej3LeeAeSjReS5jRjeeG3GL5hLShhFS5h5GUAheRISFSO5IOIIAGFGGAS3eh5h5FjLe33Ueje3h35jIjjhj5L5j53A3"; $data=(count_chars($data, 1)); asort($data); foreach ($data as $i => $val) { echo "There were $val instance(s) of \"" , chr($i) , "\" in the string.\n"; } ?>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.

preferences:
277.89 ms | 407 KiB | 371 Q