3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $foo = 'foo'; public function doSomething($otherObject) { var_dump($otherObject->foo); } } $a1 = new A; $a2 = new A; $a1->doSomething($a2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E4CXC
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        NEW                                              $5      'A'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   14     6        INIT_METHOD_CALL                                         !0, 'doSomething'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class A:
Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E4CXC
function name:  doSomething
number of ops:  6
compiled vars:  !0 = $otherObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'var_dump'
          2        FETCH_OBJ_R                                      ~1      !0, 'foo'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
   10     5      > RETURN                                                   null

End of function dosomething

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.8 ms | 1395 KiB | 15 Q