3v4l.org

run code in 300+ PHP versions simultaneously
<?php class segi { protected $P=12; protected $L=10; private $T=8; protected static $pesan; private function hitung_volume_balok($v) { return $this->P=$panjang; return $this->L=$lebar; $this->T=$tinggi; echo $v = $panjang*$lebar*$tinggi; } public function cetak() { echo $this->v=$volume; } public function cetak_pesan($print) { echo $this->pesan=$pesan; } } class luas extends segi { private $t; } class keliling extends luas { } $hitung = new segi(); echo $this->t=12; echo $this->l=10; echo $this->t=8; echo $this->v=P*L*T; echo PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uETCt
function name:  (null)
number of ops:  26
compiled vars:  !0 = $hitung
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   NEW                                              $1      'segi'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   34     3        FETCH_THIS                                       $4      
          4        ASSIGN_OBJ                                       ~5      $4, 't'
          5        OP_DATA                                                  12
          6        ECHO                                                     ~5
   35     7        FETCH_THIS                                       $6      
          8        ASSIGN_OBJ                                       ~7      $6, 'l'
          9        OP_DATA                                                  10
         10        ECHO                                                     ~7
   36    11        FETCH_THIS                                       $8      
         12        ASSIGN_OBJ                                       ~9      $8, 't'
         13        OP_DATA                                                  8
         14        ECHO                                                     ~9
   37    15        FETCH_THIS                                       $10     
         16        FETCH_CONSTANT                                   ~12     'P'
         17        FETCH_CONSTANT                                   ~13     'L'
         18        MUL                                              ~14     ~12, ~13
         19        FETCH_CONSTANT                                   ~15     'T'
         20        MUL                                              ~16     ~14, ~15
         21        ASSIGN_OBJ                                       ~11     $10, 'v'
         22        OP_DATA                                                  ~16
         23        ECHO                                                     ~11
   38    24        ECHO                                                     '%0A'
   39    25      > RETURN                                                   1

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

End of function hitung_volume_balok

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

End of function cetak

Function cetak_pesan:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uETCt
function name:  cetak_pesan
number of ops:  5
compiled vars:  !0 = $print, !1 = $pesan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        ASSIGN_OBJ                                       ~2      'pesan'
          2        OP_DATA                                                  !1
          3        ECHO                                                     ~2
   22     4      > RETURN                                                   null

End of function cetak_pesan

End of class segi.

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

End of function hitung_volume_balok

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

End of function cetak

Function cetak_pesan:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uETCt
function name:  cetak_pesan
number of ops:  5
compiled vars:  !0 = $print, !1 = $pesan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        ASSIGN_OBJ                                       ~2      'pesan'
          2        OP_DATA                                                  !1
          3        ECHO                                                     ~2
   22     4      > RETURN                                                   null

End of function cetak_pesan

End of class luas.

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

End of function hitung_volume_balok

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

End of function cetak

Function cetak_pesan:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uETCt
function name:  cetak_pesan
number of ops:  5
compiled vars:  !0 = $print, !1 = $pesan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        ASSIGN_OBJ                                       ~2      'pesan'
          2        OP_DATA                                                  !1
          3        ECHO                                                     ~2
   22     4      > RETURN                                                   null

End of function cetak_pesan

End of class keliling.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.62 ms | 1403 KiB | 13 Q