3v4l.org

run code in 300+ PHP versions simultaneously
<?php class induk{ protected $tinggi=6; protected $alas=20; public function SetTinggi(){ return ($this->tinggi/2); } } $cp2 =new induk(); echo $cp2 ->SetTinggi();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hdaI
function name:  (null)
number of ops:  7
compiled vars:  !0 = $cp2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'induk'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'SetTinggi'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

Class induk:
Function settinggi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hdaI
function name:  SetTinggi
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'tinggi'
          1        DIV                                              ~1      ~0, 2
          2      > RETURN                                                   ~1
    9     3*     > RETURN                                                   null

End of function settinggi

End of class induk.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.43 ms | 1393 KiB | 13 Q