3v4l.org

run code in 300+ PHP versions simultaneously
<?php function derp($dont,$show,$these) { for($i=2,$d=func_get_args();$i<count($d);print($d)); } derp('dont','show','these','show','these');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ThHsQ
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
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 7
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 7
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/ThHsQ
function name:  derp
number of ops:  12
compiled vars:  !0 = $dont, !1 = $show, !2 = $these, !3 = $i, !4 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    3     3        ASSIGN                                                   !3, 2
          4        FUNC_GET_ARGS                                    ~6      
          5        ASSIGN                                                   !4, ~6
          6      > JMP                                                      ->8
          7    >   ECHO                                                     !4
          8    >   COUNT                                            ~8      !4
          9        IS_SMALLER                                               !3, ~8
         10      > JMPNZ                                                    ~9, ->7
    4    11    > > RETURN                                                   null

End of function derp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.98 ms | 1389 KiB | 14 Q