3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is stored in the file: $storedhash = hash("sha256", "salt" + "password"); // Logging in: $password = "passworld"; if (hash("sha256", "salt" + $password) === $storedhash) { echo "Successfully entered password"; } else { echo "Nofie."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AFVJV
function name:  (null)
number of ops:  18
compiled vars:  !0 = $storedhash, !1 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'hash'
          1        SEND_VAL                                                 'sha256'
          2        ADD                                              ~2      'salt', 'password'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    7     6        ASSIGN                                                   !1, 'passworld'
    8     7        INIT_FCALL                                               'hash'
          8        SEND_VAL                                                 'sha256'
          9        ADD                                              ~6      'salt', !1
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        IS_IDENTICAL                                             !0, $7
         13      > JMPZ                                                     ~8, ->16
   10    14    >   ECHO                                                     'Successfully+entered+password'
         15      > JMP                                                      ->17
   12    16    >   ECHO                                                     'Nofie.'
   13    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.96 ms | 1395 KiB | 15 Q