3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = microtime(); echo $salt . ' '; $generated_token = MD5('$salt' . rand(1, 100)); //echo $generated_token. '<br>'; for($token=1;$token<10;++$token){ if($generated_token == $token) echo 'true'; else echo 'false'; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 16
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 16
Branch analysis from position: 24
Branch analysis from position: 16
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 16
Branch analysis from position: 24
Branch analysis from position: 16
filename:       /in/jjh72
function name:  (null)
number of ops:  25
compiled vars:  !0 = $salt, !1 = $generated_token, !2 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    3     3        CONCAT                                           ~5      !0, '+++++++++'
          4        ECHO                                                     ~5
    4     5        INIT_FCALL                                               'md5'
          6        INIT_FCALL                                               'rand'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 100
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      '%24salt', $6
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    7    14        ASSIGN                                                   !2, 1
         15      > JMP                                                      ->22
    8    16    >   IS_EQUAL                                                 !1, !2
         17      > JMPZ                                                     ~11, ->20
    9    18    >   ECHO                                                     'true'
         19      > JMP                                                      ->21
   11    20    >   ECHO                                                     'false'
    7    21    >   PRE_INC                                                  !2
         22    >   IS_SMALLER                                               !2, 10
         23      > JMPNZ                                                    ~13, ->16
   13    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.3 ms | 1407 KiB | 19 Q