3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doit() { for ($i = 1, $n = func_num_args(); $i < $n; ++$i) { var_dump(func_num_args($i)); } } doit(1,2,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mdLHn
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'doit'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 3
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function doit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
Branch analysis from position: 4
filename:       /in/mdLHn
function name:  doit
number of ops:  14
compiled vars:  !0 = $i, !1 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1        FUNC_NUM_ARGS                                    ~3      
          2        ASSIGN                                                   !1, ~3
          3      > JMP                                                      ->11
    4     4    >   INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'func_num_args'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                                 
    3    10        PRE_INC                                                  !0
         11    >   IS_SMALLER                                               !0, !1
         12      > JMPNZ                                                    ~8, ->4
    6    13    > > RETURN                                                   null

End of function doit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.96 ms | 1397 KiB | 18 Q