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 (array_column($data->cols, 'label') as $title) { $table .= ' <td>' . $title . '</td>' . PHP_EOL; } $table .= ' </tr>' . PHP_EOL; for ($i=0; $i < count($data->rows); $i++) { $table .= ' <tr>' . PHP_EOL; foreach (array_column($data->rows[$i]->c, 'v') as $row) $table .= ' <td>' . $row . '</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 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 44, Position 2 = 22
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 31, Position 2 = 37
Branch analysis from position: 31
2 jumps found. (Code = 78) Position 1 = 32, Position 2 = 37
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 44, Position 2 = 22
Branch analysis from position: 44
Branch analysis from position: 22
Branch analysis from position: 37
Branch analysis from position: 18
filename:       /in/S3PYJ
function name:  (null)
number of ops:  47
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        INIT_FCALL                                               'array_column'
          7        FETCH_OBJ_R                                      ~9      !0, 'cols'
          8        SEND_VAL                                                 ~9
          9        SEND_VAL                                                 'label'
         10        DO_ICALL                                         $10     
         11      > FE_RESET_R                                       $11     $10, ->18
         12    > > FE_FETCH_R                                               $11, !2, ->18
  133    13    >   CONCAT                                           ~12     '++++++%3Ctd%3E', !2
         14        CONCAT                                           ~13     ~12, '%3C%2Ftd%3E'
         15        CONCAT                                           ~14     ~13, '%0A'
         16        ASSIGN_OP                                     8          !1, ~14
  132    17      > JMP                                                      ->12
         18    >   FE_FREE                                                  $11
  135    19        ASSIGN_OP                                     8          !1, '++++%3C%2Ftr%3E%0A'
  136    20        ASSIGN                                                   !3, 0
         21      > JMP                                                      ->40
  137    22    >   ASSIGN_OP                                     8          !1, '++++%3Ctr%3E%0A'
  138    23        INIT_FCALL                                               'array_column'
         24        FETCH_OBJ_R                                      ~19     !0, 'rows'
         25        FETCH_DIM_R                                      ~20     ~19, !3
         26        FETCH_OBJ_R                                      ~21     ~20, 'c'
         27        SEND_VAL                                                 ~21
         28        SEND_VAL                                                 'v'
         29        DO_ICALL                                         $22     
         30      > FE_RESET_R                                       $23     $22, ->37
         31    > > FE_FETCH_R                                               $23, !4, ->37
  139    32    >   CONCAT                                           ~24     '++++++%3Ctd%3E', !4
         33        CONCAT                                           ~25     ~24, '%3C%2Ftd%3E'
         34        CONCAT                                           ~26     ~25, '%0A'
         35        ASSIGN_OP                                     8          !1, ~26
  138    36      > JMP                                                      ->31
         37    >   FE_FREE                                                  $23
  140    38        ASSIGN_OP                                     8          !1, '++++%3C%2Ftr%3E%0A'
  136    39        PRE_INC                                                  !3
         40    >   FETCH_OBJ_R                                      ~30     !0, 'rows'
         41        COUNT                                            ~31     ~30
         42        IS_SMALLER                                               !3, ~31
         43      > JMPNZ                                                    ~32, ->22
  142    44    >   ASSIGN_OP                                     8          !1, '%3C%2Ftable%3E'
  143    45        ECHO                                                     !1
  144    46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.13 ms | 1409 KiB | 17 Q