3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testClass{ protected $foo = 'beep'; public function __construct($foo) { $this->foo = $foo; $this->changeFoo(); } protected function changeFoo() { $this->foo = 'meep'; } public function echoFoo() { echo $this->foo; } } $test = new testClass('gleep'); $test->echoFoo;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/moIdh
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'testClass'
          1        SEND_VAL_EX                                              'gleep'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   20     4        FETCH_OBJ_R                                      ~4      !0, 'echoFoo'
          5        FREE                                                     ~4
          6      > RETURN                                                   1

Class testClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/moIdh
function name:  __construct
number of ops:  6
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               'foo'
          2        OP_DATA                                                  !0
    7     3        INIT_METHOD_CALL                                         'changeFoo'
          4        DO_FCALL                                      0          
    8     5      > RETURN                                                   null

End of function __construct

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

End of function changefoo

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

End of function echofoo

End of class testClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1386 KiB | 13 Q