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_fill(0, count(array_keys($fields)), '?')); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 21
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 21
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/Fpv99
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>
   17     1      > FE_RESET_R                                       $4      !0, ->21
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->21
          3    >   ASSIGN                                                   !2, ~5
   18     4        CONCAT                                           ~7      !2, '+SET+'
          5        INIT_FCALL                                               'implode'
          6        SEND_VAL                                                 '%2C'
          7        INIT_FCALL                                               'array_fill'
          8        SEND_VAL                                                 0
          9        INIT_FCALL                                               'array_keys'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        COUNT                                            ~9      $8
         13        SEND_VAL                                                 ~9
         14        SEND_VAL                                                 '%3F'
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                         $11     
         18        CONCAT                                           ~12     ~7, $11
         19        ECHO                                                     ~12
   17    20      > JMP                                                      ->2
         21    >   FE_FREE                                                  $4
   19    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.58 ms | 1395 KiB | 19 Q