3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callMe(...$args) {} function funcGetArgs°callUserFuncArray() { $args = func_get_args(); call_user_func_array('callMe', $args); } function funcGetArgs°threeDots() { $args = func_get_args(); callMe(...$args); } function threeDots°callUserFuncArray(...$args) { call_user_func_array('callMe', $args); } function threeDots°threeDots(...$args) { callMe(...$args); } foreach(array('funcGetArgs°callUserFuncArray', 'funcGetArgs°threeDots', 'threeDots°callUserFuncArray', 'threeDots°threeDots') as $fn) { $start = microtime(TRUE); for($i=0;$i<10000;$i++) { $fn(1,2,3,4,5); } echo $fn.': '.(microtime(TRUE)-$start)."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 27
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 27
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
Branch analysis from position: 8
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/Qdcbv
function name:  (null)
number of ops:  29
compiled vars:  !0 = $fn, !1 = $start, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E > > FE_RESET_R                                       $3      <array>, ->27
          1    > > FE_FETCH_R                                               $3, !0, ->27
   24     2    >   INIT_FCALL                                               'microtime'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   25     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->16
   26     8    >   INIT_DYNAMIC_CALL                                        !0
          9        SEND_VAL_EX                                              1
         10        SEND_VAL_EX                                              2
         11        SEND_VAL_EX                                              3
         12        SEND_VAL_EX                                              4
         13        SEND_VAL_EX                                              5
         14        DO_FCALL                                      0          
   25    15        PRE_INC                                                  !2
         16    >   IS_SMALLER                                               !2, 10000
         17      > JMPNZ                                                    ~9, ->8
   28    18    >   CONCAT                                           ~10     !0, '%3A+'
         19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $11     
         22        SUB                                              ~12     $11, !1
         23        CONCAT                                           ~13     ~10, ~12
         24        CONCAT                                           ~14     ~13, '%0A'
         25        ECHO                                                     ~14
   23    26      > JMP                                                      ->1
         27    >   FE_FREE                                                  $3
   29    28      > RETURN                                                   1

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

End of function callme

Function funcgetargs%C2%B0calluserfuncarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qdcbv
function name:  funcGetArgs°callUserFuncArray
number of ops:  7
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FUNC_GET_ARGS                                    ~1      
          1        ASSIGN                                                   !0, ~1
    7     2        INIT_FCALL                                               'callme'
          3        SEND_ARRAY                                               !0
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      0          
    8     6      > RETURN                                                   null

End of function funcgetargs%C2%B0calluserfuncarray

Function funcgetargs%C2%B0threedots:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qdcbv
function name:  funcGetArgs°threeDots
number of ops:  7
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FUNC_GET_ARGS                                    ~1      
          1        ASSIGN                                                   !0, ~1
   12     2        INIT_FCALL                                               'callme'
          3        SEND_UNPACK                                              !0
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      1          
   13     6      > RETURN                                                   null

End of function funcgetargs%C2%B0threedots

Function threedots%C2%B0calluserfuncarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qdcbv
function name:  threeDots°callUserFuncArray
number of ops:  6
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV_VARIADIC                                    !0      
   16     1        INIT_FCALL                                               'callme'
          2        SEND_ARRAY                                               !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      0          
   17     5      > RETURN                                                   null

End of function threedots%C2%B0calluserfuncarray

Function threedots%C2%B0threedots:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qdcbv
function name:  threeDots°threeDots
number of ops:  6
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV_VARIADIC                                    !0      
   20     1        INIT_FCALL                                               'callme'
          2        SEND_UNPACK                                              !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      1          
   21     5      > RETURN                                                   null

End of function threedots%C2%B0threedots

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.39 ms | 1394 KiB | 19 Q