3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Doctrine\Common\Persistence { interface ObjectRepository { public function find($id); } } namespace Doctrine\ORM { use Doctrine\Common\Persistence\ObjectRepository; class EntityRepository implements ObjectRepository { public function find($id, $lockMode = null, $lockVersion = null) {} } } namespace { use Doctrine\ORM\EntityRepository; class MyRepository extends EntityRepository { public function find($id) {} } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2akM2
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   DECLARE_CLASS                                                'doctrine%5Corm%5Centityrepository'
   24     1        DECLARE_CLASS                                                'myrepository', 'doctrine%5Corm%5Centityrepository'
   28     2      > RETURN                                                       1

Class Doctrine\Common\Persistence\ObjectRepository:
Function find:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2akM2
function name:  find
number of ops:  2
compiled vars:  !0 = $id
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1      > RETURN                                                       null

End of function find

End of class Doctrine\Common\Persistence\ObjectRepository.

Class Doctrine\ORM\EntityRepository:
Function find:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2akM2
function name:  find
number of ops:  4
compiled vars:  !0 = $id, !1 = $lockMode, !2 = $lockVersion
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      null
          2        RECV_INIT                                            !2      null
          3      > RETURN                                                       null

End of function find

End of class Doctrine\ORM\EntityRepository.

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

End of function find

End of class MyRepository.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
245.27 ms | 2286 KiB | 13 Q