3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Player extends User{ private $pdo = null; private $authUser = null; public function __construct(DB $db, Auth $auth) { $this->pdo = $db->connection()->getPdo(); $this->authUser = $auth->user(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5qRqE
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'player', 'user'
   11     1      > RETURN                                                   1

Class Player:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5qRqE
function name:  __construct
number of ops:  13
compiled vars:  !0 = $db, !1 = $auth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        INIT_METHOD_CALL                                         !0, 'connection'
          3        DO_FCALL                                      0  $3      
          4        INIT_METHOD_CALL                                         $3, 'getPdo'
          5        DO_FCALL                                      0  $4      
          6        ASSIGN_OBJ                                               'pdo'
          7        OP_DATA                                                  $4
    9     8        INIT_METHOD_CALL                                         !1, 'user'
          9        DO_FCALL                                      0  $6      
         10        ASSIGN_OBJ                                               'authUser'
         11        OP_DATA                                                  $6
   10    12      > RETURN                                                   null

End of function __construct

End of class Player.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.51 ms | 1393 KiB | 13 Q