3v4l.org

run code in 300+ PHP versions simultaneously
<?php Abstract class BaseObject { public function Insert(){ var_dump(static::$aTables); } } // END BaseObject class Role extends BaseObject { static public $aTables = array( 'ACL_Roles' => array('RoleID','RoleName','RoleDescription') ); } // End Class $r = new Role; $r->Insert(); var_dump( Role::$aTables );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/15roH
function name:  (null)
number of ops:  10
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Role'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'Insert'
          4        DO_FCALL                                      0          
   19     5        INIT_FCALL                                               'var_dump'
          6        FETCH_STATIC_PROP_R          unknown             ~5      'aTables'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class BaseObject:
Function insert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/15roH
function name:  Insert
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_STATIC_PROP_R          global lock         ~0      'aTables'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    6     4      > RETURN                                                   null

End of function insert

End of class BaseObject.

Class Role:
Function insert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/15roH
function name:  Insert
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_STATIC_PROP_R          global lock         ~0      'aTables'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    6     4      > RETURN                                                   null

End of function insert

End of class Role.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.6 ms | 1387 KiB | 15 Q