3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { var_dump(func_get_arg()); } 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/CQ53T
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                                                 
   10     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                                                 
   12    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                                                 
   15    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/CQ53T
function name:  f
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'func_get_arg'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.99 ms | 1399 KiB | 21 Q