3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cha12 = array(); $cha1_count = 3; $cha2_count = 3; $cha12[0][0] = 3; $cha12[0][1] = 6; $cha12[0][2] = 2; $cha12[1][0] = 4; $cha12[1][1] = 5; $cha12[1][2] = 3; $cha12[2][0] = 2; $cha12[2][1] = 2; $cha12[2][2] = 8; $fcount = 0; $fcount_array = array(); $fc = 0; for($count1=0;$count1<$cha1_count;$count1++){ for($count2=0;$count2<$cha2_count;$count2++){ $fc = ($cha2_count * $count1) + $count2; $fcount_array[$fc] = $cha12[$count1][$count2]; } } asort($fcount_array); print_r($fcount_array); $acv = array_count_values($fcount_array); echo $acv[0]; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [2] => 2 [6] => 2 [7] => 2 [0] => 3 [5] => 3 [3] => 4 [4] => 5 [1] => 6 [8] => 8 ) Warning: Undefined array key 0 in /in/nZZ7D on line 26

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:
48.96 ms | 401 KiB | 8 Q