3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { count(func_get_args()); } } $instance = new Foo(); for ($i = 0; $i < 1000; ++$i) { call_user_func_array(array($instance, 'bar'), range(1, 10)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
filename:       /in/bFZhS
function name:  (null)
number of ops:  19
compiled vars:  !0 = $instance, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->16
   12     5    >   INIT_ARRAY                                       ~6      !0
          6        ADD_ARRAY_ELEMENT                                ~6      'bar'
          7        INIT_USER_CALL                                0          'call_user_func_array', ~6
          8        INIT_FCALL                                               'range'
          9        SEND_VAL                                                 1
         10        SEND_VAL                                                 10
         11        DO_ICALL                                         $7      
         12        SEND_ARRAY                                               $7
         13        CHECK_UNDEF_ARGS                                         
         14        DO_FCALL                                      0          
   11    15        PRE_INC                                                  !1
         16    >   IS_SMALLER                                               !1, 1000
         17      > JMPNZ                                                    ~10, ->5
   13    18    > > RETURN                                                   1

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