3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); function pram_alter($array, $key) { global $params; $params=array(); foreach ($array as $value) { $params="$$key = '$array';\n"; } } array_walk($fruits, 'pram_alter'); echo print_r($params); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FjMpj
function name:  (null)
number of ops:  10
compiled vars:  !0 = $fruits, !1 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'pram_alter'
          4        DO_ICALL                                                 
   15     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
   17     9      > RETURN                                                   1

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

End of function pram_alter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.24 ms | 1396 KiB | 17 Q