3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ' { "cols": [ { "label": "GUN", "type": "date" }, { "label": "BANKA", "type": "string" }, { "label": "BANKA_HESABI", "type": "string" }, { "label": "ISLEM_TIPI", "type": "string" }, { "label": "ACIKLAMA", "type": "string" }, { "label": "GIRIS", "type": "number" }, { "label": "CIKIS", "type": "number" }, { "label": "ISLEM", "type": "string" }, { "label": "SIRKET", "type": "string" }, { "label": "DOVIZ", "type": "string" }, { "label": "DOVIZTUT", "type": "number" } ], "rows": [ { "c": [ { "v": "Date(2020, 00, 01)" }, { "v": "ŞEKERBANK" }, { "v": "ŞEKERBANK TL HESABI" }, { "v": "" }, { "v": "Açılış Kaydı" }, { "v": 409.54 }, { "v": 0 }, { "v": "GIRIS" }, { "v": "XSIRKET" }, { "v": "TL" }, { "v": 0 } ] }, { "c": [ { "v": "Date(2020, 00, 01)" }, { "v": "ŞEKERBANK" }, { "v": "ŞEKERBANK TL HESABI" }, { "v": "" }, { "v": "Açılış Kaydı" }, { "v": 409.54 }, { "v": 0 }, { "v": "CIKIS" }, { "v": "XSIRKET" }, { "v": "TL" }, { "v": 0 } ] } ] } '; $data = json_decode($data); $table = '<table border="1">' . PHP_EOL . ' <tr>' . PHP_EOL; foreach ($data->cols as $title) { $table .= ' <td>' . $title->label . '</td>' . PHP_EOL; } $table .= ' </tr>' . PHP_EOL; for ($i=0; $i < count($data->rows); $i++) { $table .= ' <tr>' . PHP_EOL; foreach ($data->rows[$i]->c as $row) $table .= ' <td>' . $row->v . '</td>' . PHP_EOL; $table .= ' </tr>' . PHP_EOL; } $table .= '</table>'; echo $table;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 19
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 24, Position 2 = 31
Branch analysis from position: 24
2 jumps found. (Code = 78) Position 1 = 25, Position 2 = 31
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 19
Branch analysis from position: 38
Branch analysis from position: 19
Branch analysis from position: 31
Branch analysis from position: 15
filename:       /in/8LkNV
function name:  (null)
number of ops:  41
compiled vars:  !0 = $data, !1 = $table, !2 = $title, !3 = $i, !4 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%0A%7B%0A++%22cols%22%3A+%5B%0A++++%7B%0A++++++%22label%22%3A+%22GUN%22%2C%0A++++++%22type%22%3A+%22date%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22BANKA%22%2C%0A++++++%22type%22%3A+%22string%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22BANKA_HESABI%22%2C%0A++++++%22type%22%3A+%22string%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22ISLEM_TIPI%22%2C%0A++++++%22type%22%3A+%22string%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22ACIKLAMA%22%2C%0A++++++%22type%22%3A+%22string%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22GIRIS%22%2C%0A++++++%22type%22%3A+%22number%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22CIKIS%22%2C%0A++++++%22type%22%3A+%22number%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22ISLEM%22%2C%0A++++++%22type%22%3A+%22string%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22SIRKET%22%2C%0A++++++%22type%22%3A+%22string%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22DOVIZ%22%2C%0A++++++%22type%22%3A+%22string%22%0A++++%7D%2C%0A++++%7B%0A++++++%22label%22%3A+%22DOVIZTUT%22%2C%0A++++++%22type%22%3A+%22number%22%0A++++%7D%0A++%5D%2C%0A++%22rows%22%3A+%5B%0A++++%7B%0A++++++%22c%22%3A+%5B%0A++++++++%7B%0A++++++++++%22v%22%3A+%22Date%282020%2C+00%2C+01%29%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22%C5%9EEKERBANK%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22%C5%9EEKERBANK+TL+HESABI%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22A%C3%A7%C4%B1l%C4%B1%C5%9F+Kayd%C4%B1%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+409.54%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+0%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22GIRIS%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22XSIRKET%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22TL%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+0%0A++++++++%7D%0A++++++%5D%0A++++%7D%2C%0A++++%7B%0A++++++%22c%22%3A+%5B%0A++++++++%7B%0A++++++++++%22v%22%3A+%22Date%282020%2C+00%2C+01%29%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22%C5%9EEKERBANK%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22%C5%9EEKERBANK+TL+HESABI%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22A%C3%A7%C4%B1l%C4%B1%C5%9F+Kayd%C4%B1%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+409.54%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+0%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22CIKIS%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22XSIRKET%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+%22TL%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22v%22%3A+0%0A++++++++%7D%0A++++++%5D%0A++++%7D%0A++%5D%0A%7D%0A'
  128     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !0, $6
  130     5        ASSIGN                                                   !1, '%3Ctable+border%3D%221%22%3E%0A++++%3Ctr%3E%0A'
  132     6        FETCH_OBJ_R                                      ~9      !0, 'cols'
          7      > FE_RESET_R                                       $10     ~9, ->15
          8    > > FE_FETCH_R                                               $10, !2, ->15
  133     9    >   FETCH_OBJ_R                                      ~11     !2, 'label'
         10        CONCAT                                           ~12     '++++++%3Ctd%3E', ~11
         11        CONCAT                                           ~13     ~12, '%3C%2Ftd%3E'
         12        CONCAT                                           ~14     ~13, '%0A'
         13        ASSIGN_OP                                     8          !1, ~14
  132    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $10
  135    16        ASSIGN_OP                                     8          !1, '++++%3C%2Ftr%3E%0A'
  136    17        ASSIGN                                                   !3, 0
         18      > JMP                                                      ->34
  137    19    >   ASSIGN_OP                                     8          !1, '++++%3Ctr%3E%0A'
  138    20        FETCH_OBJ_R                                      ~19     !0, 'rows'
         21        FETCH_DIM_R                                      ~20     ~19, !3
         22        FETCH_OBJ_R                                      ~21     ~20, 'c'
         23      > FE_RESET_R                                       $22     ~21, ->31
         24    > > FE_FETCH_R                                               $22, !4, ->31
  139    25    >   FETCH_OBJ_R                                      ~23     !4, 'v'
         26        CONCAT                                           ~24     '++++++%3Ctd%3E', ~23
         27        CONCAT                                           ~25     ~24, '%3C%2Ftd%3E'
         28        CONCAT                                           ~26     ~25, '%0A'
         29        ASSIGN_OP                                     8          !1, ~26
  138    30      > JMP                                                      ->24
         31    >   FE_FREE                                                  $22
  140    32        ASSIGN_OP                                     8          !1, '++++%3C%2Ftr%3E%0A'
  136    33        PRE_INC                                                  !3
         34    >   FETCH_OBJ_R                                      ~30     !0, 'rows'
         35        COUNT                                            ~31     ~30
         36        IS_SMALLER                                               !3, ~31
         37      > JMPNZ                                                    ~32, ->19
  142    38    >   ASSIGN_OP                                     8          !1, '%3C%2Ftable%3E'
  143    39        ECHO                                                     !1
  144    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.31 ms | 1405 KiB | 15 Q