3v4l.org

run code in 300+ PHP versions simultaneously
<?php class schade { public function __construct(){ anvadb::disconnect(); } } class odbcdb { protected static $odbc; public function disconnect() { static::$odbc = null; } } class anvadb extends odbcdb { // ter illustratie public static function connect() { self::$odbc = blabla(); } } new schade;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YER8Y
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     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/YER8Y
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/YER8Y
function name:  disconnect
number of ops:  3
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      > RETURN                                                   null

End of function disconnect

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/YER8Y
function name:  connect
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL_BY_NAME                                       'blabla'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN_STATIC_PROP                                       'odbc'
          3        OP_DATA                                                  $1
   21     4      > RETURN                                                   null

End of function connect

Function disconnect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YER8Y
function name:  disconnect
number of ops:  3
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      > RETURN                                                   null

End of function disconnect

End of class anvadb.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.09 ms | 1395 KiB | 13 Q