3v4l.org

run code in 300+ PHP versions simultaneously
<?php class fClass { public $a; public $b; function __construct($a,$b){ $this->a = $a; $this->b = $b; echo "Значения присвоены"; } } class sClass extends fClass{ public $c; function __construct($a,$b,$c){ parent::__construct($a,$b); $this->c = $c; } } $number = new sClass(1,2,3); print_r($number); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gf7fJ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'sClass'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              2
          3        SEND_VAL_EX                                              3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
   20     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   22     9      > RETURN                                                   1

Class fClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gf7fJ
function name:  __construct
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ASSIGN_OBJ                                               'a'
          3        OP_DATA                                                  !0
    7     4        ASSIGN_OBJ                                               'b'
          5        OP_DATA                                                  !1
    8     6        ECHO                                                     '%D0%97%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D1%8F+%D0%BF%D1%80%D0%B8%D1%81%D0%B2%D0%BE%D0%B5%D0%BD%D1%8B'
    9     7      > RETURN                                                   null

End of function __construct

End of class fClass.

Class sClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gf7fJ
function name:  __construct
number of ops:  10
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   14     3        INIT_STATIC_METHOD_CALL                                  
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0          
   15     7        ASSIGN_OBJ                                               'c'
          8        OP_DATA                                                  !2
   17     9      > RETURN                                                   null

End of function __construct

End of class sClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.07 ms | 1396 KiB | 15 Q