3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function b() { } } class B { public function __invoke() { } } function a (callable $a) { } a('a'); a(array('A', 'b')); a(array('B'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LNAdS
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'a'
          1        SEND_VAL                                                 'a'
          2        DO_FCALL                                      0          
   21     3        INIT_FCALL                                               'a'
          4        SEND_VAL                                                 <array>
          5        DO_FCALL                                      0          
   22     6        INIT_FCALL                                               'a'
          7        SEND_VAL                                                 <array>
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

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

End of function a

Class A:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LNAdS
function name:  b
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function b

End of class A.

Class B:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LNAdS
function name:  __invoke
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   null

End of function __invoke

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.14 ms | 1397 KiB | 16 Q