3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clientFetch(?int $mode = NULL, ?int $cursorOrientation = NULL, ?int $cursorOffset = NULL) { print func_num_args(); print "\n"; } clientFetch(); clientFetch(1); clientFetch(1, 2); clientFetch(1, 2 ,3); clientFetch(1, 2 ,3, 4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q6JqP
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'clientfetch'
          1        DO_FCALL                                      0          
    9     2        INIT_FCALL                                               'clientfetch'
          3        SEND_VAL                                                 1
          4        DO_FCALL                                      0          
   10     5        INIT_FCALL                                               'clientfetch'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 2
          8        DO_FCALL                                      0          
   11     9        INIT_FCALL                                               'clientfetch'
         10        SEND_VAL                                                 1
         11        SEND_VAL                                                 2
         12        SEND_VAL                                                 3
         13        DO_FCALL                                      0          
   12    14        INIT_FCALL                                               'clientfetch'
         15        SEND_VAL                                                 1
         16        SEND_VAL                                                 2
         17        SEND_VAL                                                 3
         18        SEND_VAL                                                 4
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Function clientfetch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q6JqP
function name:  clientFetch
number of ops:  7
compiled vars:  !0 = $mode, !1 = $cursorOrientation, !2 = $cursorOffset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      null
    4     3        FUNC_NUM_ARGS                                    ~3      
          4        ECHO                                                     ~3
    5     5        ECHO                                                     '%0A'
    6     6      > RETURN                                                   null

End of function clientfetch

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.04 ms | 1012 KiB | 18 Q