3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function hello() { echo 'ich bin Foo->hello'; $this->xxx(); self::yyy(); } public function xxx() { echo 'ich bin xxx'; } public static function yyy() { echo 'ich bin yyy'; } } function hello() { echo 'ich bin bar'; } hello(); $foo = new Foo(); $foo->hello(); Foo::yyy();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kANg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_FCALL                                               'hello'
          1        DO_FCALL                                      0          
   29     2        NEW                                              $2      'Foo'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   30     5        INIT_METHOD_CALL                                         !0, 'hello'
          6        DO_FCALL                                      0          
   32     7        INIT_STATIC_METHOD_CALL                                  'Foo', 'yyy'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kANg
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   ECHO                                                     'ich+bin+bar'
   26     1      > RETURN                                                   null

End of function hello

Class Foo:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kANg
function name:  hello
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'ich+bin+Foo-%3Ehello'
    8     1        INIT_METHOD_CALL                                         'xxx'
          2        DO_FCALL                                      0          
    9     3        INIT_STATIC_METHOD_CALL                                  'yyy'
          4        DO_FCALL                                      0          
   10     5      > RETURN                                                   null

End of function hello

Function xxx:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kANg
function name:  xxx
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'ich+bin+xxx'
   15     1      > RETURN                                                   null

End of function xxx

Function yyy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kANg
function name:  yyy
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     'ich+bin+yyy'
   19     1      > RETURN                                                   null

End of function yyy

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.28 ms | 1398 KiB | 14 Q