3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP class COMMENT { function A() { COMMENT::B(); } function B() { echo preg_replace_callback('~a~', array('self', 'C'), 'a'); } function C() { return 'c'; } } class X { function A() { $x = new COMMENT(); $x->a(); } } error_reporting(E_ALL); //ini_set('display_errors', 'on'); X::A();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8uX2U
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   31     3        INIT_STATIC_METHOD_CALL                                  'X', 'A'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class COMMENT:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8uX2U
function name:  A
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_STATIC_METHOD_CALL                                  'COMMENT', 'B'
          1        DO_FCALL                                      0          
    7     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/8uX2U
function name:  B
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'preg_replace_callback'
          1        SEND_VAL                                                 '%7Ea%7E'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 'a'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
   12     6      > 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/8uX2U
function name:  C
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > RETURN                                                   'c'
   17     1*     > RETURN                                                   null

End of function c

End of class COMMENT.

Class X:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8uX2U
function name:  A
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'COMMENT'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        INIT_METHOD_CALL                                         !0, 'a'
          4        DO_FCALL                                      0          
   25     5      > RETURN                                                   null

End of function a

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.86 ms | 1388 KiB | 17 Q