3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = []; $result[] = new StdClass; $result[] = new StdClass; $result[0]->dataid = 925977; $result[0]->camp_id = 2003001; $result[0]->cid = "xy"; $result[1]->dataid = 925977; $result[1]->camp_id = 2003001; $result[1]->cid = "xy"; $columns = array_keys((array)$result[0]); echo "<table border='1'><tr>"; foreach($columns as $column) echo "<th>$column</th>"; echo "</tr>"; if(isset($result)) { foreach ($result as $row) { echo "<tr>"; foreach($columns as $column) echo "<td>" . $row->$column . "</td>"; echo "</tr>"; } } echo "</table>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 35, Position 2 = 41
Branch analysis from position: 35
2 jumps found. (Code = 78) Position 1 = 36, Position 2 = 41
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 59
Branch analysis from position: 45
2 jumps found. (Code = 77) Position 1 = 46, Position 2 = 58
Branch analysis from position: 46
2 jumps found. (Code = 78) Position 1 = 47, Position 2 = 58
Branch analysis from position: 47
2 jumps found. (Code = 77) Position 1 = 49, Position 2 = 55
Branch analysis from position: 49
2 jumps found. (Code = 78) Position 1 = 50, Position 2 = 55
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
Branch analysis from position: 55
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 58
Branch analysis from position: 59
Branch analysis from position: 41
filename:       /in/alhrc
function name:  (null)
number of ops:  61
compiled vars:  !0 = $result, !1 = $columns, !2 = $column, !3 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        NEW                                              $6      'StdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  $6
    6     5        NEW                                              $9      'StdClass'
          6        DO_FCALL                                      0          
          7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  $9
    8     9        FETCH_DIM_W                                      $11     !0, 0
         10        ASSIGN_OBJ                                               $11, 'dataid'
         11        OP_DATA                                                  925977
    9    12        FETCH_DIM_W                                      $13     !0, 0
         13        ASSIGN_OBJ                                               $13, 'camp_id'
         14        OP_DATA                                                  2003001
   10    15        FETCH_DIM_W                                      $15     !0, 0
         16        ASSIGN_OBJ                                               $15, 'cid'
         17        OP_DATA                                                  'xy'
   12    18        FETCH_DIM_W                                      $17     !0, 1
         19        ASSIGN_OBJ                                               $17, 'dataid'
         20        OP_DATA                                                  925977
   13    21        FETCH_DIM_W                                      $19     !0, 1
         22        ASSIGN_OBJ                                               $19, 'camp_id'
         23        OP_DATA                                                  2003001
   14    24        FETCH_DIM_W                                      $21     !0, 1
         25        ASSIGN_OBJ                                               $21, 'cid'
         26        OP_DATA                                                  'xy'
   18    27        INIT_FCALL                                               'array_keys'
         28        FETCH_DIM_R                                      ~23     !0, 0
         29        CAST                                          7  ~24     ~23
         30        SEND_VAL                                                 ~24
         31        DO_ICALL                                         $25     
         32        ASSIGN                                                   !1, $25
   20    33        ECHO                                                     '%3Ctable+border%3D%271%27%3E%3Ctr%3E'
   21    34      > FE_RESET_R                                       $27     !1, ->41
         35    > > FE_FETCH_R                                               $27, !2, ->41
   22    36    >   ROPE_INIT                                     3  ~29     '%3Cth%3E'
         37        ROPE_ADD                                      1  ~29     ~29, !2
         38        ROPE_END                                      2  ~28     ~29, '%3C%2Fth%3E'
         39        ECHO                                                     ~28
   21    40      > JMP                                                      ->35
         41    >   FE_FREE                                                  $27
   23    42        ECHO                                                     '%3C%2Ftr%3E'
   26    43        ISSET_ISEMPTY_CV                                         !0
         44      > JMPZ                                                     ~31, ->59
   27    45    > > FE_RESET_R                                       $32     !0, ->58
         46    > > FE_FETCH_R                                               $32, !3, ->58
   28    47    >   ECHO                                                     '%3Ctr%3E'
   29    48      > FE_RESET_R                                       $33     !1, ->55
         49    > > FE_FETCH_R                                               $33, !2, ->55
   30    50    >   FETCH_OBJ_R                                      ~34     !3, !2
         51        CONCAT                                           ~35     '%3Ctd%3E', ~34
         52        CONCAT                                           ~36     ~35, '%3C%2Ftd%3E'
         53        ECHO                                                     ~36
   29    54      > JMP                                                      ->49
         55    >   FE_FREE                                                  $33
   31    56        ECHO                                                     '%3C%2Ftr%3E'
   27    57      > JMP                                                      ->46
         58    >   FE_FREE                                                  $32
   34    59    >   ECHO                                                     '%3C%2Ftable%3E'
         60      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164 ms | 1400 KiB | 15 Q