3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait PropertiesTrait { public array $x = []; } class AbstractPropertiesExample { public array $x = []; public function __construct( ?array $x = [] ) { $this->x = $x; } } class PropertiesExample extends AbstractPropertiesExample { use PropertiesTrait; } $example = new PropertiesExample; $example->x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ZmXt
function name:  (null)
number of ops:  7
compiled vars:  !0 = $example
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   DECLARE_CLASS                                                'propertiesexample', 'abstractpropertiesexample'
   24     1        NEW                                                  $1      'PropertiesExample'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   26     4        FETCH_OBJ_R                                          ~4      !0, 'x'
          5        FREE                                                         ~4
   27     6      > RETURN                                                       1

Class PropertiesTrait: [no user functions]
Class AbstractPropertiesExample:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ZmXt
function name:  __construct
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV_INIT                                            !0      <array>
   15     1        ASSIGN_OBJ                                                   'x'
          2        OP_DATA                                                      !0
   16     3      > RETURN                                                       null

End of function __construct

End of class AbstractPropertiesExample.

Class PropertiesExample: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.58 ms | 474 KiB | 7 Q