3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test() { $a = 1; $$a = 2; var_dump(get_defined_vars()); } test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z1YPI
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                                   'test'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
220.5 ms | 2020 KiB | 16 Q