3v4l.org

run code in 300+ PHP versions simultaneously
<? class Volume { public function getV() { return $this->a * $this->b * $this->c; } public function __set($name, $value) { $this->c = $value; } public function __get($name) { return $this->c; } } $Square = new Volume(); $Square->a = 10; $Square->b = 5; $Square->c = 1; echo $Square->getV();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mo2Zo
function name:  (null)
number of ops:  13
compiled vars:  !0 = $Square
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'Volume'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        ASSIGN_OBJ                                               !0, 'a'
          4        OP_DATA                                                  10
   22     5        ASSIGN_OBJ                                               !0, 'b'
          6        OP_DATA                                                  5
   23     7        ASSIGN_OBJ                                               !0, 'c'
          8        OP_DATA                                                  1
   24     9        INIT_METHOD_CALL                                         !0, 'getV'
         10        DO_FCALL                                      0  $7      
         11        ECHO                                                     $7
         12      > RETURN                                                   1

Class Volume:
Function getv:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mo2Zo
function name:  getV
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                      ~0      'a'
          1        FETCH_OBJ_R                                      ~1      'b'
          2        MUL                                              ~2      ~0, ~1
          3        FETCH_OBJ_R                                      ~3      'c'
          4        MUL                                              ~4      ~2, ~3
          5      > RETURN                                                   ~4
    7     6*     > RETURN                                                   null

End of function getv

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mo2Zo
function name:  __set
number of ops:  5
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        ASSIGN_OBJ                                               'c'
          3        OP_DATA                                                  !1
   12     4      > RETURN                                                   null

End of function __set

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mo2Zo
function name:  __get
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   16     1        FETCH_OBJ_R                                      ~1      'c'
          2      > RETURN                                                   ~1
   17     3*     > RETURN                                                   null

End of function __get

End of class Volume.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.27 ms | 1399 KiB | 13 Q