3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randomData = mcrypt_create_iv(20, MCRYPT_DEV_URANDOM); if ($randomData !== false && strlen($randomData) === 20) { echo bin2hex($randomData); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 11
filename:       /in/dh4km
function name:  (null)
number of ops:  17
compiled vars:  !0 = $randomData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
          1        SEND_VAL_EX                                              20
          2        FETCH_CONSTANT                                   ~1      'MCRYPT_DEV_URANDOM'
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
    4     6        TYPE_CHECK                                  1018  ~4      !0
          7      > JMPZ_EX                                          ~4      ~4, ->11
          8    >   STRLEN                                           ~5      !0
          9        IS_IDENTICAL                                     ~6      ~5, 20
         10        BOOL                                             ~4      ~6
         11    > > JMPZ                                                     ~4, ->16
    5    12    >   INIT_FCALL                                               'bin2hex'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ECHO                                                     $7
    6    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.28 ms | 1395 KiB | 15 Q