3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Abu { public $var = 123; public function f() { #$a = (array) $this; extract((array) $this, EXTR_REFS); $var += 1; echo $var .PHP_EOL; echo $this->var.PHP_EOL; #echo $a['var'].PHP_EOL; } } $obj = new Abu(); $obj->f();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sVVLD
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Abu'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'f'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Abu:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sVVLD
function name:  f
number of ops:  13
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'extract'
          1        FETCH_THIS                                       ~1      
          2        CAST                                          7  ~2      ~1
          3        SEND_VAL                                                 ~2
          4        SEND_VAL                                                 256
          5        DO_ICALL                                                 
   11     6        ASSIGN_OP                                     1          !0, 1
   12     7        CONCAT                                           ~5      !0, '%0A'
          8        ECHO                                                     ~5
   13     9        FETCH_OBJ_R                                      ~6      'var'
         10        CONCAT                                           ~7      ~6, '%0A'
         11        ECHO                                                     ~7
   15    12      > RETURN                                                   null

End of function f

End of class Abu.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.36 ms | 1386 KiB | 15 Q