3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(...$args) { return $args; } $a = range(1, 10000); for ($i = 0; $i < 1000; $i++) { foo(...$a); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/hqYAm
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10000
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    9     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->12
   10     7    >   INIT_FCALL                                               'foo'
          8        SEND_UNPACK                                              !0
          9        CHECK_UNDEF_ARGS                                         
         10        DO_FCALL                                      1          
    9    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 1000
         13      > JMPNZ                                                    ~7, ->7
   11    14    > > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hqYAm
function name:  foo
number of ops:  3
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_VARIADIC                                    !0      
    4     1      > RETURN                                                   !0
    5     2*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.53 ms | 1389 KiB | 16 Q