3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo '<ul>'; for ($i = 0; $i < count($appliances); $i++) { $codes = array($pi_row['apps']); $codesSelected = array($pi_row['appsSelected']); //if (in_array($appliances[$i], $codesSelected)) { if (array_intersect($ap, $aps)) { echo '<li><input type="checkbox" checked="checked" value="' . $appliances[$i] . '" name="applianceCheckbox[]">' . $appliances[$i] . '</input></li><br/>'; } else{ echo '<li><input type="checkbox" value="' . $appliances[$i] . '" name="applianceCheckbox[]">' . $appliances[$i] . '</input></li><br/>'; } } echo '</ul>'; ?>
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<ul> Notice: Undefined variable: appliances in /in/8MFru on line 3 </ul>
Output for 4.3.0 - 5.0.3
<ul> Notice: Undefined variable: appliances in /in/8MFru on line 3 </ul>