3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I{ function __construct(array $test); } trait T{ function __construct(array $test){ } } class Mother implements I{ use T; } class Children extends Mother{ function __construct(){ } } $children=new Children(); $mother = new Mother();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z58U2
function name:  (null)
number of ops:  9
compiled vars:  !0 = $children, !1 = $mother
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   DECLARE_CLASS                                            'mother'
   16     1        DECLARE_CLASS                                            'children', 'mother'
   22     2        NEW                                              $2      'Children'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   23     5        NEW                                              $5      'Mother'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
          8      > RETURN                                                   1

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

End of function __construct

End of class I.

Class T:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z58U2
function name:  __construct
number of ops:  2
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1      > RETURN                                                   null

End of function __construct

End of class T.

Class Mother: [no user functions]
Class Children:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z58U2
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E > > RETURN                                                   null

End of function __construct

End of class Children.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.66 ms | 1385 KiB | 13 Q