3v4l.org

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.37 ms | 1395 KiB | 15 Q