3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "ążźćńłśąęó"; foreach (count_chars($data, 1) as $i => $val) { echo "There were $val instance(s) of \"" , chr($i) , "\" in the string.\n"; }

preferences:
51.25 ms | 402 KiB | 5 Q