3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = array("inUserID" =>7250, "inCustID" =>15319, "btAll" => "True", "btPermPref" => "True", "inDisplay"=>0); function pram_alter($array, $key) { //echo implode(',', each($array)); reset($array); while (list($key, $val) = each($array)) { //echo "$key => $val"; $pStr=$pStr."$key ='" . $val . "',"; $strproc='myProc'; $sqlStatment="exec " . $strproc . " " . $pStr; } echo $sqlStatment; } $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/sgWof
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>
   18     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
   19     7      > RETURN                                                   1

Function pram_alter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 6
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 6
Branch analysis from position: 25
Branch analysis from position: 6
filename:       /in/sgWof
function name:  pram_alter
number of ops:  27
compiled vars:  !0 = $array, !1 = $key, !2 = $pStr, !3 = $val, !4 = $strproc, !5 = $sqlStatment
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                                                      ->17
   11     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~7      !1, '+%3D%27'
          8        CONCAT                                           ~8      !2, ~7
          9        CONCAT                                           ~9      ~8, !3
         10        CONCAT                                           ~10     ~9, '%27%2C'
         11        ASSIGN                                                   !2, ~10
   12    12        ASSIGN                                                   !4, 'myProc'
   13    13        CONCAT                                           ~13     'exec+', !4
         14        CONCAT                                           ~14     ~13, '+'
         15        CONCAT                                           ~15     ~14, !2
         16        ASSIGN                                                   !5, ~15
    8    17    >   INIT_FCALL_BY_NAME                                       'each'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $17     
         20        FETCH_LIST_R                                     $18     $17, 0
         21        ASSIGN                                                   !1, $18
         22        FETCH_LIST_R                                     $20     $17, 1
         23        ASSIGN                                                   !3, $20
         24      > JMPNZ                                                    $17, ->6
   15    25    >   ECHO                                                     !5
   16    26      > RETURN                                                   null

End of function pram_alter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.72 ms | 1394 KiB | 16 Q