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[$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/vTiiB
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 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/vTiiB
function name:  derp
number of ops:  13
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                                                      ->9
          7    >   FETCH_DIM_R                                      ~8      !4, !3
          8        ECHO                                                     ~8
          9    >   COUNT                                            ~9      !4
         10        IS_SMALLER                                               !3, ~9
         11      > JMPNZ                                                    ~10, ->7
    4    12    > > RETURN                                                   null

End of function derp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.2 ms | 1390 KiB | 14 Q