3v4l.org

run code in 300+ PHP versions simultaneously
<?php $queryArray = array( 'ebben' => array( //$changes 'ezt' => 'erre', //No escape 'ezt2' => 'nes:erre', array( //$condition 'where' => array( 'ez' => 'ezzel' ) ) ) ); //'UPDATE _table_ SET _field_ = _value_ WHERE _field_ = _value_'; foreach($queryArray as $table => $fields) { if(array_keys($fields)) { print $table . ' SET ' . implode(' = ? ', array_keys($fields)); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/MruG7
function name:  (null)
number of ops:  21
compiled vars:  !0 = $queryArray, !1 = $fields, !2 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1      > FE_RESET_R                                       $4      !0, ->19
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->19
          3    >   ASSIGN                                                   !2, ~5
   18     4        INIT_FCALL                                               'array_keys'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $7      
          7      > JMPZ                                                     $7, ->18
   19     8    >   CONCAT                                           ~8      !2, '+SET+'
          9        INIT_FCALL                                               'implode'
         10        SEND_VAL                                                 '+%3D+%3F+'
         11        INIT_FCALL                                               'array_keys'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     ~8, $10
         17        ECHO                                                     ~11
   17    18    > > JMP                                                      ->2
         19    >   FE_FREE                                                  $4
   21    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.15 ms | 1395 KiB | 17 Q