3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("AAA","AAA"); function abc($cc,&$aa,&$bb) { $arr = get_defined_vars(); unset($arr[cc]); print_r($arr); $aa = 2; $bb = 3; } abc(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOKq7
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'AAA'
          2        SEND_VAL                                                 'AAA'
          3        DO_ICALL                                                 
   14     4        INIT_FCALL                                               'abc'
          5        SEND_VAL                                                 1
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOKq7
function name:  abc
number of ops:  14
compiled vars:  !0 = $cc, !1 = $aa, !2 = $bb, !3 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    7     3        INIT_FCALL                                               'get_defined_vars'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !3, $4
    8     6        FETCH_CONSTANT                                   ~6      'cc'
          7        UNSET_DIM                                                !3, ~6
    9     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                                 
   11    11        ASSIGN                                                   !1, 2
   12    12        ASSIGN                                                   !2, 3
   13    13      > RETURN                                                   null

End of function abc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.67 ms | 1389 KiB | 20 Q