3v4l.org

run code in 300+ PHP versions simultaneously
<?php class xyz{ public $abc = 0; public function ghi(){ $abc = 9; } } $o = new xyz(); $o->ghi(); echo $o->abc;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kG3fZ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'xyz'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_METHOD_CALL                                         !0, 'ghi'
          4        DO_FCALL                                      0          
   12     5        FETCH_OBJ_R                                      ~5      !0, 'abc'
          6        ECHO                                                     ~5
   13     7      > RETURN                                                   1

Class xyz:
Function ghi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kG3fZ
function name:  ghi
number of ops:  2
compiled vars:  !0 = $abc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 9
    7     1      > RETURN                                                   null

End of function ghi

End of class xyz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
309.9 ms | 996 KiB | 14 Q