3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Statystyka { private $stat_ope; public function getStatOpe() { return $this->stat_ope; } public function setStatOpe($stat_ope) { $this->stat_ope = $stat_ope; } } class Rownanie { private $operator; public function changeValueOperator(Statystyka $statystyka) { $this->operator++; $statystyka->setStatOpe($statystyka->getStatOpe() + 1); return $this; } public function getOperator() { return $this->operator; } } $ob = new Rownanie(); $sta = new Statystyka(); echo $ob->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $sta->getStatOpe();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQvM4
function name:  (null)
number of ops:  49
compiled vars:  !0 = $ob, !1 = $sta
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   43     0  E >   NEW                                                  $2      'Rownanie'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
   44     3        NEW                                                  $5      'Statystyka'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !1, $5
   45     6        INIT_METHOD_CALL                                             !0, 'getOperator'
          7        DO_FCALL                                          0  $8      
          8        ECHO                                                         $8
   46     9        INIT_METHOD_CALL                                             !0, 'changeValueOperator'
         10        SEND_VAR_EX                                                  !1
         11        DO_FCALL                                          0  $9      
         12        INIT_METHOD_CALL                                             $9, 'getOperator'
         13        DO_FCALL                                          0  $10     
         14        ECHO                                                         $10
   47    15        INIT_METHOD_CALL                                             !0, 'changeValueOperator'
         16        SEND_VAR_EX                                                  !1
         17        DO_FCALL                                          0  $11     
         18        INIT_METHOD_CALL                                             $11, 'getOperator'
         19        DO_FCALL                                          0  $12     
         20        ECHO                                                         $12
   48    21        INIT_METHOD_CALL                                             !0, 'changeValueOperator'
         22        SEND_VAR_EX                                                  !1
         23        DO_FCALL                                          0  $13     
         24        INIT_METHOD_CALL                                             $13, 'getOperator'
         25        DO_FCALL                                          0  $14     
         26        ECHO                                                         $14
   49    27        INIT_METHOD_CALL                                             !0, 'changeValueOperator'
         28        SEND_VAR_EX                                                  !1
         29        DO_FCALL                                          0  $15     
         30        INIT_METHOD_CALL                                             $15, 'getOperator'
         31        DO_FCALL                                          0  $16     
         32        ECHO                                                         $16
   50    33        INIT_METHOD_CALL                                             !0, 'changeValueOperator'
         34        SEND_VAR_EX                                                  !1
         35        DO_FCALL                                          0  $17     
         36        INIT_METHOD_CALL                                             $17, 'getOperator'
         37        DO_FCALL                                          0  $18     
         38        ECHO                                                         $18
   51    39        INIT_METHOD_CALL                                             !0, 'changeValueOperator'
         40        SEND_VAR_EX                                                  !1
         41        DO_FCALL                                          0  $19     
         42        INIT_METHOD_CALL                                             $19, 'getOperator'
         43        DO_FCALL                                          0  $20     
         44        ECHO                                                         $20
   53    45        INIT_METHOD_CALL                                             !1, 'getStatOpe'
         46        DO_FCALL                                          0  $21     
         47        ECHO                                                         $21
         48      > RETURN                                                       1

Class Statystyka:
Function getstatope:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQvM4
function name:  getStatOpe
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                          ~0      'stat_ope'
          1      > RETURN                                                       ~0
   10     2*     > RETURN                                                       null

End of function getstatope

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

End of function setstatope

End of class Statystyka.

Class Rownanie:
Function changevalueoperator:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQvM4
function name:  changeValueOperator
number of ops:  11
compiled vars:  !0 = $statystyka
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   22     0  E >   RECV                                                 !0      
   24     1        PRE_INC_OBJ                                                  'operator'
   25     2        INIT_METHOD_CALL                                             !0, 'setStatOpe'
          3        INIT_METHOD_CALL                                             !0, 'getStatOpe'
          4        DO_FCALL                                          0  $2      
          5        ADD                                                  ~3      $2, 1
          6        SEND_VAL_EX                                                  ~3
          7        DO_FCALL                                          0          
   27     8        FETCH_THIS                                           ~5      
          9      > RETURN                                                       ~5
   30    10*     > RETURN                                                       null

End of function changevalueoperator

Function getoperator:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQvM4
function name:  getOperator
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   37     0  E >   FETCH_OBJ_R                                          ~0      'operator'
          1      > RETURN                                                       ~0
   38     2*     > RETURN                                                       null

End of function getoperator

End of class Rownanie.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
222.25 ms | 2229 KiB | 13 Q