3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { var_dump(func_get_args()); } var_dump(call_user_func_array('f', new stdClass())); var_dump(call_user_func_array('f', 42)); var_dump(call_user_func_array('f', null)); var_dump(call_user_func_array('f', 3.14));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ces2F
function name:  (null)
number of ops:  31
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'f'
          2        NEW                                              $0      'stdClass'
          3        DO_FCALL                                      0          
          4        SEND_ARRAY                                               $0
          5        CHECK_UNDEF_ARGS                                         
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'f'
         11        SEND_ARRAY                                               42
         12        CHECK_UNDEF_ARGS                                         
         13        DO_FCALL                                      0  $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
   11    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'f'
         18        SEND_ARRAY                                               null
         19        CHECK_UNDEF_ARGS                                         
         20        DO_FCALL                                      0  $6      
         21        SEND_VAR                                                 $6
         22        DO_ICALL                                                 
   13    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'f'
         25        SEND_ARRAY                                               3.14
         26        CHECK_UNDEF_ARGS                                         
         27        DO_FCALL                                      0  $8      
         28        SEND_VAR                                                 $8
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ces2F
function name:  f
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    5     4      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.1 ms | 1398 KiB | 19 Q