3v4l.org

run code in 300+ PHP versions simultaneously
<?php function derp($dont,$show,$these) { $args = func_get_args(); if (count($args) > 3) { $args = array_slice($args,3); print_R($args); } echo "no args"; } derp('dont','show','these','show','these');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qPWlD
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'derp'
          1        SEND_VAL                                                 'dont'
          2        SEND_VAL                                                 'show'
          3        SEND_VAL                                                 'these'
          4        SEND_VAL                                                 'show'
          5        SEND_VAL                                                 'these'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function derp:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/qPWlD
function name:  derp
number of ops:  18
compiled vars:  !0 = $dont, !1 = $show, !2 = $these, !3 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    3     3        FUNC_GET_ARGS                                    ~4      
          4        ASSIGN                                                   !3, ~4
    4     5        COUNT                                            ~6      !3
          6        IS_SMALLER                                               3, ~6
          7      > JMPZ                                                     ~7, ->16
    5     8    >   INIT_FCALL                                               'array_slice'
          9        SEND_VAR                                                 !3
         10        SEND_VAL                                                 3
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
    6    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
    8    16    >   ECHO                                                     'no+args'
   10    17      > RETURN                                                   null

End of function derp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.33 ms | 1398 KiB | 18 Q