3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = [ (object)['menu_id' => 1, 'menu_name' => 'one'], (object)['menu_id' => 2, 'menu_name' => 'two'], (object)['menu_id' => 3, 'menu_name' => 'three'], ]; ?> <form action=""> <table> <thead> <tr> <th>Menu Id</th> <th>Menu Name</th> <th>Yes/No</th> </tr> </thead> <tbody> <?php foreach($result as $res) { ?> <tr> <td><?= $res->menu_id ?></td> <td><?= $res->menu_name ?></td> <td><input type="checkbox" name="yes[]" value="<?= $res->menu_id ?>"></td> </tr> <?php } ?> </tbody> </table>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/ZU3UO
function name:  (null)
number of ops:  24
compiled vars:  !0 = $result, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~2      <array>
          1        INIT_ARRAY                                       ~3      ~2
    4     2        CAST                                          8  ~4      <array>
          3        ADD_ARRAY_ELEMENT                                ~3      ~4
    5     4        CAST                                          8  ~5      <array>
          5        ADD_ARRAY_ELEMENT                                ~3      ~5
    2     6        ASSIGN                                                   !0, ~3
    8     7        ECHO                                                     '%3Cform+action%3D%22%22%3E+%0A%3Ctable%3E%0A++%3Cthead%3E%0A++++%3Ctr%3E+%0A++++++%3Cth%3EMenu+Id%3C%2Fth%3E+%0A++++++%3Cth%3EMenu+Name%3C%2Fth%3E+%0A++++++%3Cth%3EYes%2FNo%3C%2Fth%3E+%0A++++%3C%2Ftr%3E+%0A++%3C%2Fthead%3E%0A++%3Ctbody%3E%0A'
   18     8      > FE_RESET_R                                       $7      !0, ->21
          9    > > FE_FETCH_R                                               $7, !1, ->21
   19    10    >   ECHO                                                     '++++%3Ctr%3E+%0A++++++%3Ctd%3E'
   20    11        FETCH_OBJ_R                                      ~8      !1, 'menu_id'
         12        ECHO                                                     ~8
         13        ECHO                                                     '%3C%2Ftd%3E+%0A++++++%3Ctd%3E'
   21    14        FETCH_OBJ_R                                      ~9      !1, 'menu_name'
         15        ECHO                                                     ~9
         16        ECHO                                                     '%3C%2Ftd%3E+%0A++++++%3Ctd%3E%3Cinput+type%3D%22checkbox%22+name%3D%22yes%5B%5D%22+value%3D%22'
   22    17        FETCH_OBJ_R                                      ~10     !1, 'menu_id'
         18        ECHO                                                     ~10
         19        ECHO                                                     '%22%3E%3C%2Ftd%3E+%0A++++%3C%2Ftr%3E+%0A'
   18    20      > JMP                                                      ->9
         21    >   FE_FREE                                                  $7
   25    22        ECHO                                                     '++%3C%2Ftbody%3E%0A%3C%2Ftable%3E'
   26    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.18 ms | 1399 KiB | 13 Q