3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this->queries .= 'UPDATE ' . $this->table . ' SET '; foreach ($this->setAffectedCols as $cols) { $this->queries .= (end($cols) === $cols) ? $cols . '=' . $this->data[ $cols ] . ';' : $cols . '=' . $this->data[ $cols ] . ', '; $this->queries .= 'WHERE ' . $uniqueKey . '=' . $this->data[ $uniqueKey ]; } $this->queries .= ';'; $this->counter++;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 44
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 44
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
filename:       /in/SXe5q
function name:  (null)
number of ops:  51
compiled vars:  !0 = $cols, !1 = $uniqueKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_THIS                                       $2      
          1        FETCH_THIS                                       $4      
          2        FETCH_OBJ_R                                      ~5      $4, 'table'
          3        CONCAT                                           ~6      'UPDATE+', ~5
          4        CONCAT                                           ~7      ~6, '+SET+'
          5        ASSIGN_OBJ_OP                                 8          $2, 'queries'
          6        OP_DATA                                                  ~7
    3     7        FETCH_THIS                                       $8      
          8        FETCH_OBJ_R                                      ~9      $8, 'setAffectedCols'
          9      > FE_RESET_R                                       $10     ~9, ->44
         10    > > FE_FETCH_R                                               $10, !0, ->44
    4    11    >   FETCH_THIS                                       $11     
         12        INIT_FCALL                                               'end'
         13        SEND_REF                                                 !0
         14        DO_ICALL                                         $13     
         15        IS_IDENTICAL                                             !0, $13
         16      > JMPZ                                                     ~14, ->25
         17    >   CONCAT                                           ~15     !0, '%3D'
         18        FETCH_THIS                                       $16     
         19        FETCH_OBJ_R                                      ~17     $16, 'data'
         20        FETCH_DIM_R                                      ~18     ~17, !0
         21        CONCAT                                           ~19     ~15, ~18
         22        CONCAT                                           ~20     ~19, '%3B'
         23        QM_ASSIGN                                        ~21     ~20
         24      > JMP                                                      ->32
         25    >   CONCAT                                           ~22     !0, '%3D'
         26        FETCH_THIS                                       $23     
         27        FETCH_OBJ_R                                      ~24     $23, 'data'
         28        FETCH_DIM_R                                      ~25     ~24, !0
         29        CONCAT                                           ~26     ~22, ~25
         30        CONCAT                                           ~27     ~26, '%2C+'
         31        QM_ASSIGN                                        ~21     ~27
         32    >   ASSIGN_OBJ_OP                                 8          $11, 'queries'
         33        OP_DATA                                                  ~21
    5    34        FETCH_THIS                                       $28     
         35        CONCAT                                           ~30     'WHERE+', !1
         36        CONCAT                                           ~31     ~30, '%3D'
         37        FETCH_THIS                                       $32     
         38        FETCH_OBJ_R                                      ~33     $32, 'data'
         39        FETCH_DIM_R                                      ~34     ~33, !1
         40        CONCAT                                           ~35     ~31, ~34
         41        ASSIGN_OBJ_OP                                 8          $28, 'queries'
         42        OP_DATA                                                  ~35
    3    43      > JMP                                                      ->10
         44    >   FE_FREE                                                  $10
    7    45        FETCH_THIS                                       $36     
         46        ASSIGN_OBJ_OP                                 8          $36, 'queries'
         47        OP_DATA                                                  '%3B'
    8    48        FETCH_THIS                                       $38     
         49        PRE_INC_OBJ                                              $38, 'counter'
         50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.79 ms | 1400 KiB | 15 Q