3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = array("inUserID" => "lemon", "inCustID" => "orange", "btAll" => "banana", "btPermPref" => "apple", "inDisplay"=>"toast"); function pram_alter($array, $key) { //echo implode(',', each($array)); reset($array); while (list($key, $val) = each($array)) { // echo "$key => $val\n"; echo "exec SOMEVAR $key ='" . $val . "',.";""; } } $temp=array(pram_alter($sql, 'pram_alter')); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CT5Gn
function name:  (null)
number of ops:  8
compiled vars:  !0 = $sql, !1 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'pram_alter'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'pram_alter'
          4        DO_FCALL                                      0  $3      
          5        INIT_ARRAY                                       ~4      $3
          6        ASSIGN                                                   !1, ~4
   16     7      > RETURN                                                   1

Function pram_alter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
filename:       /in/CT5Gn
function name:  pram_alter
number of ops:  21
compiled vars:  !0 = $array, !1 = $key, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        INIT_FCALL                                               'reset'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    8     5      > JMP                                                      ->12
   10     6    >   ROPE_INIT                                     3  ~5      'exec+SOMEVAR+'
          7        ROPE_ADD                                      1  ~5      ~5, !1
          8        ROPE_END                                      2  ~4      ~5, '+%3D%27'
          9        CONCAT                                           ~7      ~4, !2
         10        CONCAT                                           ~8      ~7, '%27%2C.'
         11        ECHO                                                     ~8
    8    12    >   INIT_FCALL_BY_NAME                                       'each'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $9      
         15        FETCH_LIST_R                                     $10     $9, 0
         16        ASSIGN                                                   !1, $10
         17        FETCH_LIST_R                                     $12     $9, 1
         18        ASSIGN                                                   !2, $12
         19      > JMPNZ                                                    $9, ->6
   13    20    > > RETURN                                                   null

End of function pram_alter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.54 ms | 1390 KiB | 16 Q