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' ) ) ) ); var_dump(array_keys($fields)); //'UPDATE _table_ SET _field_ = _value_ WHERE _field_ = _value_'; foreach($queryArray as $table => $fields) { print $table . ' SET ' . implode(' = ? ', array_keys($fields)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/uTLDo
function name:  (null)
number of ops:  23
compiled vars:  !0 = $queryArray, !1 = $fields, !2 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   16     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                                 
   18     7      > FE_RESET_R                                       $6      !0, ->21
          8    > > FE_FETCH_R                                       ~7      $6, !1, ->21
          9    >   ASSIGN                                                   !2, ~7
   19    10        CONCAT                                           ~9      !2, '+SET+'
         11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '+%3D+%3F+'
         13        INIT_FCALL                                               'array_keys'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                         $11     
         18        CONCAT                                           ~12     ~9, $11
         19        ECHO                                                     ~12
   18    20      > JMP                                                      ->8
         21    >   FE_FREE                                                  $6
   20    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
277.81 ms | 1395 KiB | 20 Q