3v4l.org

run code in 300+ PHP versions simultaneously
<?php $func = function($arg1, $arg2, $arg3) { return $arg1 + $arg2 + $arg3; }; $addendi = array(2, 4); var_dump(call_user_func_array($func, array_push($addendi,'1'))); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ajI0b
function name:  (null)
number of ops:  15
compiled vars:  !0 = $func, !1 = $addendi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FajI0b%3A2%240'
          1        ASSIGN                                                   !0, ~2
    5     2        ASSIGN                                                   !1, <array>
    6     3        INIT_FCALL                                               'var_dump'
          4        INIT_USER_CALL                                0          'call_user_func_array', !0
          5        INIT_FCALL                                               'array_push'
          6        SEND_REF                                                 !1
          7        SEND_VAL                                                 '1'
          8        DO_ICALL                                         $5      
          9        SEND_ARRAY                                               $5
         10        CHECK_UNDEF_ARGS                                         
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
    7    14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FajI0b%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ajI0b
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $arg1, !1 = $arg2, !2 = $arg3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    3     3        ADD                                              ~3      !0, !1
          4        ADD                                              ~4      ~3, !2
          5      > RETURN                                                   ~4
    4     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FajI0b%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.04 ms | 1399 KiB | 17 Q