3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Man { protected $Vik; protected $Staty; function input($v, $s) { $this->Vik=$v; $this->Staty=$s; } } class Gayduk extends Man { protected $Name; protected $Priz; function input1($n, $p) { $this->Name=$n; $this->Priz=$p; Man::input(); } function printinfo() { echo "$this->Vik"; echo "$this->Staty"; echo "$this->Name"; echo "$this->Priz"; } } $man = new Man(); $rsg = new Gayduk(); $man->input('18', 'Чоловіча'); $rsg->input1('Роман', 'Гайдук'); $rsg->printinfo(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s70bI
function name:  (null)
number of ops:  17
compiled vars:  !0 = $man, !1 = $rsg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   NEW                                              $2      'Man'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   33     3        NEW                                              $5      'Gayduk'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   34     6        INIT_METHOD_CALL                                         !0, 'input'
          7        SEND_VAL_EX                                              '18'
          8        SEND_VAL_EX                                              '%D0%A7%D0%BE%D0%BB%D0%BE%D0%B2%D1%96%D1%87%D0%B0'
          9        DO_FCALL                                      0          
   35    10        INIT_METHOD_CALL                                         !1, 'input1'
         11        SEND_VAL_EX                                              '%D0%A0%D0%BE%D0%BC%D0%B0%D0%BD'
         12        SEND_VAL_EX                                              '%D0%93%D0%B0%D0%B9%D0%B4%D1%83%D0%BA'
         13        DO_FCALL                                      0          
   36    14        INIT_METHOD_CALL                                         !1, 'printinfo'
         15        DO_FCALL                                      0          
   37    16      > RETURN                                                   1

Class Man:
Function input:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s70bI
function name:  input
number of ops:  7
compiled vars:  !0 = $v, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        ASSIGN_OBJ                                               'Vik'
          3        OP_DATA                                                  !0
    9     4        ASSIGN_OBJ                                               'Staty'
          5        OP_DATA                                                  !1
   10     6      > RETURN                                                   null

End of function input

End of class Man.

Class Gayduk:
Function input1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s70bI
function name:  input1
number of ops:  9
compiled vars:  !0 = $n, !1 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   18     2        ASSIGN_OBJ                                               'Name'
          3        OP_DATA                                                  !0
   19     4        ASSIGN_OBJ                                               'Priz'
          5        OP_DATA                                                  !1
   20     6        INIT_STATIC_METHOD_CALL                                  'Man', 'input'
          7        DO_FCALL                                      0          
   21     8      > RETURN                                                   null

End of function input1

Function printinfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s70bI
function name:  printinfo
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   FETCH_OBJ_R                                      ~0      'Vik'
          1        CAST                                          6  ~1      ~0
          2        ECHO                                                     ~1
   25     3        FETCH_OBJ_R                                      ~2      'Staty'
          4        CAST                                          6  ~3      ~2
          5        ECHO                                                     ~3
   26     6        FETCH_OBJ_R                                      ~4      'Name'
          7        CAST                                          6  ~5      ~4
          8        ECHO                                                     ~5
   27     9        FETCH_OBJ_R                                      ~6      'Priz'
         10        CAST                                          6  ~7      ~6
         11        ECHO                                                     ~7
   29    12      > RETURN                                                   null

End of function printinfo

Function input:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s70bI
function name:  input
number of ops:  7
compiled vars:  !0 = $v, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        ASSIGN_OBJ                                               'Vik'
          3        OP_DATA                                                  !0
    9     4        ASSIGN_OBJ                                               'Staty'
          5        OP_DATA                                                  !1
   10     6      > RETURN                                                   null

End of function input

End of class Gayduk.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.93 ms | 1399 KiB | 13 Q