3v4l.org

run code in 300+ PHP versions simultaneously
<?php $func = function($arg1, $arg2, $arg3) { return $arg1 + $arg2 + $arg3; }; $addendi = [200, 300]; var_dump(call_user_func_array($func, array(100, $addendi))); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lZZgR
function name:  (null)
number of ops:  13
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%2FlZZgR%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_ARRAY                                       ~5      100
          6        ADD_ARRAY_ELEMENT                                ~5      !1
          7        SEND_ARRAY                                               ~5
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      0  $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
    7    12      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.61 ms | 1395 KiB | 15 Q