3v4l.org

run code in 300+ PHP versions simultaneously
<?php $token = base64_encode(hash('sha512', openssl_random_pseudo_bytes(10), true)); while(0 != $token) { $token = base64_encode(hash('sha512', openssl_random_pseudo_bytes(10), true)); } var_dump(0 != $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 = 13
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 13
Branch analysis from position: 27
Branch analysis from position: 13
filename:       /in/DK17k
function name:  (null)
number of ops:  32
compiled vars:  !0 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'base64_encode'
          1        INIT_FCALL                                               'hash'
          2        SEND_VAL                                                 'sha512'
          3        INIT_FCALL_BY_NAME                                       'openssl_random_pseudo_bytes'
          4        SEND_VAL_EX                                              10
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        ASSIGN                                                   !0, $3
    4    12      > JMP                                                      ->25
    5    13    >   INIT_FCALL                                               'base64_encode'
         14        INIT_FCALL                                               'hash'
         15        SEND_VAL                                                 'sha512'
         16        INIT_FCALL_BY_NAME                                       'openssl_random_pseudo_bytes'
         17        SEND_VAL_EX                                              10
         18        DO_FCALL                                      0  $5      
         19        SEND_VAR                                                 $5
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                         $7      
         24        ASSIGN                                                   !0, $7
    4    25    >   IS_NOT_EQUAL                                             !0, 0
         26      > JMPNZ                                                    ~9, ->13
    8    27    >   INIT_FCALL                                               'var_dump'
         28        IS_NOT_EQUAL                                     ~10     !0, 0
         29        SEND_VAL                                                 ~10
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.84 ms | 1396 KiB | 19 Q