3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
<ul> Warning: Undefined variable $appliances in /in/8MFru on line 3 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/8MFru:3 Stack trace: #0 {main} thrown in /in/8MFru on line 3
Process exited with code 255.

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