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); foreach ($longs as $long) { var_dump($long / 0xffff); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/NSKJ3
function name:  (null)
number of ops:  26
compiled vars:  !0 = $length, !1 = $bytes, !2 = $longs, !3 = $long
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                                              ~5      !0, 2
          3        SEND_VAL_EX                                              ~5
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !1, $6
    5     6        INIT_FCALL                                               'unpack'
          7        SEND_VAL                                                 'S%2A'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    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                                                 
   10    17      > FE_RESET_R                                       $12     !2, ->24
         18    > > FE_FETCH_R                                               $12, !3, ->24
   11    19    >   INIT_FCALL                                               'var_dump'
         20        DIV                                              ~13     !3, 65535
         21        SEND_VAL                                                 ~13
         22        DO_ICALL                                                 
   10    23      > JMP                                                      ->18
         24    >   FE_FREE                                                  $12
   12    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.99 ms | 1395 KiB | 17 Q