3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 0 => "Sat 2", 1 => "Sun 3", 2 => "Mon 4", 3 => "Tue 5", 4 => "Mon 4" ]; $valuesCounterArr = array_count_values($array); print_r($valuesCounterArr); $finalArr = []; foreach($valuesCounterArr as $key=>$val){ if($val == 1){ $finalArr[] = $key; } } print_r($finalArr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [Sat 2] => 1 [Sun 3] => 1 [Mon 4] => 2 [Tue 5] => 1 ) Array ( [0] => Sat 2 [1] => Sun 3 [2] => 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:
89.63 ms | 405 KiB | 5 Q