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); $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 = 62) Position 1 = -2
filename:       /in/cmnDu
function name:  (null)
number of ops:  41
compiled vars:  !0 = $instance, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 10
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
   12     8        INIT_METHOD_CALL                                         !0, 'bar'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_DIM_FUNC_ARG                               $7      !1, 0
         11        SEND_FUNC_ARG                                            $7
         12        CHECK_FUNC_ARG                                           
         13        FETCH_DIM_FUNC_ARG                               $8      !1, 1
         14        SEND_FUNC_ARG                                            $8
         15        CHECK_FUNC_ARG                                           
         16        FETCH_DIM_FUNC_ARG                               $9      !1, 2
         17        SEND_FUNC_ARG                                            $9
         18        CHECK_FUNC_ARG                                           
         19        FETCH_DIM_FUNC_ARG                               $10     !1, 3
         20        SEND_FUNC_ARG                                            $10
         21        CHECK_FUNC_ARG                                           
         22        FETCH_DIM_FUNC_ARG                               $11     !1, 4
         23        SEND_FUNC_ARG                                            $11
         24        CHECK_FUNC_ARG                                           
         25        FETCH_DIM_FUNC_ARG                               $12     !1, 5
         26        SEND_FUNC_ARG                                            $12
         27        CHECK_FUNC_ARG                                           
         28        FETCH_DIM_FUNC_ARG                               $13     !1, 6
         29        SEND_FUNC_ARG                                            $13
         30        CHECK_FUNC_ARG                                           
         31        FETCH_DIM_FUNC_ARG                               $14     !1, 7
         32        SEND_FUNC_ARG                                            $14
         33        CHECK_FUNC_ARG                                           
         34        FETCH_DIM_FUNC_ARG                               $15     !1, 8
         35        SEND_FUNC_ARG                                            $15
         36        CHECK_FUNC_ARG                                           
         37        FETCH_DIM_FUNC_ARG                               $16     !1, 9
         38        SEND_FUNC_ARG                                            $16
         39        DO_FCALL                                      0          
         40      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cmnDu
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:
156.43 ms | 1392 KiB | 15 Q