3v4l.org

run code in 300+ PHP versions simultaneously
<?php class mc { public function go() { $arr = array(1,2,3,4); array_walk($arr, array($this, "walkIt")); } private function walkIt($val) { echo $val . "<br />"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jf3tg
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   1

Class mc:
Function go:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jf3tg
function name:  go
number of ops:  9
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        FETCH_THIS                                       ~2      
          4        INIT_ARRAY                                       ~3      ~2
          5        ADD_ARRAY_ELEMENT                                ~3      'walkIt'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
    7     8      > RETURN                                                   null

End of function go

Function walkit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jf3tg
function name:  walkIt
number of ops:  4
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        CONCAT                                           ~1      !0, '%3Cbr+%2F%3E'
          2        ECHO                                                     ~1
   11     3      > RETURN                                                   null

End of function walkit

End of class mc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.06 ms | 1395 KiB | 15 Q