3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MakeMeCMS_Addon_Call { private $attribute; public function __construct() { $this->set(false); } public function set($arg) { $this->attribute($arg); } public function state() { return $this->attribute; } } function changeValue(MakeMeCMS_Addon_Call $call) { $call->set(true); return $call; } $object = new MakeMeCMS_Addon_Call; changeValue($object); echo($object->state());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L4KjY
function name:  (null)
number of ops:  10
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'MakeMeCMS_Addon_Call'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_FCALL                                               'changevalue'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0          
   20     6        INIT_METHOD_CALL                                         !0, 'state'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Function changevalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L4KjY
function name:  changeValue
number of ops:  6
compiled vars:  !0 = $call
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        INIT_METHOD_CALL                                         !0, 'set'
          2        SEND_VAL_EX                                              <true>
          3        DO_FCALL                                      0          
   16     4      > RETURN                                                   !0
   17     5*     > RETURN                                                   null

End of function changevalue

Class MakeMeCMS_Addon_Call:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L4KjY
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                         'set'
          1        SEND_VAL_EX                                              <false>
          2        DO_FCALL                                      0          
    6     3      > RETURN                                                   null

End of function __construct

Function set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L4KjY
function name:  set
number of ops:  5
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_METHOD_CALL                                         'attribute'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    9     4      > RETURN                                                   null

End of function set

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

End of function state

End of class MakeMeCMS_Addon_Call.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.11 ms | 1403 KiB | 14 Q