3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DatabaseAccess { public function __construct() { } } class StatisticsAccess extends DatabaseAccess { public function getMatchesById($matchesid) { $teamAccess = new TeamAccess(); print_r(new TeamAccess); } } class TeamAccess extends DatabaseAccess { public function __construct() { parent::__construct(); } } $stats = new StatisticsAccess(); $stats->getMatchesById(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jIi83
function name:  (null)
number of ops:  7
compiled vars:  !0 = $stats
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'StatisticsAccess'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        INIT_METHOD_CALL                                         !0, 'getMatchesById'
          4        SEND_VAL_EX                                              1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function __construct

End of class DatabaseAccess.

Class StatisticsAccess:
Function getmatchesbyid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jIi83
function name:  getMatchesById
number of ops:  10
compiled vars:  !0 = $matchesid, !1 = $teamAccess
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        NEW                                              $2      'TeamAccess'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $2
   12     4        INIT_FCALL                                               'print_r'
          5        NEW                                              $5      'TeamAccess'
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                                 
   13     9      > RETURN                                                   null

End of function getmatchesbyid

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

End of function __construct

End of class StatisticsAccess.

Class TeamAccess:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jIi83
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
   19     2      > RETURN                                                   null

End of function __construct

End of class TeamAccess.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.65 ms | 1388 KiB | 15 Q