3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $status = 1; $checked = $status == 0 ? '' : 'checked'; echo "<td><input class=\"box\" type=\"checkbox\" " . $checked ."></td>";
based on RDnND
Output for 4.3.0 - 7.1.0
<td><input class="box" type="checkbox" checked></td>