3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ivSize = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $iv = mcrypt_create_iv($ivSize, MCRYPT_DEV_URANDOM); echo $ivSize; echo $iv; echo strlen($iv);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2OS0d
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ivSize, !1 = $iv
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL_BY_NAME                                       'mcrypt_get_iv_size'
         1        FETCH_CONSTANT                                   ~2      'MCRYPT_RIJNDAEL_128'
         2        SEND_VAL_EX                                              ~2
         3        FETCH_CONSTANT                                   ~3      'MCRYPT_MODE_CBC'
         4        SEND_VAL_EX                                              ~3
         5        DO_FCALL                                      0  $4      
         6        ASSIGN                                                   !0, $4
   4     7        INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
         8        SEND_VAR_EX                                              !0
         9        FETCH_CONSTANT                                   ~6      'MCRYPT_DEV_URANDOM'
        10        SEND_VAL_EX                                              ~6
        11        DO_FCALL                                      0  $7      
        12        ASSIGN                                                   !1, $7
   5    13        ECHO                                                     !0
   6    14        ECHO                                                     !1
   7    15        STRLEN                                           ~9      !1
        16        ECHO                                                     ~9
        17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0