3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getRndIV($iv_len){$iv = '';while($iv_len-- > 0){$iv.=chr(mt_rand() & 0xff);}return $iv;} var_dump(getRndIV(100));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/90SGn
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'getrndiv'
          2        SEND_VAL                                                 100
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function getrndiv:
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 = 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/90SGn
function name:  getRndIV
number of ops:  15
compiled vars:  !0 = $iv_len, !1 = $iv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        ASSIGN                                                   !1, ''
          2      > JMP                                                      ->10
          3    >   INIT_FCALL                                               'chr'
          4        INIT_FCALL                                               'mt_rand'
          5        DO_ICALL                                         $3      
          6        BW_AND                                           ~4      $3, 255
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN_OP                                     8          !1, $5
         10    >   POST_DEC                                         ~7      !0
         11        IS_SMALLER                                               0, ~7
         12      > JMPNZ                                                    ~8, ->3
         13    > > RETURN                                                   !1
         14*     > RETURN                                                   null

End of function getrndiv

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.46 ms | 1398 KiB | 20 Q