3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace B { class A { public function __invoke() { echo 'Yes!'; } } function A() { echo 'Yup!'; } } namespace C { function A() { echo 'Nope!'; } $a = new B\A; $a(); A(); \B\A(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KpCkn
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'C%5CB%5CA'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_DYNAMIC_CALL                                        !0
          4        DO_FCALL                                      0          
   20     5        INIT_NS_FCALL_BY_NAME                                    'C%5CA'
          6        DO_FCALL                                      0          
   21     7        INIT_FCALL                                               'b%5Ca'
          8        DO_FCALL                                      0          
   22     9      > RETURN                                                   1

Function b%5Ca:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KpCkn
function name:  B\A
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'Yup%21'
   12     1      > RETURN                                                   null

End of function b%5Ca

Function c%5Ca:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KpCkn
function name:  C\A
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ECHO                                                     'Nope%21'
   17     1      > RETURN                                                   null

End of function c%5Ca

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

End of function __invoke

End of class B\A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.83 ms | 1398 KiB | 15 Q