3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { function __construct($c) { echo 'dddd'; $this->c = $c; } function getReturnDescription() { /*2*/ } } trait B { function __construct($c) { echo 'AAAA'; $this->c = $c; } function getReturnDescription() { /*2*/ } } class ezcReflectionMethod { use A, B; /* ... */ } $a = new ezcReflectionMethod('ccc'); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VcvMg
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   DECLARE_CLASS                                            'ezcreflectionmethod'
   22     1        NEW                                              $1      'ezcReflectionMethod'
          2        SEND_VAL_EX                                              'ccc'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   23     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VcvMg
function name:  __construct
number of ops:  5
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ECHO                                                     'dddd'
    5     2        ASSIGN_OBJ                                               'c'
          3        OP_DATA                                                  !0
    6     4      > RETURN                                                   null

End of function __construct

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

End of function getreturndescription

End of class A.

Class B:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VcvMg
function name:  __construct
number of ops:  5
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        ECHO                                                     'AAAA'
   12     2        ASSIGN_OBJ                                               'c'
          3        OP_DATA                                                  !0
   13     4      > RETURN                                                   null

End of function __construct

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

End of function getreturndescription

End of class B.

Class ezcReflectionMethod: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.18 ms | 1396 KiB | 15 Q