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){ $array[$chave] = $chave + 1; } function echo_array($chave){ echo "$chave \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/iM1tW
function name:  (null)
number of ops:  6
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'echo_array'
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

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

End of function echo_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.7 ms | 1395 KiB | 15 Q