3v4l.org

run code in 300+ PHP versions simultaneously
<?php $checks = []; foreach($onboarding_data as $checked) { $id = $checked->getDocument_Id()->getId(); if ($checked->getStatus() == '1') { $checks[$id] = 'checked'; continue; } $checks[$id] = ''; } foreach($document_collection as $onboarding): ?> <tr> <td> <?= $onboarding->getDocument(); ?> </td> <td align="center"> <?= anchor($onboarding->getUrl(), "Download"); ?> </td> <td class=""> <label class="option block mn"> <input type="checkbox" name="status" value="1" <?= $checks[$onboarding->getId()] ?? '' ?>> <span class="checkbox mn"></span> </label> </td> </tr> </tbody> <?php endforeach;?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $onboarding_data in /in/iLE4E on line 4 Warning: foreach() argument must be of type array|object, null given in /in/iLE4E on line 4 Warning: Undefined variable $document_collection in /in/iLE4E on line 14 Warning: foreach() argument must be of type array|object, null given in /in/iLE4E on line 14

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:
111.99 ms | 406 KiB | 5 Q