3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ['s', 'h', 'c', 'b', 'a', 'b', 'd', 'e', 'f', 'f', 'g']; arsort($array); $array = array_count_values($array); arsort($array, SORT_NUMERIC); var_export($array);
Output for rfc.property-hooks, git.master_jit, git.master
array ( 'f' => 2, 'b' => 2, 's' => 1, 'h' => 1, 'g' => 1, 'e' => 1, 'd' => 1, 'c' => 1, 'a' => 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:
42.81 ms | 1145 KiB | 4 Q