3v4l.org

run code in 300+ PHP versions simultaneously
<?php class induk { protected $A=12; protected $T=10; protected function hitung_rumus($r) { return $this->A=$alas; return $this->T=$tinggi; echo $v = 0.5*$alas*$tinggi; } public function cetak() { echo $this->r=$rumus; } } class anak extends induk { protected $miring; protected function sisi_miring($r) { echo $this->cari($r); } } class cucu extends anak { public $pesan; private function keliling($r) { echo $this->cari($r); } } $ob = new induk(); $ob2= new anak(); $ob3= new cucu(); echo PHP_EOL; $ob2->panggil(sisi_miring);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ob, !1 = $ob2, !2 = $ob3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   NEW                                              $3      'induk'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   36     3        NEW                                              $6      'anak'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
   37     6        NEW                                              $9      'cucu'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $9
   38     9        ECHO                                                     '%0A'
   39    10        INIT_METHOD_CALL                                         !1, 'panggil'
         11        FETCH_CONSTANT                                   ~12     'sisi_miring'
         12        SEND_VAL_EX                                              ~12
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Class induk:
Function hitung_rumus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  hitung_rumus
number of ops:  12
compiled vars:  !0 = $r, !1 = $alas, !2 = $tinggi, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                       ~4      'A'
          2        OP_DATA                                                  !1
          3      > RETURN                                                   ~4
    9     4*       ASSIGN_OBJ                                       ~5      'T'
          5*       OP_DATA                                                  !2
          6*       RETURN                                                   ~5
   10     7*       MUL                                              ~6      !1, 0.5
          8*       MUL                                              ~7      !2, ~6
          9*       ASSIGN                                           ~8      !3, ~7
         10*       ECHO                                                     ~8
   11    11*     > RETURN                                                   null

End of function hitung_rumus

Function cetak:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  cetak
number of ops:  4
compiled vars:  !0 = $rumus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN_OBJ                                       ~1      'r'
          1        OP_DATA                                                  !0
          2        ECHO                                                     ~1
   15     3      > RETURN                                                   null

End of function cetak

End of class induk.

Class anak:
Function sisi_miring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  sisi_miring
number of ops:  6
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
   23     1        INIT_METHOD_CALL                                         'cari'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
   24     5      > RETURN                                                   null

End of function sisi_miring

Function hitung_rumus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  hitung_rumus
number of ops:  12
compiled vars:  !0 = $r, !1 = $alas, !2 = $tinggi, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                       ~4      'A'
          2        OP_DATA                                                  !1
          3      > RETURN                                                   ~4
    9     4*       ASSIGN_OBJ                                       ~5      'T'
          5*       OP_DATA                                                  !2
          6*       RETURN                                                   ~5
   10     7*       MUL                                              ~6      !1, 0.5
          8*       MUL                                              ~7      !2, ~6
          9*       ASSIGN                                           ~8      !3, ~7
         10*       ECHO                                                     ~8
   11    11*     > RETURN                                                   null

End of function hitung_rumus

Function cetak:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  cetak
number of ops:  4
compiled vars:  !0 = $rumus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN_OBJ                                       ~1      'r'
          1        OP_DATA                                                  !0
          2        ECHO                                                     ~1
   15     3      > RETURN                                                   null

End of function cetak

End of class anak.

Class cucu:
Function keliling:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  keliling
number of ops:  6
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
   31     1        INIT_METHOD_CALL                                         'cari'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
   32     5      > RETURN                                                   null

End of function keliling

Function sisi_miring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  sisi_miring
number of ops:  6
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
   23     1        INIT_METHOD_CALL                                         'cari'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
   24     5      > RETURN                                                   null

End of function sisi_miring

Function hitung_rumus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  hitung_rumus
number of ops:  12
compiled vars:  !0 = $r, !1 = $alas, !2 = $tinggi, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                       ~4      'A'
          2        OP_DATA                                                  !1
          3      > RETURN                                                   ~4
    9     4*       ASSIGN_OBJ                                       ~5      'T'
          5*       OP_DATA                                                  !2
          6*       RETURN                                                   ~5
   10     7*       MUL                                              ~6      !1, 0.5
          8*       MUL                                              ~7      !2, ~6
          9*       ASSIGN                                           ~8      !3, ~7
         10*       ECHO                                                     ~8
   11    11*     > RETURN                                                   null

End of function hitung_rumus

Function cetak:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCCbY
function name:  cetak
number of ops:  4
compiled vars:  !0 = $rumus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN_OBJ                                       ~1      'r'
          1        OP_DATA                                                  !0
          2        ECHO                                                     ~1
   15     3      > RETURN                                                   null

End of function cetak

End of class cucu.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.5 ms | 1403 KiB | 13 Q