3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PlayArea { public $property = 5; public function doSomething($value) { $value++; } public function testDoingSomething() { $this->doSomething($this->property); } } $tryIt = new PlayArea(); $tryIt->testDoingSomething(); echo $tryIt->property;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZIIp6
function name:  (null)
number of ops:  8
compiled vars:  !0 = $tryIt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'PlayArea'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_METHOD_CALL                                         !0, 'testDoingSomething'
          4        DO_FCALL                                      0          
   19     5        FETCH_OBJ_R                                      ~5      !0, 'property'
          6        ECHO                                                     ~5
          7      > RETURN                                                   1

Class PlayArea:
Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZIIp6
function name:  doSomething
number of ops:  3
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        PRE_INC                                                  !0
    9     2      > RETURN                                                   null

End of function dosomething

Function testdoingsomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZIIp6
function name:  testDoingSomething
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_METHOD_CALL                                         'doSomething'
          1        CHECK_FUNC_ARG                                           
          2        FETCH_OBJ_FUNC_ARG                               $0      'property'
          3        SEND_FUNC_ARG                                            $0
          4        DO_FCALL                                      0          
   14     5      > RETURN                                                   null

End of function testdoingsomething

End of class PlayArea.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.45 ms | 1394 KiB | 13 Q