3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Father { public $value; /** * Father Controller */ public function __construct() { $this->value = 123; } } class Child extends Father { /** * Child Controller that extend Father */ public function __construct($x) { parent::__construct(); } } $obj = new Child(1); echo $obj->value;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6pKe9
function name:  (null)
number of ops:  7
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'Child'
          1        SEND_VAL_EX                                              1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   26     4        FETCH_OBJ_R                                      ~4      !0, 'value'
          5        ECHO                                                     ~4
          6      > RETURN                                                   1

Class Father:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6pKe9
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN_OBJ                                               'value'
          1        OP_DATA                                                  123
   11     2      > RETURN                                                   null

End of function __construct

End of class Father.

Class Child:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6pKe9
function name:  __construct
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        INIT_STATIC_METHOD_CALL                                  
          2        DO_FCALL                                      0          
   22     3      > RETURN                                                   null

End of function __construct

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.02 ms | 1394 KiB | 13 Q