3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $priv = 'hello'; public function fakt(A $a) { return $a->priv; } } $a = new A; $aa = new A; echo $a->fakt($aa);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/to77e
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $aa
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
   15     6        INIT_METHOD_CALL                                         !0, 'fakt'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $8      
          9        ECHO                                                     $8
         10      > RETURN                                                   1

Class A:
Function fakt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/to77e
function name:  fakt
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        FETCH_OBJ_R                                      ~1      !0, 'priv'
          2      > RETURN                                                   ~1
    9     3*     > RETURN                                                   null

End of function fakt

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.27 ms | 1393 KiB | 13 Q