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($sql); while (list($key, $val) = each($sql)) { echo "$key => $val\n"; } } $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/n4nHl
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>
   16     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
   20     7      > RETURN                                                   1

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

End of function pram_alter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.53 ms | 1399 KiB | 19 Q