3v4l.org

run code in 300+ PHP versions simultaneously
<?php $func = function($arg1, $arg2, $arg3) { return $arg1 + $arg2 + $arg3; }; $addendi = array(2, 4); $addendi = array_push($addendi,'1'); var_dump(call_user_func_array($func, $addendi)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S8YZR
function name:  (null)
number of ops:  16
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%2FS8YZR%3A2%240'
          1        ASSIGN                                                   !0, ~2
    5     2        ASSIGN                                                   !1, <array>
    6     3        INIT_FCALL                                               'array_push'
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 '1'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    7     8        INIT_FCALL                                               'var_dump'
          9        INIT_USER_CALL                                0          'call_user_func_array', !0
         10        SEND_ARRAY                                               !1
         11        CHECK_UNDEF_ARGS                                         
         12        DO_FCALL                                      0  $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
    8    15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FS8YZR%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S8YZR
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%2FS8YZR%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.57 ms | 1395 KiB | 17 Q