3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cha1 = array(0,1,2,3,4,5); $cha2 = array(4,6,2,8,3,1); $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; } } } ?>
based on hEZ9E
Output for 5.0.4 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: cha1_count in /in/Y6Bub on line 6
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: cha1_count in /in/Y6Bub on line 6