3v4l.org

run code in 300+ PHP versions simultaneously
<?php class schade { public function __construct(){ anvadb::disconnect(); } } class odbcdb { public function __construct(){} public static function __callStatic($method, $arguments) { call_user_func(array(self, $method), $arguments); } public function disconnect() { $this->test(); } public function test() { echo 'odbc::test()'; } } class anvadb extends odbcdb { public function test() { echo 'anvadb::test()'; } } new schade;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYTp5
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   NEW                                              $0      'schade'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

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

End of function __construct

End of class schade.

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

End of function __construct

Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYTp5
function name:  __callStatic
number of ops:  9
compiled vars:  !0 = $method, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        FETCH_CONSTANT                                   ~2      'self'
          3        INIT_ARRAY                                       ~3      ~2
          4        ADD_ARRAY_ELEMENT                                ~3      !0
          5        INIT_USER_CALL                                1          'call_user_func', ~3
          6        SEND_USER                                                !1
          7        DO_FCALL                                      0          
   13     8      > RETURN                                                   null

End of function __callstatic

Function disconnect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYTp5
function name:  disconnect
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_METHOD_CALL                                         'test'
          1        DO_FCALL                                      0          
   16     2      > RETURN                                                   null

End of function disconnect

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYTp5
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ECHO                                                     'odbc%3A%3Atest%28%29'
   21     1      > RETURN                                                   null

End of function test

End of class odbcdb.

Class anvadb:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYTp5
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   ECHO                                                     'anvadb%3A%3Atest%28%29'
   28     1      > RETURN                                                   null

End of function test

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

End of function __construct

Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYTp5
function name:  __callStatic
number of ops:  9
compiled vars:  !0 = $method, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        FETCH_CONSTANT                                   ~2      'self'
          3        INIT_ARRAY                                       ~3      ~2
          4        ADD_ARRAY_ELEMENT                                ~3      !0
          5        INIT_USER_CALL                                1          'call_user_func', ~3
          6        SEND_USER                                                !1
          7        DO_FCALL                                      0          
   13     8      > RETURN                                                   null

End of function __callstatic

Function disconnect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYTp5
function name:  disconnect
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_METHOD_CALL                                         'test'
          1        DO_FCALL                                      0          
   16     2      > RETURN                                                   null

End of function disconnect

End of class anvadb.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.29 ms | 1390 KiB | 13 Q