3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar = 10; public function baz() { extract((array) $this); $bar++; } } $f = new foo; $f->baz(); var_dump($f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VT2Vd
function name:  (null)
number of ops:  9
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_METHOD_CALL                                         !0, 'baz'
          4        DO_FCALL                                      0          
   13     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Foo:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VT2Vd
function name:  baz
number of ops:  7
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'extract'
          1        FETCH_THIS                                       ~1      
          2        CAST                                          7  ~2      ~1
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    7     5        PRE_INC                                                  !0
    8     6      > RETURN                                                   null

End of function baz

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.5 ms | 1395 KiB | 17 Q