3v4l.org

run code in 300+ PHP versions simultaneously
<?php function itemsasd(){ $args = array(); echo "Number of arguments: " . func_num_args() . "<br />"; for($i = 0 ; $i < func_num_args(); $i++) { echo "Argument $i = " . func_get_arg($i) . "<br />"; $args[i] = func_get_arg($i); } foreach($args as $arg){ echo $arg; } } itemsasd(1,2,3); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iasnq
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'itemsasd'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 3
          4        DO_FCALL                                      0          
   20     5      > RETURN                                                   1

Function itemsasd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
Branch analysis from position: 7
filename:       /in/iasnq
function name:  itemsasd
number of ops:  32
compiled vars:  !0 = $args, !1 = $i, !2 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        FUNC_NUM_ARGS                                    ~4      
          2        CONCAT                                           ~5      'Number+of+arguments%3A+', ~4
          3        CONCAT                                           ~6      ~5, '%3Cbr+%2F%3E'
          4        ECHO                                                     ~6
    7     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->23
    8     7    >   ROPE_INIT                                     3  ~9      'Argument+'
          8        ROPE_ADD                                      1  ~9      ~9, !1
          9        ROPE_END                                      2  ~8      ~9, '+%3D+'
         10        INIT_FCALL                                               'func_get_arg'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $11     
         13        CONCAT                                           ~12     ~8, $11
         14        CONCAT                                           ~13     ~12, '%3Cbr+%2F%3E'
         15        ECHO                                                     ~13
    9    16        FETCH_CONSTANT                                   ~14     'i'
         17        INIT_FCALL                                               'func_get_arg'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $16     
         20        ASSIGN_DIM                                               !0, ~14
         21        OP_DATA                                                  $16
    7    22        PRE_INC                                                  !1
         23    >   FUNC_NUM_ARGS                                    ~18     
         24        IS_SMALLER                                               !1, ~18
         25      > JMPNZ                                                    ~19, ->7
   12    26    > > FE_RESET_R                                       $20     !0, ->30
         27    > > FE_FETCH_R                                               $20, !2, ->30
   13    28    >   ECHO                                                     !2
   12    29      > JMP                                                      ->27
         30    >   FE_FREE                                                  $20
   15    31      > RETURN                                                   null

End of function itemsasd

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.31 ms | 1403 KiB | 16 Q