3v4l.org

run code in 300+ PHP versions simultaneously
<?php function derp($dont,$show,$these) { (count($args = func_get_args()) > 3) ? var_dump(array_slice($args, 3)) : var_dump('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/nI4aG
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     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 = 17
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nI4aG
function name:  derp
number of ops:  23
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                                           ~5      !3, ~4
          5        COUNT                                            ~6      ~5
          6        IS_SMALLER                                               3, ~6
          7      > JMPZ                                                     ~7, ->17
          8    >   INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'array_slice'
         10        SEND_VAR                                                 !3
         11        SEND_VAL                                                 3
         12        DO_ICALL                                         $8      
         13        SEND_VAR                                                 $8
         14        DO_ICALL                                         $9      
         15        QM_ASSIGN                                        ~10     $9
         16      > JMP                                                      ->21
         17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAL                                                 'no+args'
         19        DO_ICALL                                         $11     
         20        QM_ASSIGN                                        ~10     $11
         21    >   FREE                                                     ~10
    4    22      > RETURN                                                   null

End of function derp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.55 ms | 1390 KiB | 18 Q