3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __invoke($itme) { echo $item; } } $arr = ['testt', 'me']; array_walk($arr, new a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/grWHT
function name:  (null)
number of ops:  8
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        NEW                                              $2      'a'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class a:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/grWHT
function name:  __invoke
number of ops:  3
compiled vars:  !0 = $itme, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        ECHO                                                     !1
          2      > RETURN                                                   null

End of function __invoke

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.84 ms | 1394 KiB | 15 Q