3v4l.org

run code in 300+ PHP versions simultaneously
<?php $token = uniqid('', true); var_dump($token); $token = uniqid(mt_rand(), true); var_dump($token); $bytes = openssl_random_pseudo_bytes(4); $hex = bin2hex($bytes); var_dump($bytes); var_dump($hex);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PEr95
function name:  (null)
number of ops:  33
compiled vars:  !0 = $token, !1 = $bytes, !2 = $hex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'uniqid'
          1        SEND_VAL                                                 ''
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'uniqid'
          9        INIT_FCALL                                               'mt_rand'
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !0, $7
    5    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    7    18        INIT_FCALL_BY_NAME                                       'openssl_random_pseudo_bytes'
         19        SEND_VAL_EX                                              4
         20        DO_FCALL                                      0  $10     
         21        ASSIGN                                                   !1, $10
    8    22        INIT_FCALL                                               'bin2hex'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $12     
         25        ASSIGN                                                   !2, $12
    9    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
   10    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.67 ms | 1396 KiB | 21 Q