3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = "ipod1"; $var2 = "ipod2"; $array1 = array( "device_token" => $var1, ); $array2 = array( "device_token" => $var2, ); class P { public static function _() { var_dump(func_get_args()); } public static function and_(){ $array = array("and" => func_get_args()); var_dump($array); } } call_user_func_array(array('P', 'and_'), array($array1,$array2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/44p3F
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, 'ipod1'
    3     1        ASSIGN                                                   !1, 'ipod2'
    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
   20     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/44p3F
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 _

Function and_:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/44p3F
function name:  and_
number of ops:  7
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   FUNC_GET_ARGS                                    ~1      
          1        INIT_ARRAY                                       ~2      ~1, 'and'
          2        ASSIGN                                                   !0, ~2
   17     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   18     6      > RETURN                                                   null

End of function and_

End of class P.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.46 ms | 1396 KiB | 15 Q