3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Page { public $delta; function __construct(...$delta) { $this->delta= $delta; } } class Home extends Page { public $alpha; public function __construct($alpha) { $this->alpha = $alpha; } } $Page = new Home("delta", "alpha"); var_dump($Page);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aerpS
function name:  (null)
number of ops:  9
compiled vars:  !0 = $Page
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Home'
          1        SEND_VAL_EX                                              'delta'
          2        SEND_VAL_EX                                              'alpha'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   24     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Page:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aerpS
function name:  __construct
number of ops:  4
compiled vars:  !0 = $delta
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_VARIADIC                                    !0      
    9     1        ASSIGN_OBJ                                               'delta'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function __construct

End of class Page.

Class Home:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aerpS
function name:  __construct
number of ops:  4
compiled vars:  !0 = $alpha
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   19     1        ASSIGN_OBJ                                               'alpha'
          2        OP_DATA                                                  !0
   20     3      > RETURN                                                   null

End of function __construct

End of class Home.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.05 ms | 1395 KiB | 15 Q