3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows['emp_id'] = 333; $concatenated_string = "hello"; $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 git.master, git.master_jit, rfc.property-hooks
1checked1checked0checked1checked0checked0checked

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