3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getMode() { $args = func_get_args(); print_r($args); } $snapshot = ['mode' => 'TESTE']; getMode($snapshot['mode']); getMode();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P9Jf6
function name:  (null)
number of ops:  8
compiled vars:  !0 = $snapshot
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'getmode'
          2        FETCH_DIM_R                                      ~2      !0, 'mode'
          3        SEND_VAL                                                 ~2
          4        DO_FCALL                                      0          
   10     5        INIT_FCALL                                               'getmode'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function getmode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P9Jf6
function name:  getMode
number of ops:  6
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FUNC_GET_ARGS                                    ~1      
          1        ASSIGN                                                   !0, ~1
    5     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5      > RETURN                                                   null

End of function getmode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.97 ms | 963 KiB | 16 Q