3v4l.org

run code in 300+ PHP versions simultaneously
<?php function lib_function($a1, $a2){ var_dump($a1, $a2); } function i_evaluate_my_arguments(){ $evaluated_args = array(); foreach(func_get_args() as $arg){ $evaluated_args[] = $arg(); } call_user_func_array('lib_function', $evaluated_args); } call_user_func_array( 'i_evaluate_my_arguments', array( function(){ return 'foo'; }, function(){ return 'baz'; } ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m1Oln
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'i_evaluate_my_arguments'
   19     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fm1Oln%3A19%240'
          2        INIT_ARRAY                                       ~1      ~0
   20     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fm1Oln%3A20%241'
          4        ADD_ARRAY_ELEMENT                                ~1      ~2
          5        SEND_ARRAY                                               ~1
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      0          
   22     8      > RETURN                                                   1

Function lib_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m1Oln
function name:  lib_function
number of ops:  7
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    5     6      > RETURN                                                   null

End of function lib_function

Function i_evaluate_my_arguments:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/m1Oln
function name:  i_evaluate_my_arguments
number of ops:  15
compiled vars:  !0 = $evaluated_args, !1 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        FUNC_GET_ARGS                                    ~3      
          2      > FE_RESET_R                                       $4      ~3, ->9
          3    > > FE_FETCH_R                                               $4, !1, ->9
   10     4    >   INIT_DYNAMIC_CALL                                        !1
          5        DO_FCALL                                      0  $6      
          6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  $6
    9     8      > JMP                                                      ->3
          9    >   FE_FREE                                                  $4
   13    10        INIT_FCALL                                               'lib_function'
         11        SEND_ARRAY                                               !0
         12        CHECK_UNDEF_ARGS                                         
         13        DO_FCALL                                      0          
   14    14      > RETURN                                                   null

End of function i_evaluate_my_arguments

Function %00%7Bclosure%7D%2Fin%2Fm1Oln%3A19%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m1Oln
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E > > RETURN                                                   'foo'
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fm1Oln%3A19%240

Function %00%7Bclosure%7D%2Fin%2Fm1Oln%3A20%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m1Oln
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E > > RETURN                                                   'baz'
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fm1Oln%3A20%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.88 ms | 1394 KiB | 17 Q