3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $var = 1; public function test () { extract($this, EXTR_REFS); var_dump(get_defined_vars()); $var = 2; } } var_dump(new test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8HSeX
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'test'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8HSeX
function name:  test
number of ops:  12
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'extract'
          1        FETCH_THIS                                       $1      
          2        SEND_REF                                                 $1
          3        SEND_VAL                                                 256
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'get_defined_vars'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    8    10        ASSIGN                                                   !0, 2
    9    11      > RETURN                                                   null

End of function test

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.65 ms | 1395 KiB | 19 Q