3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ 0 => "Sat 2", 1 => "Sun 3", 2 => "Mon 4", 3 => "Tue 5", 4 => "Mon 4", 5 => "Mon 4", 6 => "Sun 3", ]; $condition = function($count){ return $count == 1; }; $result = array_keys(array_filter(array_count_values($arr),$condition)); var_dump($result);
Output for rfc.property-hooks, git.master, git.master_jit
array(2) { [0]=> string(5) "Sat 2" [1]=> string(5) "Tue 5" }

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:
47.28 ms | 1259 KiB | 4 Q