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) { foreach ($array as $value){ echo "$array= '$key'"; } } //$temp=array(); $temp=array(pram_alter($sql, 'pram_alter')); echo print_r($temp); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/spemn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $sql, !1 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   12     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
   13     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
   16    11      > RETURN                                                   1

Function pram_alter:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/spemn
function name:  pram_alter
number of ops:  12
compiled vars:  !0 = $array, !1 = $key, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2      > FE_RESET_R                                       $3      !0, ->10
          3    > > FE_FETCH_R                                               $3, !2, ->10
    7     4    >   ROPE_INIT                                     4  ~5      !0
          5        ROPE_ADD                                      1  ~5      ~5, '%3D+%27'
          6        ROPE_ADD                                      2  ~5      ~5, !1
          7        ROPE_END                                      3  ~4      ~5, '%27'
          8        ECHO                                                     ~4
    6     9      > JMP                                                      ->3
         10    >   FE_FREE                                                  $3
   10    11      > RETURN                                                   null

End of function pram_alter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.64 ms | 1390 KiB | 16 Q