3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface PaydayInterface { public function getAccessCode(); } trait PaydayTrait { private $accessCode; public function getAccessCode() { return $this->accessCode; } } class Payday implements PaydayInterface { use PaydayTrait; /** Mapping */ private $accessCode; public function __construct($accessCode) { $this->accessCode = $accessCode; } } $pd = new Payday("1234"); var_dump($pd->getAccessCode());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EPN20
function name:  (null)
number of ops:  11
compiled vars:  !0 = $pd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   DECLARE_CLASS                                            'payday'
   31     1        NEW                                              $1      'Payday'
          2        SEND_VAL_EX                                              '1234'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   33     5        INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !0, 'getAccessCode'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

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

End of function getaccesscode

End of class PaydayInterface.

Class PaydayTrait:
Function getaccesscode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EPN20
function name:  getAccessCode
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'accessCode'
          1      > RETURN                                                   ~0
   15     2*     > RETURN                                                   null

End of function getaccesscode

End of class PaydayTrait.

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

End of function __construct

End of class Payday.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.46 ms | 1396 KiB | 15 Q