3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IModel { } abstract class AModel implements IModel { } abstract class ARepository { public function delete(IModel $model){ } } interface IAttachment extends IModel { } class Attachment extends AModel implements IAttachment { } class AttachmentRepository extends ARepository { public function delete(IAttachment $model) { } } $attachment = new Attachment(); $attachmentRepository = new AttachmentRepository(); $attachmentRepository->delete($attachment);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/liVF1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $attachment, !1 = $attachmentRepository
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'amodel'
   16     1        DECLARE_CLASS                                            'iattachment'
   20     2        DECLARE_CLASS                                            'attachment', 'amodel'
   24     3        DECLARE_CLASS                                            'attachmentrepository', 'arepository'
   31     4        NEW                                              $2      'Attachment'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   32     7        NEW                                              $5      'AttachmentRepository'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $5
   33    10        INIT_METHOD_CALL                                         !1, 'delete'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Class IModel: [no user functions]
Class AModel: [no user functions]
Class ARepository:
Function delete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/liVF1
function name:  delete
number of ops:  2
compiled vars:  !0 = $model
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1      > RETURN                                                   null

End of function delete

End of class ARepository.

Class IAttachment: [no user functions]
Class Attachment: [no user functions]
Class AttachmentRepository:
Function delete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/liVF1
function name:  delete
number of ops:  2
compiled vars:  !0 = $model
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
   28     1      > RETURN                                                   null

End of function delete

End of class AttachmentRepository.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.11 ms | 1394 KiB | 13 Q