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

End of function pram_alter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.74 ms | 1399 KiB | 14 Q