3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $checked1 = $row['rmc_induction_softskill']; $checked2= $row['rmc_induction_neo']; $checked3 = $row['rmc_induction_itil']; $checked4 = $row['rmc_induction_hr_induction']; $checked5 = $row['rmc_induction_vmware']; $checked6 = $row['rmc_induction_lss']; for ($i=1; $i<=33; $i++) { $checked = $checked{$i}; echo $checked; /* echo '<td align="center" bgcolor="#E6E6FA"> <input type="checkbox" id="'<?php echo $i.$rows['emp_id']; ?>" name="Emails[]" value="<?php echo $i.";".$concatenated_string; ?>" <?php if ($checked == 1) echo "checked" ; ?> onclick="check(<?php echo $i.$rows['emp_id']; ?>);" /> </td> */ }
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: row in /in/HKr6u on line 4 Notice: Undefined variable: row in /in/HKr6u on line 5 Notice: Undefined variable: row in /in/HKr6u on line 6 Notice: Undefined variable: row in /in/HKr6u on line 7 Notice: Undefined variable: row in /in/HKr6u on line 8 Notice: Undefined variable: row in /in/HKr6u on line 9 Notice: Undefined variable: checked in /in/HKr6u on line 16
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: row in /in/HKr6u on line 4 Notice: Undefined variable: row in /in/HKr6u on line 5 Notice: Undefined variable: row in /in/HKr6u on line 6 Notice: Undefined variable: row in /in/HKr6u on line 7 Notice: Undefined variable: row in /in/HKr6u on line 8 Notice: Undefined variable: row in /in/HKr6u on line 9 Notice: Undefined variable: checked in /in/HKr6u on line 16