3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class MyClass{ private $prop1; private $prop2; public function __construct(){ } public function set_prop2($prop2) { $this->prop2= $prop2; // value coming from other class that returns array object } public function func1() { $var1 = ''; $var2 = $this->prop1; $var3 = $this->prop2; } } $obj1 = new MyClass(); $obj1->func1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/abhZY
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_METHOD_CALL                                         !0, 'func1'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class MyClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/abhZY
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   null

End of function __construct

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

End of function set_prop2

Function func1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/abhZY
function name:  func1
number of ops:  6
compiled vars:  !0 = $var1, !1 = $var2, !2 = $var3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                   !0, ''
   18     1        FETCH_OBJ_R                                      ~4      'prop1'
          2        ASSIGN                                                   !1, ~4
   19     3        FETCH_OBJ_R                                      ~6      'prop2'
          4        ASSIGN                                                   !2, ~6
   20     5      > RETURN                                                   null

End of function func1

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.48 ms | 1394 KiB | 13 Q