3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ABC { public function abc(); }; abstract class CED implements ABC{ } trait XXX { public function abc(){ print 'abc'; } public function __construct(){ echo $this->abc(); } } final class EFG extends CED{ use XXX; } new EFG;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JNk8f
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'ced'
   18     1        DECLARE_CLASS                                            'efg', 'ced'
   22     2        NEW                                              $0      'EFG'
          3        DO_FCALL                                      0          
          4        FREE                                                     $0
          5      > RETURN                                                   1

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

End of function abc

End of class ABC.

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

End of function abc

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

End of function __construct

End of class XXX.

Class EFG: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149 ms | 1394 KiB | 13 Q