3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1,2,3,4,5,6,7,8,9); function soma_1($chave, $valor){ $array[$chave][$valor] = $valor + 1; } function echo_array($chave, $valor){ echo "$valor /n"; } array_walk($array,'soma_1'); array_walk($array,'echo_array');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pmsm3
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'soma_1'
          4        DO_ICALL                                                 
   14     5        INIT_FCALL                                               'array_walk'
          6        SEND_REF                                                 !0
          7        SEND_VAL                                                 'echo_array'
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function soma_1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pmsm3
function name:  soma_1
number of ops:  7
compiled vars:  !0 = $chave, !1 = $valor, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ADD                                              ~5      !1, 1
          3        FETCH_DIM_W                                      $3      !2, !0
          4        ASSIGN_DIM                                               $3, !1
          5        OP_DATA                                                  ~5
    7     6      > RETURN                                                   null

End of function soma_1

Function echo_array:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pmsm3
function name:  echo_array
number of ops:  6
compiled vars:  !0 = $chave, !1 = $valor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        NOP                                                      
          3        FAST_CONCAT                                      ~2      !1, '+%2Fn'
          4        ECHO                                                     ~2
   11     5      > RETURN                                                   null

End of function echo_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.11 ms | 1396 KiB | 15 Q