3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.54 ms | 1394 KiB | 17 Q