3v4l.org

run code in 300+ PHP versions simultaneously
<?php $success = ""; $size = 32; $token = ""; $seed = (int)bin2hex(openssl_random_pseudo_bytes($size / 2)); srand($seed); for($i = 0; $i < 16; $i++) { $randomDigit = (string)rand() % 10; $token .= "," . $randomDigit; } $token = str_replace(",", "", $token); echo $token; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 17
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 17
Branch analysis from position: 27
Branch analysis from position: 17
filename:       /in/jf6kn
function name:  (null)
number of ops:  35
compiled vars:  !0 = $success, !1 = $size, !2 = $token, !3 = $seed, !4 = $i, !5 = $randomDigit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        ASSIGN                                                   !1, 32
    4     2        ASSIGN                                                   !2, ''
    5     3        INIT_FCALL                                               'bin2hex'
          4        INIT_FCALL_BY_NAME                                       'openssl_random_pseudo_bytes'
          5        DIV                                              ~9      !1, 2
          6        SEND_VAL_EX                                              ~9
          7        DO_FCALL                                      0  $10     
          8        SEND_VAR                                                 $10
          9        DO_ICALL                                         $11     
         10        CAST                                          4  ~12     $11
         11        ASSIGN                                                   !3, ~12
    6    12        INIT_FCALL                                               'srand'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
    8    15        ASSIGN                                                   !4, 0
         16      > JMP                                                      ->25
    9    17    >   INIT_FCALL                                               'rand'
         18        DO_ICALL                                         $16     
         19        CAST                                          6  ~17     $16
         20        MOD                                              ~18     ~17, 10
         21        ASSIGN                                                   !5, ~18
   10    22        CONCAT                                           ~20     '%2C', !5
         23        ASSIGN_OP                                     8          !2, ~20
    8    24        PRE_INC                                                  !4
         25    >   IS_SMALLER                                               !4, 16
         26      > JMPNZ                                                    ~23, ->17
   12    27    >   INIT_FCALL                                               'str_replace'
         28        SEND_VAL                                                 '%2C'
         29        SEND_VAL                                                 ''
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                         $24     
         32        ASSIGN                                                   !2, $24
   13    33        ECHO                                                     !2
   14    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.5 ms | 1396 KiB | 21 Q