3v4l.org

run code in 300+ PHP versions simultaneously
<?php function derp($dont,$show,$these) { for($i=3,$d=func_get_args();$i<count($d);print($d[$i++])){} } derp(dont,show,these,show,these);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/73o4B
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'derp'
          1        FETCH_CONSTANT                                   ~0      'dont'
          2        SEND_VAL                                                 ~0
          3        FETCH_CONSTANT                                   ~1      'show'
          4        SEND_VAL                                                 ~1
          5        FETCH_CONSTANT                                   ~2      'these'
          6        SEND_VAL                                                 ~2
          7        FETCH_CONSTANT                                   ~3      'show'
          8        SEND_VAL                                                 ~3
          9        FETCH_CONSTANT                                   ~4      'these'
         10        SEND_VAL                                                 ~4
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function derp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/73o4B
function name:  derp
number of ops:  14
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, 3
          4        FUNC_GET_ARGS                                    ~6      
          5        ASSIGN                                                   !4, ~6
          6      > JMP                                                      ->10
          7    >   POST_INC                                         ~8      !3
          8        FETCH_DIM_R                                      ~9      !4, ~8
          9        ECHO                                                     ~9
         10    >   COUNT                                            ~10     !4
         11        IS_SMALLER                                               !3, ~10
         12      > JMPNZ                                                    ~11, ->7
    4    13    > > RETURN                                                   null

End of function derp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.33 ms | 1399 KiB | 14 Q