3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = "hey"; $var2 = "you"; $array = array( "device_token" => $var1, "device_toke" => $var2, ); class P { public static function _() { var_dump(func_get_args()); } } call_user_func_array(array('P', '_'), $array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hrZsc
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var1, !1 = $var2, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hey'
    3     1        ASSIGN                                                   !1, 'you'
    5     2        INIT_ARRAY                                       ~5      !0, 'device_token'
    6     3        ADD_ARRAY_ELEMENT                                ~5      !1, 'device_toke'
    4     4        ASSIGN                                                   !2, ~5
   13     5        INIT_USER_CALL                                0          'call_user_func_array', <array>
          6        SEND_ARRAY                                               !2
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class P:
Function _:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hrZsc
function name:  _
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   11     4      > RETURN                                                   null

End of function _

End of class P.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1395 KiB | 15 Q