3v4l.org

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