3v4l.org

run code in 300+ PHP versions simultaneously
<?php class induk { protected $alas=10; protected $miring=8; public function setAlas() { return ($this->alas/2); } public function setMiring() { return ($this->miring/2); } } $CP2 = new induk(); echo CP2->setAlas(); echo PHP_EOL; echo CP2->setMiring(); echo PHP_EOL ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5PZCp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $CP2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'induk'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        FETCH_CONSTANT                                   ~4      'CP2'
          4        INIT_METHOD_CALL                                         ~4, 'setAlas'
          5        DO_FCALL                                      0  $5      
          6        ECHO                                                     $5
   20     7        ECHO                                                     '%0A'
   21     8        FETCH_CONSTANT                                   ~6      'CP2'
          9        INIT_METHOD_CALL                                         ~6, 'setMiring'
         10        DO_FCALL                                      0  $7      
         11        ECHO                                                     $7
   22    12        ECHO                                                     '%0A'
   24    13      > RETURN                                                   1

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

End of function setalas

Function setmiring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5PZCp
function name:  setMiring
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_OBJ_R                                      ~0      'miring'
          1        DIV                                              ~1      ~0, 2
          2      > RETURN                                                   ~1
   14     3*     > RETURN                                                   null

End of function setmiring

End of class induk.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.87 ms | 1394 KiB | 13 Q