3v4l.org

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

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

End of function _

End of class P.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.66 ms | 1395 KiB | 15 Q