3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { count(func_get_args()); } } $instance = new Foo(); $args = range(1, 10); for ($i = 0; $i < 100000; ++$i) { $instance->bar($args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6], $args[7], $args[8], $args[9]); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 10
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 10
Branch analysis from position: 45
Branch analysis from position: 10
filename:       /in/uoLrL
function name:  (null)
number of ops:  46
compiled vars:  !0 = $instance, !1 = $args, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   10     3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 10
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
   12     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->43
   13    10    >   INIT_METHOD_CALL                                         !0, 'bar'
         11        CHECK_FUNC_ARG                                           
         12        FETCH_DIM_FUNC_ARG                               $9      !1, 0
         13        SEND_FUNC_ARG                                            $9
         14        CHECK_FUNC_ARG                                           
         15        FETCH_DIM_FUNC_ARG                               $10     !1, 1
         16        SEND_FUNC_ARG                                            $10
         17        CHECK_FUNC_ARG                                           
         18        FETCH_DIM_FUNC_ARG                               $11     !1, 2
         19        SEND_FUNC_ARG                                            $11
         20        CHECK_FUNC_ARG                                           
         21        FETCH_DIM_FUNC_ARG                               $12     !1, 3
         22        SEND_FUNC_ARG                                            $12
         23        CHECK_FUNC_ARG                                           
         24        FETCH_DIM_FUNC_ARG                               $13     !1, 4
         25        SEND_FUNC_ARG                                            $13
         26        CHECK_FUNC_ARG                                           
         27        FETCH_DIM_FUNC_ARG                               $14     !1, 5
         28        SEND_FUNC_ARG                                            $14
         29        CHECK_FUNC_ARG                                           
         30        FETCH_DIM_FUNC_ARG                               $15     !1, 6
         31        SEND_FUNC_ARG                                            $15
         32        CHECK_FUNC_ARG                                           
         33        FETCH_DIM_FUNC_ARG                               $16     !1, 7
         34        SEND_FUNC_ARG                                            $16
         35        CHECK_FUNC_ARG                                           
         36        FETCH_DIM_FUNC_ARG                               $17     !1, 8
         37        SEND_FUNC_ARG                                            $17
         38        CHECK_FUNC_ARG                                           
         39        FETCH_DIM_FUNC_ARG                               $18     !1, 9
         40        SEND_FUNC_ARG                                            $18
         41        DO_FCALL                                      0          
   12    42        PRE_INC                                                  !2
         43    >   IS_SMALLER                                               !2, 100000
         44      > JMPNZ                                                    ~21, ->10
   14    45    > > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uoLrL
function name:  bar
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FUNC_GET_ARGS                                    ~0      
          1        COUNT                                            ~1      ~0
          2        FREE                                                     ~1
    6     3      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.27 ms | 1400 KiB | 15 Q