3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('cifras'=>array(array('ordem'=>1),array('ordem'=>2),array('ordem'=>3))); function abc(&$item) { $item['ordem']++; } array_walk($a['cifras'],'abc'); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pXJpo
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'array_walk'
          2        FETCH_DIM_W                                      $2      !0, 'cifras'
          3        SEND_REF                                                 $2
          4        SEND_VAL                                                 'abc'
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pXJpo
function name:  abc
number of ops:  4
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        FETCH_DIM_RW                                     $1      !0, 'ordem'
          2        PRE_INC                                                  $1
    6     3      > RETURN                                                   null

End of function abc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.73 ms | 1394 KiB | 17 Q