3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CP2 { protected $alas; protected $miring; public function set($a,$b) { $this->alas = $a; $this->miring = $b; echo "Alas: ".$this->alas.'.'."Miring: ".$this->miring.'.'; } } class subCP2 extends CP2 { protected $tinggi; protected function tinggi() { $this->tinggi=(pow($this->miring,2)-pow($this->alas,2)); echo "Tinggi Segitiga: ".$this->tinggi; } public function runTinggi() { echo $this->tinggi(); } } $run = new CP2(); $run = new subCP2(); $run->set(2,6); $run->runTinggi(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4hYH
function name:  (null)
number of ops:  13
compiled vars:  !0 = $run
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   NEW                                              $1      'CP2'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   30     3        NEW                                              $4      'subCP2'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $4
   31     6        INIT_METHOD_CALL                                         !0, 'set'
          7        SEND_VAL_EX                                              2
          8        SEND_VAL_EX                                              6
          9        DO_FCALL                                      0          
   32    10        INIT_METHOD_CALL                                         !0, 'runTinggi'
         11        DO_FCALL                                      0          
   33    12      > RETURN                                                   1

Class CP2:
Function set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4hYH
function name:  set
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        ASSIGN_OBJ                                               'alas'
          3        OP_DATA                                                  !0
    9     4        ASSIGN_OBJ                                               'miring'
          5        OP_DATA                                                  !1
   10     6        FETCH_OBJ_R                                      ~4      'alas'
          7        CONCAT                                           ~5      'Alas%3A+', ~4
          8        CONCAT                                           ~6      ~5, '.'
          9        CONCAT                                           ~7      ~6, 'Miring%3A+'
         10        FETCH_OBJ_R                                      ~8      'miring'
         11        CONCAT                                           ~9      ~7, ~8
         12        CONCAT                                           ~10     ~9, '.'
         13        ECHO                                                     ~10
   11    14      > RETURN                                                   null

End of function set

End of class CP2.

Class subCP2:
Function tinggi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4hYH
function name:  tinggi
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'pow'
          1        FETCH_OBJ_R                                      ~1      'miring'
          2        SEND_VAL                                                 ~1
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $2      
          5        INIT_FCALL                                               'pow'
          6        FETCH_OBJ_R                                      ~3      'alas'
          7        SEND_VAL                                                 ~3
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $4      
         10        SUB                                              ~5      $2, $4
         11        ASSIGN_OBJ                                               'tinggi'
         12        OP_DATA                                                  ~5
   20    13        FETCH_OBJ_R                                      ~6      'tinggi'
         14        CONCAT                                           ~7      'Tinggi+Segitiga%3A+', ~6
         15        ECHO                                                     ~7
   21    16      > RETURN                                                   null

End of function tinggi

Function runtinggi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4hYH
function name:  runTinggi
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_METHOD_CALL                                         'tinggi'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   25     3      > RETURN                                                   null

End of function runtinggi

Function set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4hYH
function name:  set
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        ASSIGN_OBJ                                               'alas'
          3        OP_DATA                                                  !0
    9     4        ASSIGN_OBJ                                               'miring'
          5        OP_DATA                                                  !1
   10     6        FETCH_OBJ_R                                      ~4      'alas'
          7        CONCAT                                           ~5      'Alas%3A+', ~4
          8        CONCAT                                           ~6      ~5, '.'
          9        CONCAT                                           ~7      ~6, 'Miring%3A+'
         10        FETCH_OBJ_R                                      ~8      'miring'
         11        CONCAT                                           ~9      ~7, ~8
         12        CONCAT                                           ~10     ~9, '.'
         13        ECHO                                                     ~10
   11    14      > RETURN                                                   null

End of function set

End of class subCP2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.03 ms | 1400 KiB | 15 Q