3v4l.org

run code in 300+ PHP versions simultaneously
<?php class schade { public function __construct(){ anvadb::disconnect(); } } class odbcdb { protected static $odbc; public static function disconnect() { static::$odbc = null; self::test(); } public static function test() { echo 'odbc::test()'; } } class anvadb extends odbcdb { // ter illustratie public static function connect() { static::$odbc = blabla(); } public static 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/ooL9q
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     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/ooL9q
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 disconnect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ooL9q
function name:  disconnect
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN_STATIC_PROP                                       'odbc'
          1        OP_DATA                                                  null
   13     2        INIT_STATIC_METHOD_CALL                                  'test'
          3        DO_FCALL                                      0          
   14     4      > 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/ooL9q
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     'odbc%3A%3Atest%28%29'
   19     1      > RETURN                                                   null

End of function test

End of class odbcdb.

Class anvadb:
Function connect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ooL9q
function name:  connect
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   INIT_FCALL_BY_NAME                                       'blabla'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN_STATIC_PROP                                       'odbc'
          3        OP_DATA                                                  $1
   27     4      > RETURN                                                   null

End of function connect

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

End of function test

Function disconnect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ooL9q
function name:  disconnect
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN_STATIC_PROP                                       'odbc'
          1        OP_DATA                                                  null
   13     2        INIT_STATIC_METHOD_CALL                                  'test'
          3        DO_FCALL                                      0          
   14     4      > RETURN                                                   null

End of function disconnect

End of class anvadb.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.76 ms | 1399 KiB | 13 Q