3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface CustomerRepositoryInterface {} class SQLCustomerRepository implements CustomerRepositoryInterface {} class Controller { protected $repository; public function __contruct(CustomerRepositoryInterface $repository) { $this->repository = $repository; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTVvU
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'sqlcustomerrepository'
   14     1      > RETURN                                                   1

Class CustomerRepositoryInterface: [no user functions]
Class SQLCustomerRepository: [no user functions]
Class Controller:
Function __contruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTVvU
function name:  __contruct
number of ops:  4
compiled vars:  !0 = $repository
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ASSIGN_OBJ                                               'repository'
          2        OP_DATA                                                  !0
   12     3      > RETURN                                                   null

End of function __contruct

End of class Controller.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.7 ms | 1397 KiB | 13 Q