3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpinfo(); 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/tAI4i
function name:  (null)
number of ops:  9
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpinfo'
          1        DO_ICALL                                                 
   26     2        NEW                                              $2      'Child'
          3        SEND_VAL_EX                                              1
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   27     6        FETCH_OBJ_R                                      ~5      !0, 'value'
          7        ECHO                                                     ~5
          8      > RETURN                                                   1

Class Father:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tAI4i
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN_OBJ                                               'value'
          1        OP_DATA                                                  123
   12     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/tAI4i
function name:  __construct
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   22     1        INIT_STATIC_METHOD_CALL                                  
          2        DO_FCALL                                      0          
   23     3      > RETURN                                                   null

End of function __construct

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.52 ms | 1395 KiB | 15 Q