3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 10; $bytes = mcrypt_create_iv($length, MCRYPT_DEV_URANDOM); var_dump($bytes, bin2hex($bytes));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ia8vK
function name:  (null)
number of ops:  15
compiled vars:  !0 = $length, !1 = $bytes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1        INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
          2        SEND_VAR_EX                                              !0
          3        FETCH_CONSTANT                                   ~3      'MCRYPT_DEV_URANDOM'
          4        SEND_VAL_EX                                              ~3
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !1, $4
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        INIT_FCALL                                               'bin2hex'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.48 ms | 1394 KiB | 17 Q