3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base extends ArrayObject{ var $parent = true; var $another_prop = 123; public function __construct() { $this['test'] = 123; } public function __debugInfo() { return [ 'parent'=>$this->getArrayCopy() ]; } } class Child extends Base { var $parent = false; } var_dump(new Child());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddq2i
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'Child'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class Base:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddq2i
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       $0      
          1        ASSIGN_DIM                                               $0, 'test'
          2        OP_DATA                                                  123
    8     3      > RETURN                                                   null

End of function __construct

Function __debuginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddq2i
function name:  __debugInfo
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                         'getArrayCopy'
          1        DO_FCALL                                      0  $0      
          2        INIT_ARRAY                                       ~1      $0, 'parent'
          3      > RETURN                                                   ~1
   13     4*     > RETURN                                                   null

End of function __debuginfo

End of class Base.

Class Child:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddq2i
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       $0      
          1        ASSIGN_DIM                                               $0, 'test'
          2        OP_DATA                                                  123
    8     3      > RETURN                                                   null

End of function __construct

Function __debuginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddq2i
function name:  __debugInfo
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                         'getArrayCopy'
          1        DO_FCALL                                      0  $0      
          2        INIT_ARRAY                                       ~1      $0, 'parent'
          3      > RETURN                                                   ~1
   13     4*     > RETURN                                                   null

End of function __debuginfo

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.44 ms | 1396 KiB | 15 Q