3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "A very nice únÌcÕdë text. Something nice to think Something about if you're into Unicode."; $words = str_word_count($text, 1); // use this function if you only want ASCII $frequency = array_count_values($words); arsort($frequency); $myJSON = json_encode($frequency); print_r($myJSON);
Output for git.master, git.master_jit, rfc.property-hooks
{"nice":2,"Something":2,"A":1,"very":1,"n":1,"c":1,"d":1,"text":1,"to":1,"think":1,"about":1,"if":1,"you're":1,"into":1,"Unicode":1}

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.1 ms | 401 KiB | 8 Q