3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cha1 = array(0,1,2,3,4,5); $cha2 = array(4,6,2,8,3,1); $cha1_count = count($cha1); $cha2_count = count($cha2); $cha12_count = 0; $Ck_cha2 = $cha2; for($count1 = 0; $count1 < $cha1_count; $count1++){ for($count2 = 0; $count2 < $cha2_count; $count2++){ if($cha1[$count1] == $Ck_cha2[$count2]){ $Ck_cha2[$count2] = 'Ckeck'; $cha12_count++; break; } } } echo $Ck_cha2; echo $cha12_count; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/E4oeJ on line 17 Array4

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