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; } echo getRndIV('16');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LRoOK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'getrndiv'
          1        SEND_VAL                                                 '16'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > 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/LRoOK
function name:  getRndIV
number of ops:  15
compiled vars:  !0 = $iv_len, !1 = $iv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, ''
    4     2      > JMP                                                      ->10
    5     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
    4    10    >   POST_DEC                                         ~7      !0
         11        IS_SMALLER                                               0, ~7
         12      > JMPNZ                                                    ~8, ->3
    7    13    > > RETURN                                                   !1
    8    14*     > RETURN                                                   null

End of function getrndiv

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.58 ms | 1389 KiB | 18 Q