3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.21 ms | 1395 KiB | 17 Q