3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row2['checkbox_column1'] = 1; $checked = $row2['checkbox_column1'] == 1 ? "checked='checked'" : ''; echo "<td><input type=checkbox $checked></td>"; echo "</tr>"; $row2['checkbox_column1'] = 0; $checked = $row2['checkbox_column1'] == 1 ? "checked='checked'" : ''; echo "<td><input type=checkbox $checked></td>"; echo "</tr>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
Branch analysis from position: 21
filename:       /in/HOojQ
function name:  (null)
number of ops:  29
compiled vars:  !0 = $row2, !1 = $checked
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'checkbox_column1'
          1        OP_DATA                                                  1
    3     2        FETCH_DIM_R                                      ~3      !0, 'checkbox_column1'
          3        IS_EQUAL                                                 ~3, 1
          4      > JMPZ                                                     ~4, ->7
          5    >   QM_ASSIGN                                        ~5      'checked%3D%27checked%27'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~5      ''
          8    >   ASSIGN                                                   !1, ~5
    4     9        ROPE_INIT                                     3  ~8      '%3Ctd%3E%3Cinput+type%3Dcheckbox+'
         10        ROPE_ADD                                      1  ~8      ~8, !1
         11        ROPE_END                                      2  ~7      ~8, '%3E%3C%2Ftd%3E'
         12        ECHO                                                     ~7
    5    13        ECHO                                                     '%3C%2Ftr%3E'
    6    14        ASSIGN_DIM                                               !0, 'checkbox_column1'
         15        OP_DATA                                                  0
    7    16        FETCH_DIM_R                                      ~11     !0, 'checkbox_column1'
         17        IS_EQUAL                                                 ~11, 1
         18      > JMPZ                                                     ~12, ->21
         19    >   QM_ASSIGN                                        ~13     'checked%3D%27checked%27'
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~13     ''
         22    >   ASSIGN                                                   !1, ~13
    8    23        ROPE_INIT                                     3  ~16     '%3Ctd%3E%3Cinput+type%3Dcheckbox+'
         24        ROPE_ADD                                      1  ~16     ~16, !1
         25        ROPE_END                                      2  ~15     ~16, '%3E%3C%2Ftd%3E'
         26        ECHO                                                     ~15
    9    27        ECHO                                                     '%3C%2Ftr%3E'
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.58 ms | 1399 KiB | 13 Q