3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("AAA","AAA"); function abc($aa,$bb) { $arr = get_defined_vars(); print_r($arr); } abc(1,arr(2,3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5rvCa
function name:  (null)
number of ops:  13
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                                                 
   11     4        INIT_FCALL                                               'abc'
          5        SEND_VAL                                                 1
          6        INIT_FCALL_BY_NAME                                       'arr'
          7        SEND_VAL_EX                                              2
          8        SEND_VAL_EX                                              3
          9        DO_FCALL                                      0  $1      
         10        SEND_VAR                                                 $1
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

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

End of function abc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.56 ms | 1398 KiB | 20 Q