3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { function a() { self::b(); } static function b() { return $this->c(); } function c() {} } (new X())->a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rMHaK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $0      'X'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'a'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rMHaK
function name:  b
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_THIS                                       $0      
          1        INIT_METHOD_CALL                                         $0, 'c'
          2        DO_FCALL                                      0  $1      
          3      > RETURN                                                   $1
          4*     > RETURN                                                   null

End of function b

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

End of function c

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.66 ms | 1385 KiB | 13 Q